An open API service indexing awesome lists of open source software.

https://github.com/sparkenstein/ini-parser

Simple ini parser written in nodejs
https://github.com/sparkenstein/ini-parser

ini-parser nodejs

Last synced: about 2 months ago
JSON representation

Simple ini parser written in nodejs

Awesome Lists containing this project

README

          

# ini-parser

Simple ini parser written in NodeJS.

#### Installation
```npm install Sparkenstein/ini-parser```

#### Example
```JavaScript
const Parser = require('ini-parser');
const parser = new Parser('filename.ini');

//Returns all the sections
console.log(parser.getsections());

//Returns the value
console.log(parser.getValue(section,key);

//Returns all the keys
console.log(parser.getKeys(section));

//returns all the section and values associated to the keys as object.
console.log(parser.relations);
```