Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.
/ write-ini-file Public archive

Stringify and write ini to a file atomically

License

Notifications You must be signed in to change notification settings

zkochan/write-ini-file

Repository files navigation

this project was moved to https://github.com/zkochan/packages/tree/master/write-ini-file

write-ini-file

Stringify and write ini to a file atomically

npm version Build Status

Installation

npm i -S 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.

writeIniFile.sync(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

About

Stringify and write ini to a file atomically

Resources

License

Stars

Watchers

Forks

Packages

No packages published