Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prettified README

  • Loading branch information...
commit 875ee5fefa56dc5d16cb61d5741d49f06e662e4e 1 parent a22d366
@shockie authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
12 README.md
@@ -4,22 +4,22 @@ Simple .ini parser for node, supports sections
To parse a .ini file async:
<pre>
- var iniparser = require('iniparser');
- iniparser.parse('./config.ini', function(err,data){
- var version = data.version;
- });
+var iniparser = require('iniparser');
+iniparser.parse('./config.ini', function(err,data){
+ var version = data.version;
+});
</pre>
To parse a .ini file sync:
<pre>
var iniparser = require('iniparser');
- var config = iniparser.parseSync('./config.ini');
+var config = iniparser.parseSync('./config.ini');
</pre>
To parse a string in .ini format:
<pre>
var iniparser = require('iniparser');
- var config = iniparser.parseString('foo=bar');
+var config = iniparser.parseString('foo=bar');
</pre>
## Installation
npm:
Please sign in to comment.
Something went wrong with that request. Please try again.