shellwords
Manipulate strings according to the word parsing rules of the UNIX Bourne shell.
Last updated 2 years ago by jimmycuadra .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install shellwords 
SYNC missed versions from official npm registry.

Shellwords

Shellwords provides functions to manipulate strings according to the word parsing rules of the UNIX Bourne shell. It is based on the Ruby module of the same name.

Installation

Add "shellwords" to your package.json file and run npm install.

Example

var shellwords = require("shellwords");

shellwords.split("foo 'bar baz'");
// ["foo", "bar baz"]

shellwords.escape("What's up, yo?");
// 'What\\\'s\\ up,\\ yo\\?'

Current Tags

  • 0.1.1                                ...           latest (2 years ago)

4 Versions

  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago

Copyright 2014 - 2016 © taobao.org |