moved https://github.com/zkochan/packages/tree/master/read-ini-file
Read and parse an ini file
npm i -S read-ini-file
'use strict'
const loadIniFile = require('read-ini-file')
const path = require('path')
const fixture = path.join(__dirname, 'currencies.ini')
const currencies = loadIniFile.sync(fixture)
console.log(currencies)
//> { USA: 'USD', Ukraine: 'UAH', Hungary: 'HUF' }
Returns a promise for the parsed ini.
Returns the parsed ini.
- write-ini-file - Stringify and write ini to a file atomically
- ini - An ini parser/serializer in JavaScript