New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clo-parser

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clo-parser

Command Line Options Parser for Node.js

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

clo-parser

Command Line Options Parser for Node.js

Usage

test.js:

var clo_parser = require("clo-parser");
var options = {
	a: false,
	b: true
};
var extras = clo_parser(options);
console.log(options);
console.log(extras);

output:

$ node test.js
{ a: false, b: true }
[]

$ node test.js -a
{ a: true, b: true }
[]

$ node test.js -option
{ a: false, b: true, o: true, p: true, t: true, i: true, n: true }
[]

$ node test.js -opt -ion
{ a: false, b: true, o: true, p: true, t: true, i: true, n: true }
[]

$ node test.js -opt ion
{ a: false, b: true, o: true, p: true, t: true }
[ 'ion' ]

$ node test.js opt ion
{ a: false, b: true }
[ 'opt', 'ion' ]

$ node test.js -opt=ion
{ a: false, b: true, o: true, p: true, t: 'ion' }
[]

Project page

http://github.com/shimataro/clo-parser

Release note

  • 2016-09-04 version 0.0.1
    • First release.

FAQs

Package last updated on 03 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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