-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
33 lines (33 loc) · 1.94 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"name": "splitargs",
"version": "0.0.3",
"description": "Splits strings into tokens by given separator except treating quoted part as a single token.",
"main": "splitargs.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/elgs/splitargs"
},
"keywords": [
"split",
"args",
"quoted",
"space"
],
"author": {
"name": "Elgs Chen"
},
"license": "ISC",
"bugs": {
"url": "https://github.com/elgs/splitargs/issues"
},
"homepage": "https://github.com/elgs/splitargs",
"readme": "splitargs\n==========\nSplits strings into tokens by given separator except treating quoted part as a single token.\n\n#Installation\n`npm install splitargs`\n\n#Usage\n```javascript\nvar splitargs = require('splitargs');\n\nvar i1 = \"I said 'I am sorry.', and he said \\\"it doesn't matter.\\\"\";\nvar o1 = splitargs(i1);\nconsole.log(o1);\n/*\n[ 'I',\n 'said',\n 'I am sorry.,',\n 'and',\n 'he',\n 'said',\n 'it doesn\\'t matter.' ]\n*/\n\nvar i2 = \"I said \\\"I am sorry.\\\", and he said \\\"it doesn't matter.\\\"\";\nvar o2 = splitargs(i2);\nconsole.log(o2);\n/*\n[ 'I',\n 'said',\n 'I am sorry.,',\n 'and',\n 'he',\n 'said',\n 'it doesn\\'t matter.' ]\n*/\n\nvar i3 = 'I said \"I am sorry.\", and he said \"it doesn\\'t matter.\"';\nvar o3 = splitargs(i3);\nconsole.log(o3);\n/*\n[ 'I',\n 'said',\n 'I am sorry.,',\n 'and',\n 'he',\n 'said',\n 'it doesn\\'t matter.' ]\n*/\n\nvar i4 = 'I said \\'I am sorry.\\', and he said \"it doesn\\'t matter.\"';\nvar o4 = splitargs(i4);\nconsole.log(o4);\n/*\n[ 'I',\n 'said',\n 'I am sorry.,',\n 'and',\n 'he',\n 'said',\n 'it doesn\\'t matter.' ]\n*/\n```",
"readmeFilename": "README.md",
"_id": "splitargs@0.0.3",
"_shasum": "6df2e31387c719b7b4d3d0db022214903763f1ad",
"_from": "splitargs@^0.0.3",
"_resolved": "https://registry.npmjs.org/splitargs/-/splitargs-0.0.3.tgz"
}