New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

clavinet

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clavinet

An independent "Command Line Argument" language based on the tokens received from process.argv

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Clavinet

Clavinet is a command line argument parser with it's own language rules. It joins the given process.argv into a string and then parses it with it's own language grammar.

Language

Clavinet has these concepts:

  • Commands — Commands start with double dashes as --some-command-name and they can have a value after them separated by spaces like: --say hello, or --add [2, 3, 5]
  • Values — Values are Literals or Arrays
  • Array — Array is made of a sequence of Values separated by , and inside of square bracket. For example: [1, 2, 4, hello, [1, 3]]
  • Literals — Literals are numbers and words in this format: [a-zA-Z0-9_\./][a-zA-Z0-9_\.\-/]*

Building

You need to run npm install to install all the dependencies and you must have TypeScript installed on your system. After that you can build the package using

npm run build

How to use it?

First install it via

npm install --save clavinet

Then use it as:

const clavinet = require('clavinet')
const args = clavinet.Parse( )



Keywords

argv

FAQs

Package last updated on 19 Jul 2018

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