read-ini-file
Read and parse an ini file
Last updated 3 years ago by zkochan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install read-ini-file 
SYNC missed versions from official npm registry.

read-ini-file

Read and parse an ini file

npm version

Installation

pnpm add read-ini-file

Usage

'use strict'
const { readIniFile } = 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' }

API

readIniFile(filepath)

Returns a promise for the parsed ini.

readIniFileSync(filepath)

Returns the parsed ini.

Related

  • write-ini-file - Stringify and write ini to a file atomically
  • ini - An ini parser/serializer in JavaScript

License

MIT © Zoltan Kochan

Current Tags

  • 4.0.0                                ...           latest (3 years ago)
  • 3.1.0                                ...           next (5 years ago)
  • 3.0.0                                ...           pnpm-temp (6 years ago)

7 Versions

  • 4.0.0                                ...           3 years ago
  • 4.0.0-0                                ...           3 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           6 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 4
Dependencies (2)
Dev Dependencies (5)

Copyright 2013 - present © cnpmjs.org | Home |