An open API service indexing awesome lists of open source software.

https://github.com/killme2008/node-properties

A node.js module to read properties config file.
https://github.com/killme2008/node-properties

Last synced: about 1 year ago
JSON representation

A node.js module to read properties config file.

Awesome Lists containing this project

README

          

##Purpose

node-properties is a node.js module to read properties config file.It will read properties and cast it to json.

##Tutorial

var prop=require('node_properties');
prop.read("./test.properties",function(err,config){
if(err) throw err;
console.log(config['option']);
});

##API

read(path,callback,[encoding]);
callback function:
function(err,data){...}