Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hokaccha/node-confy
Manage settings library, like as pit.
https://github.com/hokaccha/node-confy
Last synced: about 2 months ago
JSON representation
Manage settings library, like as pit.
- Host: GitHub
- URL: https://github.com/hokaccha/node-confy
- Owner: hokaccha
- License: mit
- Created: 2011-08-31T06:07:49.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-02-26T01:35:05.000Z (almost 13 years ago)
- Last Synced: 2024-09-13T23:57:42.330Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node confy
Manage settings library, like as pit.
## Install
$ npm install confy
## Usage
### javascript code
Get config from current profile.
``` js
var confy = require('confy');confy.get('twitter.com', { require: {
username: '',
password: ''
}}, function(err, result) {
console.log(result);
});
```If not set values, open setting your $EDITOR.
### command line
set config
```
$ confy set twitter.com
open $EDITOR
```get config
```
$ confy get twitter.com
{ username: 'xxx', password: 'xxx' }
```switch profile
```
$ confy use develop
```clean all datas
```
$ confy clean
```