zc-config

0.1.11 • Public • Published

zc-config Build Status


quick config local projects

Install

$ npm install zc-config -g
# or use yarn
$ yarn global add zc-config

Feature

you can use template for your config store files, the template engine is handlebars, so you config file can be this :

{
    "name": "{{name}}",
    "age": {{age}}
}

zc-config will check if the config file you choose have variables, if it have, it will ask you in command line by Inquirer.js.

notice: every variable is required! and it don't support complicated variables yet, like Object.

you can use --no-parse or -n when not want to parse template. It also don't parse variables when you are trying to add config to the store.

Usage

zc-config will create a config store in $/your-user-home/.zc_config/

add config to store

$ zc-config add

you can see the file list of the cwd path, choose file you want to add to store

get config from store

$ zc-config

you can see the file list of your config store, choose file you need for the cwd path

-f, --force

if the file exists, zc-config won't try to override it by default, you can use -f or --force to override it

-n, --no-parse

not parse the template variables of config files


more feature will comming soon...

Readme

Keywords

Package Sidebar

Install

npm i zc-config

Weekly Downloads

2

Version

0.1.11

License

MIT

Last publish

Collaborators

  • zcong