{"_id":"shell-args","_rev":"1-d22fc18b22afffa85ed80420c204f795","name":"shell-args","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"shell-args","version":"1.0.0","description":"Parsing and quoting for shell command lines that supports both bash and windows styles of quoting.","main":"bin/index.js","types":"bin/index.d.ts","typings":"bin/index.d.ts","scripts":{"test":"jest","compile":"tsc --project tsconfig.build.json","watch":"tsc -watch","lint":"eslint --ext .ts,.js ."},"repository":{"type":"git","url":"git+https://github.com/Mossop/shell-args.git"},"keywords":["shell","arguments","quoting","parsing"],"author":{"name":"Dave Townsend","email":"dtownsend@oxymoronical.com"},"license":"MIT","bugs":{"url":"https://github.com/Mossop/shell-args/issues"},"homepage":"https://github.com/Mossop/shell-args#readme","devDependencies":{"@types/jest":"^25.2.1","@types/node":"^13.11.0","@types/vscode":"^1.43.0","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","eslint":"^6.8.0","eslint-import-resolver-ts":"^0.4.2","eslint-plugin-import":"^2.20.2","eslint-plugin-mossop":"github:Mossop/eslint-plugin-mossop#1.0.6","jest":"^25.2.7","ts-jest":"^25.3.1","typescript":"^3.8.3"},"gitHead":"d446542b7fea3b0781c355100ae780748c8634b7","_id":"shell-args@1.0.0","_nodeVersion":"13.7.0","_npmVersion":"6.13.6","dist":{"integrity":"sha512-gCv9fh2pQA/BW3F5IOuKwomE+hoADCl6e+FmxqzF7oz6IKUMOajWTnVazvQJwiu2heKyqRwVgoHGb6U9jqasNg==","shasum":"4df052e9f0e9ae61a883624e73a2ceddfd96805e","tarball":"https://registry.npmjs.org/shell-args/-/shell-args-1.0.0.tgz","fileCount":13,"unpackedSize":19759,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei4O7CRA9TVsSAnZWagAAnqcP/inhXojyxtY9RRyvz0k2\nl1lLNLeqpoFYyTufAR2s9eFXeWax0ugaq8V/wjENGXsStWcZTjl23IVjbGvr\nVZl3RkUA2iqO7z9X6eCZZV6S1h1948sV3hPRqZ6GveoHUwoWFBlfRy2QXTrt\nrK2ADs+xPAQ9Nllg6Ur3c3m0aco1U3+wAAsptRZJd3jIu6IUmB6oLLhPqCpt\nsXMhyO3eQyyARaBMsoqhUTeqBD3V7N/ACcFfo0/weegwK5LWIyC+wD1di6r7\nNRNhfhWhvlOAgJ03LyzV87HdXrCeswzuNmK5pKa9s6OyU/yOs42JFUdF9KX2\n/rkWytH64N95HI8a/E0sV+PywzpPqgv6NH0o1Wk/S74FD0kadnXbRBlL8C7S\np0SFMxWWEIdU0ZcLd85pyjiOZ7fh0mTy0FFnvfugQ3SLcjsAjlT69cDmXJeJ\nOBGanxVHkgg/VSMzlK8N8XPPr2ZlFw1/sD6uep9OcnJH3Ni2eFfxFhrelkuy\nXv6VVdmjwfx+OoIftSmhSmXB+U51guNSVbSu0ffEATiH/LZ9BcWdnwh0T76E\n9BUHEfb/CPHqbxfrUm1b/gd0Dhdf6sbbLQa8J0von3Nqa7MSpkz70Oi7BUuQ\nBTJZU/WWEFasDEYbs2sukM99muL3Cbs5DPUQrDKzSHQXYbfjs0LR0bP93kCR\nzcqY\r\n=y1xF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4szZ1zOfKlLhg66hwlOZdDwos6no8vSZ7dck+D1iyVAiAsMIxxlH/c5VnKzO/m5iXpC5FbdNKO5GpSS4Shr6kZyQ=="}]},"maintainers":[{"name":"mossop","email":"dtownsend@oxymoronical.com"}],"_npmUser":{"name":"mossop","email":"dtownsend@oxymoronical.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shell-args_1.0.0_1586201530789_0.7047459186962228"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-06T19:32:10.788Z","1.0.0":"2020-04-06T19:32:10.912Z","modified":"2022-05-17T16:49:24.399Z"},"maintainers":[{"name":"mossop","email":"dtownsend@oxymoronical.com"}],"description":"Parsing and quoting for shell command lines that supports both bash and windows styles of quoting.","homepage":"https://github.com/Mossop/shell-args#readme","keywords":["shell","arguments","quoting","parsing"],"repository":{"type":"git","url":"git+https://github.com/Mossop/shell-args.git"},"author":{"name":"Dave Townsend","email":"dtownsend@oxymoronical.com"},"bugs":{"url":"https://github.com/Mossop/shell-args/issues"},"license":"MIT","readme":"# shell-args\n\nA simple set of functions for parsing a command line string into arguments and converting command\nline arguments into a correctly escaped string.\n\nMany other npm modules offer this functionality however the only ones I could find only support\nunix style escaping and so do not work correctly for windows command lines.\n\nThis module exports `bashShellParse`, `winShellParse`, `bashShellQuote` and `winShellQuote`. It\nalso exports `shellQuote` and `shellParse` which call the function correct for the current platform.\n\nThe parse functions accept a string and return an array of strings:\n```javascript\nimport { bashShellQuote } from \"shell-args\";\n\nbashShellParse(\"hello there world\"); // -> [\"hello\", \"there\", \"world\"]\nbashShellParse(\"\\\"hello there\\\" world\"); // -> [\"hello there\", \"world\"]\nbashShellParse(`foo\ntest\\\\(\\\\)`); // -> [\"foo\", \"test()\"]\n```\n\nThe quote functions accept an array of strings and return a string:\n```javascript\nimport { bashShellParse } from \"shell-args\";\n\nbashShellQuote([\"hello\", \"there\", \"world\"]); // -> \"hello there world\"\nbashShellQuote([\"hello there\", \"world\"]); // -> \"\\\"hello there\\\" world\"\nbashShellQuote([\"foo\", \"test()\"]); // -> [\"foo\", \"test\\\\(\\\\)\"]\n```\n","readmeFilename":"README.md"}