New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

dot-file-config

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-file-config

Manage application state via config in json dot-file

latest
Source
npmnpm
Version
0.6.1
Version published
Weekly downloads
38
35.71%
Maintainers
1
Weekly downloads
 
Created
Source

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

License

MIT © ewnd9

FAQs

Package last updated on 29 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts