cla-mapperdeprecated

Command line args mapper. A small library that processes js object and returns ready for use array of command line args

Usage no npm install needed!

<script type="module">
  import claMapper from 'https://cdn.skypack.dev/cla-mapper';
</script>

README

cla-mapper

Build Status Total alerts Coverage Status

A small library that processes js object and returns ready for use array of command line args.

Install

npm i cla-mapper

Use

import {ClaMapper} from 'cla-mapper';

const mapper = new ClaMapper({
    opt1: '-o',
    opt2: '--opt2',
    opt3: '--opt3'
});

mapper.getCommandLineArgs({
    opt1: 'val',
    opt2: true,
    opt3: false
}); // ['-o', 'val', '--opt2']

License

Lib is MIT licensed

Support on Beerpay

Hey dude! Help me out for a couple of :beers:!

Beerpay Beerpay