You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

read-ini-file

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-ini-file

Read and parse an ini file

4.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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.

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

License

MIT © Zoltan Kochan

Keywords

read

FAQs

Package last updated on 23 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts