Sha256: da3217341fe8d7b74d310421dc19a49aa099c79f6bc507f40021b50a3fda539e

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 Bytes

Contents

var test = require('tap').test;
var parse = require('../').parse;

test('parse shell commands', function (t) {
    t.same(parse('a \'b\' "c"'), [ 'a', 'b', 'c' ]);
    t.same(
        parse('beep "boop" \'foo bar baz\' "it\'s \\"so\\" groovy"'),
        [ 'beep', 'boop', 'foo bar baz', 'it\'s "so" groovy' ]
    );
    t.same(parse('a b\\ c d'), [ 'a', 'b c', 'd' ]);
    t.same(parse('\\$beep bo\\`op'), [ '$beep', 'bo`op' ]);
    
    t.end();
});

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/shell-quote/test/parse.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/shell-quote/test/parse.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/shell-quote/test/parse.js
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/node_modules/shell-quote/test/parse.js