Skip to content

Seikho/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ls-config

A quick and dirty global config tool for sharing config between external modules

Installation

npm install ls-config --save

Usage

NB: Type definitions are provided for TypeScript 1.6+

// TypeScript
import * as cfg from 'ls-config';

// JavaScript
var cfg = require('ls-config');

cfg.config('my-setting', 42); // Returns void

cfg.config('my-setting') // Returns 42

ls-config in any other external module will share this config.

License

MIT

About

Share config between external modules for Node

Resources

Stars

Watchers

Forks

Packages

No packages published