write-ini-file
TypeScript icon, indicating that this package has built-in type declarations

4.0.1 • Public • Published

write-ini-file

Stringify and write ini to a file atomically

npm version

Installation

<npm|yarn|pnpm> add write-ini-file

Usage

const { writeIniFile } = require('write-ini-file')

writeIniFile('foo.ini', {foo: true}).then(() => {
	console.log('done')
})

API

writeIniFile(filepath, data, [options])

Returns a promise.

writeIniFileSync(filepath, data, [options])

options

section

Read more at the ini repo.

mode

Type: number Default 438 (0666 in octal)

Mode used when writing the file.

Related

  • read-ini-file - Read and parse an ini file
  • ini - An ini parser/serializer in JavaScript

License

MIT © Zoltan Kochan

Package Sidebar

Install

npm i write-ini-file

Weekly Downloads

241

Version

4.0.1

License

MIT

Unpacked Size

4.64 kB

Total Files

5

Last publish

Collaborators

  • zkochan