This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

setting

0.1.0 • Public • Published

setting Build Status

A simple Node.js settings library.

Getting Started

Install setting

npm install setting

Create file demo.js

var setting = require('setting')

setting('mysql', 'host', 'localhost')
setting('mysql', 'port', 3306)
setting('mysql', 'user', 'root')
setting('mysql', 'password', 'secret')

console.log(setting.mysql)

Run demo.js

[silas@host ~]$ MYSQL_PORT=3307 node demo.js --mysql-user=test
{ host: 'localhost',
  port: 3307,
  user: 'test',
  password: 'secret' }

License

This work is licensed under the MIT License (see the LICENSE file).

Readme

Keywords

none

Package Sidebar

Install

npm i setting

Weekly Downloads

20

Version

0.1.0

License

none

Last publish

Collaborators

  • silas