1.0.0 • Published 2 years ago
object-to-commands v1.0.0
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