Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamen/args-from
Turn package.json field into CLI args.
https://github.com/jamen/args-from
Last synced: 17 days ago
JSON representation
Turn package.json field into CLI args.
- Host: GitHub
- URL: https://github.com/jamen/args-from
- Owner: jamen
- Created: 2017-12-13T04:40:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-13T04:40:36.000Z (almost 7 years ago)
- Last Synced: 2024-10-25T19:36:28.851Z (19 days ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# args-from
Turn `package.json` fields into a string of command arguments:
```sh
node-sass $(args-from sass)
```Then,
```js
{
"name": "my-app",
"author": "Jamen Marz",
// ...
"sass": {
"_input": "src/app.scss",
"output": "dist/"
}
}
```## Install
```
npm i -D args-from
```## Usage
### `args-from `
For example:
```sh
node-sass $(args-from sass)
node-sass foo.scss $(args-from scss) trailing
```Any keys with `_` become command input. For example:
```
"scss": {
"_input": "src/app.scss",
"output": "dist/"
}
```Would procude:
```sh
node-sass src/app.scss --output=dist
```