JSPM

Found 512 results for str stream

string-to-stream

Convert a string into a stream (streams2)

  • v3.0.1
  • 396.84
  • Published

ansi-colors

Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).

  • v4.1.3
  • 94.21
  • Published

min-indent

Get the shortest leading whitespace from lines in a string

  • v1.0.1
  • 91.93
  • Published

trim-repeated

Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz

  • v2.0.0
  • 83.16
  • Published

trim-off-newlines

Similar to String#trim() but removes only newlines

  • v1.0.3
  • 75.78
  • Published

next-line

Iterator over lines in a string

  • v1.1.0
  • 71.73
  • Published

parse-unit

parses number and unit, '20px' into [20, 'px']

  • v1.0.1
  • 70.98
  • Published

url-regex-safe

Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661. Works in Node v10.12.0+ and browsers.

  • v4.0.0
  • 66.91
  • Published

split-lines

Split lines into an array of lines

  • v3.0.0
  • 65.87
  • Published

is-string-and-not-blank

3x as fast as `is-whitespace` and `whitespace-regex` thanks to `is-string-blank`. This package is a simple function that accepts an argument and returns `true` if it is a string AND it is not blank. Supports Node and Browser environments.

  • v0.0.2
  • 63.81
  • Published

colors-cli

Terminal string styling done right

  • v1.0.33
  • 62.24
  • Published

utils-indexof

Returns the first index at which a given element can be found.

  • v1.0.0
  • 57.15
  • Published

@stdlib/utils-index-of

Return the first index at which a given element can be found.

  • v0.2.2
  • 56.54
  • Published

to-str

Converts the given value to a string.

  • v1.0.0
  • 56.06
  • Published

debug-color2

colorize console log, this module can work with require('debug')

  • v1.3.2
  • 55.32
  • Published

end-with

Determines whether a string ends with the characters of another string.

  • v1.0.2
  • 52.19
  • Published

value2stream

Transform any value to stream. Create a stream from any value - string, array, buffer, number, promise or even Error object.

  • v1.0.0
  • 51.75
  • Published

@stdlib/string-base-trim

Trim whitespace characters from the beginning and end of a string.

  • v0.2.2
  • 51.53
  • Published

pad-start

ES spec-compliant String.prototype.padStart shim.

  • v1.0.2
  • 51.14
  • Published

is-ttf

Check if a String/Buffer is TTF

  • v0.2.2
  • 50.56
  • Published

is-otf

Check if a String/Buffer/ArrayBuffer is OTF

  • v0.1.2
  • 49.79
  • Published

human-number

Convert number to a human readable string: `13500` → `13.5K`

  • v2.0.4
  • 49.41
  • Published

tokenize-whitespace

Tokenize a string into words and whitespace tokens

  • v0.0.1
  • 49.18
  • Published

chalk-cli

Terminal string styling done right

  • v6.0.0
  • 46.85
  • Published

str-util

convert full/half width, Chinese/Japanese number, 中日漢字轉換... others util helper

  • v3.0.2
  • 45.27
  • Published

@fakerjs/string

String package provides functionality to generate a fake string value.

  • v2.1.1
  • 44.65
  • Published

pad-end

ES7 spec-compliant String.prototype.padEnd shim.

  • v1.0.2
  • 44.32
  • Published

email-regex-safe

Regular expression matching for email addresses. Maintained, configurable, more accurate, and browser-friendly alternative to email-regex. Works in Node v14+ and browsers. Made for Spam Scanner and Forward Email.

  • v4.0.0
  • 43.64
  • Published

strman

A Javascript string manipulation library without npm dependences.

  • v2.0.1
  • 42.80
  • Published

ascii-art

Ansi codes, figlet fonts, and ascii art. 100% JS

  • v2.8.5
  • 42.37
  • Published

srt-webvtt

Convert SRT format subtitle to WebVTT on the fly over HTML5 environment

  • v2.0.0
  • 41.12
  • Published

regexp.execall

Array of RegExp.prototype.exec results

  • v1.0.2
  • 40.07
  • Published

ascii-art-font

``` _ _ _ (_)(_) | | __ _ ___ ___ _ _ ______ __ _ _ __ | |_ / _` |/ __| / __|| || ||______| / _` || '__|| __| | (_| |\__ \| (__ | || | | (_| || | | |_ \_

  • v1.0.2
  • 40.04
  • Published

ascii-art-utf

Write terminal strings in UTF typefaces

  • v0.0.1
  • 39.33
  • Published

git-decode

decode/encode git style utf8

  • v1.0.21
  • 38.31
  • Published

@visulima/fmt

Util.format-like string formatting utility.

  • v1.1.15
  • 38.15
  • Published

@stdlib/string-repeat

Repeat a string a specified number of times and return the concatenated result.

  • v0.2.2
  • 37.06
  • Published

@stdlib/string-trim

Trim whitespace characters from the beginning and end of a string.

  • v0.2.2
  • 36.33
  • Published

promise2stream

Transform ES2015 Promise to Stream - specifically, Transform Stream using [through2][]. Works in object mode by default, but you can pass options directly to the [through2][] package.

  • v1.0.1
  • 36.18
  • Published

@stdlib/string-base-repeat

Repeat a string a specified number of times and return the concatenated result.

  • v0.2.2
  • 35.38
  • Published

strman.touppercase

The [strman](https://github.com/dleitee/strman) method `touppercase` exported as a [Node.js](https://nodejs.org/) module.

  • v2.0.0
  • 34.15
  • Published

strman.tostudlycaps

The [strman](https://github.com/dleitee/strman) method `tostudlycaps` exported as a [Node.js](https://nodejs.org/) module.

  • v2.0.0
  • 33.51
  • Published

mongoose-slug-plugin

Slugs for Mongoose with history and i18n support (uses speakingurl by default, but you can use any slug library such as limax, slugify, mollusc, or slugme)

  • v2.1.0
  • 33.46
  • Published

utils-repeat-string

Repeat a string a specified number of times and return the concatenated result.

  • v1.0.3
  • 33.36
  • Published

react-str

React data fetching hooks using stale-till-revalidate policy.

    • v0.0.5
    • 33.16
    • Published

    has-bom-string

    Returns true if string has a byte order mark (BOM)

    • v1.0.0
    • 32.73
    • Published

    execall2

    Find multiple RegExp matches in a string

    • v2.0.26
    • 29.95
    • Published

    str-replace-all

    Replaces all occurences of a string in another string.

    • v0.3.0
    • 29.04
    • Published

    regexp-cjk-plugin-extra

    a regexp-cjk plugin demo for regexp-cjk ( 自動配對 五十音的清/濁音 , 半形/全形 , deburr )

    • v1.0.45
    • 27.91
    • Published

    needle-string

    Count case-sensitive occurrences of a string in a string (like needles in a haystack)

    • v1.0.0
    • 27.57
    • Published

    strman.removespaces

    The [strman](https://github.com/dleitee/strman) method `removespaces` exported as a [Node.js](https://nodejs.org/) module.

    • v2.0.0
    • 27.15
    • Published

    strman.replace

    The [strman](https://github.com/dleitee/strman) method `replace` exported as a [Node.js](https://nodejs.org/) module.

    • v2.0.0
    • 26.73
    • Published

    ansi-colors-es6

    ES6+ module to easily add ANSI colors to your browser console and node terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).

    • v5.0.0
    • 26.68
    • Published

    suni

    Arr, Hash, Is, Obj, Random, Str, Wrandom.

    • v1.1.0
    • 25.09
    • Published

    @stdlib/assert-is-ascii

    Test whether a character belongs to the ASCII character set and whether this is true for all characters in a provided string.

    • v0.2.2
    • 24.94
    • Published

    dots

    Truncate string

    • v0.1.0
    • 24.58
    • Published

    detect-svg

    Detect a string or buffer is SVG or not

    • v0.9.1
    • 23.71
    • Published

    stringable-laravel

    Javascript Version's of Laravel's Illuminate\Support\Str

    • v1.4.6
    • 23.23
    • Published

    start-with

    Determines whether a string begins with the characters of another string.

    • v1.0.2
    • 22.50
    • Published

    url-regex-unsafe

    Regular expression matching for URL's. Maintained, and browser-friendly version of url-regex. This package is vulnerable to CVE-2020-7661. Works in Node v10.12.0+ and browsers.

    • v3.0.2
    • 22.14
    • Published

    hexyjs

    Hexadecimal utilities

    • v2.1.4
    • 21.72
    • Published

    javascript-console-styling

    A package made specifically for providing you with all the javascript console colours and styles you'll ever need as simple functions!

    • v1.1.3
    • 21.32
    • Published

    chalk-v2

    Terminal string styling done right

      • v1.0.2
      • 21.01
      • Published

      convert-to-object

      Convert string to object and fix syntax errors.

      • v0.0.4
      • 20.31
      • Published

      vibrance

      Cli colors for deno, built on chalk

      • v0.1.35
      • 19.90
      • Published

      arr

      JavaScript utilities for arrays.

      • v0.1.5
      • 19.83
      • Published

      strman.lefttrim

      The [strman](https://github.com/dleitee/strman) method `lefttrim` exported as a [Node.js](https://nodejs.org/) module.

      • v2.0.0
      • 19.67
      • Published

      strman.righttrim

      The [strman](https://github.com/dleitee/strman) method `righttrim` exported as a [Node.js](https://nodejs.org/) module.

      • v2.0.0
      • 19.42
      • Published

      replace-all

      Replace everything inside a String.prototype

      • v1.0.0
      • 19.23
      • Published

      strman.trim

      The [strman](https://github.com/dleitee/strman) method `trim` exported as a [Node.js](https://nodejs.org/) module.

      • v2.0.0
      • 19.17
      • Published

      strman.tolowercase

      The [strman](https://github.com/dleitee/strman) method `tolowercase` exported as a [Node.js](https://nodejs.org/) module.

      • v2.0.0
      • 19.16
      • Published

      parcol

      Parcol is a utility for parsing all ANSI colors methods in a string.

      • v0.2.1
      • 19.13
      • Published

      strman.transliterate

      The [strman](https://github.com/dleitee/strman) method `transliterate` exported as a [Node.js](https://nodejs.org/) module.

      • v2.0.0
      • 19.10
      • Published

      omg-console

      A better console.log for terminal

      • v1.2.2
      • 19.05
      • Published

      strman.slugify

      The [strman](https://github.com/dleitee/strman) method `slugify` exported as a [Node.js](https://nodejs.org/) module.

      • v2.0.0
      • 19.03
      • Published

      strman.ascii

      The [strman](https://github.com/dleitee/strman) method `ascii` exported as a [Node.js](https://nodejs.org/) module.

      • v2.0.0
      • 18.97
      • Published

      string-playground

      String utility functions for clean and consistent text handling in JavaScript.

      • v1.4.1
      • 18.91
      • Published

      scriptus

      Scriptus is an useful tool to work with strings

      • v2.3.7
      • 18.60
      • Published

      nearest-string

      Find the nearest string with a given string

      • v1.0.6
      • 17.61
      • Published

      str

      ⚙️ String manipulation library

      • v0.7.1
      • 17.48
      • Published

      ansi-colors-browserify

      Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).

      • v4.1.2
      • 16.81
      • Published

      @stdlib/string-repeat-cli

      Repeat a string a specified number of times and return the concatenated result.

      • v0.2.2
      • 16.71
      • Published

      any-pattern

      Print anything on terminal

      • v1.0.15
      • 16.51
      • Published

      string-to-query-params

      Parses a URI-like query string and returns an object composed of parameter/value pairs.

      • v0.1.6
      • 16.50
      • Published

      z-str

      A lib to easily manipulate strings

      • v1.0.17
      • 16.43
      • Published

      letta-value

      Extends `letta` to accept and handles more than functions only. Handles all kind of results from `letta`. Basically, creating promise from everything - strings, arrays, objects, functions, generators, generator functions, promises, streams, child processe

      • v1.0.0
      • 16.42
      • Published

      str-match

      String matcher that output the input string replacing the match.

      • v2.1.7
      • 16.40
      • Published

      strman.substr

      The [strman](https://github.com/dleitee/strman) method `substr` exported as a [Node.js](https://nodejs.org/) module.

      • v2.0.0
      • 16.07
      • Published

      random-strr

      Return a random string.

      • v1.0.0
      • 15.83
      • Published

      chalk-optimiser

      This module is based on the npm chalk module and it´s 80% faster than the original by using multiple different techniques like compressing, minify and rewriting a lot of interal source code from the original module with newer methods.

      • v1.8.6
      • 15.74
      • Published

      string-edit

      Easy-to-Use String Edit and String Tools.

        • v1.2.14
        • 15.69
        • Published

        break-string

        Break string into lines according to visual width

        • v1.0.0
        • 15.61
        • Published

        console.browser

        Node.js doesn't show colors when it comes to logging/debugging. This package solves this problem and improves actual logging by adding a bunch of the other colors.

          • v10.3.7
          • 15.56
          • Published

          strman.case

          The [strman](https://github.com/dleitee/strman) method `case` exported as a [Node.js](https://nodejs.org/) module.

          • v2.0.0
          • 15.21
          • Published

          strman.indexof

          The [strman](https://github.com/dleitee/strman) method `indexof` exported as a [Node.js](https://nodejs.org/) module.

          • v2.0.0
          • 14.78
          • Published

          better-randstr

          Fully-customizable random string generator

          • v2.0.0
          • 14.67
          • Published

          strman.endswith

          The [strman](https://github.com/dleitee/strman) method `endswith` exported as a [Node.js](https://nodejs.org/) module.

          • v2.0.0
          • 14.48
          • Published

          css-to-mat4

          converts a css matrix string into a mat4 array

          • v2.0.2
          • 14.41
          • Published

          strman.removeright

          The [strman](https://github.com/dleitee/strman) method `removeright` exported as a [Node.js](https://nodejs.org/) module.

          • v2.0.0
          • 14.40
          • Published

          slice-lines

          Extract a subset of lines from a string efficiently

          • v1.0.3
          • 14.33
          • Published

          strman.isuppercase

          The [strman](https://github.com/dleitee/strman) method `isuppercase` exported as a [Node.js](https://nodejs.org/) module.

          • v2.0.0
          • 14.17
          • Published

          string-indent

          Easy way to get the indent of a string, whether file content or simple string.

            • v0.1.2
            • 14.16
            • Published

            mat4-css-parse

            converts a css matrix string into a mat4 array

            • v1.0.3
            • 14.00
            • Published

            nufo

            Generate NFOs from markdown

            • v0.1.0
            • 14.00
            • Published

            strman.surround

            The [strman](https://github.com/dleitee/strman) method `surround` exported as a [Node.js](https://nodejs.org/) module.

            • v2.0.0
            • 14.00
            • Published

            strman.decdecode

            The [strman](https://github.com/dleitee/strman) method `decdecode` exported as a [Node.js](https://nodejs.org/) module.

            • v2.0.0
            • 13.99
            • Published

            @333-lenny-333/npm

            This is just a collection of assorted functions, classes, and premade variables.

              • v3.0.0
              • 13.85
              • Published

              strman.tocamelcase

              The [strman](https://github.com/dleitee/strman) method `tocamelcase` exported as a [Node.js](https://nodejs.org/) module.

              • v2.0.0
              • 13.83
              • Published

              @socialskycorp/pretty-ms

              Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`

              • v3.1.0
              • 13.80
              • Published

              str-to-color

              Convert string to color

                • v0.0.13
                • 13.67
                • Published

                mich-to-html

                Tiny and naive implementation of rendering HAST-compliant virtual dom trees to HTML string, just in ~420 bytes.

                • v0.1.6
                • 13.44
                • Published

                uniqueids

                Generate unique ID

                • v1.1.1
                • 13.28
                • Published

                strman.lastindexof

                The [strman](https://github.com/dleitee/strman) method `lastindexof` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 13.23
                • Published

                strman.htmldecode

                The [strman](https://github.com/dleitee/strman) method `htmldecode` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 13.23
                • Published

                strman.removeleft

                The [strman](https://github.com/dleitee/strman) method `removeleft` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 13.21
                • Published

                strman.htmlencode

                The [strman](https://github.com/dleitee/strman) method `htmlencode` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 13.06
                • Published

                change-indent

                Change the indentation in a string.

                • v0.1.0
                • 13.00
                • Published

                string-es5

                A string utility library.

                • v1.0.2
                • 12.98
                • Published

                nth-indexof

                Find the nth position of a pattern in a string

                • v1.0.0
                • 12.91
                • Published

                strman.decode

                The [strman](https://github.com/dleitee/strman) method `decode` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 12.85
                • Published

                strman.prepend

                The [strman](https://github.com/dleitee/strman) method `prepend` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 12.84
                • Published

                strman.entitiesdecode

                The [strman](https://github.com/dleitee/strman) method `entitiesdecode` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 12.82
                • Published

                strman.append

                The [strman](https://github.com/dleitee/strman) method `append` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 12.78
                • Published

                strman.inequal

                The [strman](https://github.com/dleitee/strman) method `inequal` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 12.70
                • Published

                @achipiga/decamelize

                Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow

                • v4.1.0
                • 12.69
                • Published

                strman.todecamelize

                The [strman](https://github.com/dleitee/strman) method `todecamelize` exported as a [Node.js](https://nodejs.org/) module.

                • v2.0.0
                • 12.63
                • Published