# You are reading the ".properties" entry. ! The exclamation mark can also mark text as comments. website = http://en.wikipedia.org/ language = English # The backslash below tells the application to continue reading # the value onto the next line. message = Welcome to \ Wikipedia! # Add spaces to the key key\ with\ spaces = This is the value that could be looked up with the key "key with spaces". # Unicode tab : \u0009
(taken from Wikipedia)
Currently works with any version of node.js.
textinto key-value pairs. Returns an object containing the key-value pairs.
read(path, callback): Opens the file specified by
parseon its content. The result is then passed to
callbackas the second parameter. If an error occurs, the error object is passed to
callbackas the first paramter.
readSync(path): A synchronous version of
read. Opens the file specified by
pathsynchronously and calls
parseon its contents.
The easiest way to get node-properties-parser is with npm:
npm install node-properties-parser
Alternatively you can clone this git repository:
This project is released under The MIT License.