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.
- Host: GitHub
- URL: https://github.com/killme2008/node-properties
- Owner: killme2008
- Created: 2011-06-01T03:39:41.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-06-05T13:47:58.000Z (about 15 years ago)
- Last Synced: 2025-03-12T20:48:56.978Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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){...}