Skip to content

RobLoach/nconf-toml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nconf-toml NPM version

Build Status Dependency Status

TOML format plugin for nconf.

Install

npm install --save nconf nconf-toml

Usage

var nconf = require('nconf')

nconf.file({
  file: '/path/to/some/file.toml',
  format: require('nconf-toml')
})

Or to add general TOML file support

var nconf = require('nconf')

nconf.formats.toml = require('nconf-toml')

// and then you can do

nconf.file({ file: '/path/to/some/file.toml', format: nconf.formats.toml })

License

MIT