A really simple module to use property file as read-only map
Want to see pretty graphs? Log in now!
npm install nropf
|4||downloads in the last week|
|16||downloads in the last month|
|Last Published By|
|Version||0.0.3 last updated a year ago|
|Keywords||properties, file, read-only|
node Read-Only property file
nropf is a simple way to use properties file. It allow user to add comments inside the properties file, which could not be achieved whitin a standard json file. There is also a cache mecanism. Once a file is used, it won't be read again event if mutiple modules required the same properties file, which is nice to centralize the conf of the app
The simplest way to use it is a key value pair separated by '='
You could also use comment inside the file
# this is a comment
If the line start with white space, it will be ignored
var properties = require("nropf").use("myfile") properties.key
This package can be found on NPM https://npmjs.org/package/nropf