Socket
Socket
Sign inDemoInstall

splitargs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

splitargs - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

.npmignore

32

package.json
{
"name": "splitargs",
"version": "0.0.0",
"description": "Splits strings into tokens by given separater except treating quoted part as a single token.",
"main": "splitargs.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Elgs Chen",
"license": "ISC"
"name": "splitargs",
"version": "0.0.1",
"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": "Elgs Chen",
"license": "ISC",
"bugs": {
"url": "https://github.com/elgs/splitargs/issues"
},
"homepage": "https://github.com/elgs/splitargs"
}

@@ -8,2 +8,14 @@ /**

module.exports = function (input, separator) {
var config = {
singleQuoteOpen: false,
doubleQuoteOpen: false,
separator: separator || /\s+/g
};
input.split('').map(function (element) {
}, config);
};
})();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc