Permalink
Browse files

prettified README

  • Loading branch information...
1 parent a22d366 commit 875ee5fefa56dc5d16cb61d5741d49f06e662e4e @shockie committed Sep 22, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
@@ -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:

0 comments on commit 875ee5f

Please sign in to comment.