1.0.0 • Published 2 years ago

object-to-commands v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Converter Object To Cli Command

An open source npm package for converting objects to cli commands.

Install

NPM

$ npm i object-to-command --save

Yarn

$ yarn add object-to-command

Basic Usage

import { objectToCommand } from 'object-to-command';

const exampleObject = {
  buildType: 'debug',
  version: '1.0.0',
  forceUpdate: true,
  deploymentType: 'development',
};
objectToCommand(exampleObject);

Result: `--build-type=debug --version=1.0.0 --force-update --deployment-type=development`

Tests

$ npm test

License

MIT

1.0.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago