Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    underscore.string.clipublic

    underscore.string.cli

    Build Status npm version

    Use underscore.string on your commandline

    Installation

    npm install underscore.string.cli -g

    Usage

    You can use all methods from underscore.string.

    $ string <command> <string> [-- options]
     
    $ string camelize hello world
    # js => s.camelize("hello world"); 
    # => helloWorld 
     
    $ string camelize -hello-world -- true
    # js => s.camelize("-hello-world", true); 
    # => helloWorld 
     
    $ string join \| -- foo bar moo boo
    # js => s.join("|", "foo", "bar", "moo", "boo"); 
    # => foo|bar|moo|boo 
     
    $ string levenshtein kitten -- kittah
    # js => s.levenshtein("kitten", "kittah"); 
    # => 2 

    You can pipe data through different methods

    echo "foo    bar" | string clean | string capitalize
    # js => s("foo    bar").clean().capitalize().value() 
    # => Foo bar 

    install

    npm i underscore.string.cli

    Downloadsweekly downloads

    22

    version

    1.1.5

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar