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
- Host: GitHub
- URL: https://github.com/sparkenstein/ini-parser
- Owner: Sparkenstein
- Created: 2018-11-18T13:07:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-01T13:04:06.000Z (over 7 years ago)
- Last Synced: 2025-02-02T18:13:56.903Z (over 1 year ago)
- Topics: ini-parser, nodejs
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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);
```