0.6.1 • Published 8 years ago

dot-file-config v0.6.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

dot-file-config

Build Status

A dot-file is generally any file whose name begins with a full stop. https://en.wikipedia.org/wiki/Dot-file

Manage application state via config in json dot-file

Install

$ npm install dot-file-config --save

Usage

var config = require('dot-file-config')('.your-app-name', {
	defaultConfigFile: <String>, // relative path
	onFirstRun: <Function> // optional
});

config.path // path to config file
config.defaultPath // absolute path to default config file (argument can be relative)
config.data // content of dot-file
config.isFirstRun // true when config didn't exist before
config.save() // persist config.data back to dot-file

Changelog

  • v0.6.0

    	- Removed symlinking to Dropbox
    	- options' `firstRunCallback` renamed to `onFirstRun`

Related

License

MIT © ewnd9

0.6.1

8 years ago

0.6.0

8 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago