This package has been deprecated

Author message:

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

node-properties
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

node-properties

NPM

Extremely flexible, no-hassle configuration for nodejs applications.

Install

npm i node-properties

Usage

defaults.yaml

user:
  name: John

index.js

import {config} from 'node-properties';
 
const name = config.get('user.name');
console.log(`Hello ${name}!`);
 
// Output: Hello John!

Sources

By default, properties are retrieved in the following order:

  1. Command line parameters
  2. Environment variables
  3. config/${NODE_ENV} (.yaml, .json, or .env)
  4. config/defaults (.yaml, .json, or .env)

Readme

Keywords

none

Package Sidebar

Install

npm i node-properties

Weekly Downloads

13

Version

0.2.3

License

MIT

Unpacked Size

29 kB

Total Files

48

Last publish

Collaborators

  • chappio