1.0.8 • Published 5 years ago

ini-decode v1.0.8

Weekly downloads
3
License
ISC
Repository
-
Last release
5 years ago

ini-decode

ini file decoder for Node.js, using this util, you can read .ini file and even parse it to .d.ts file

installation

npm install ini-decode

usage

import fs from 'fs'
import { decode } from 'ini-decode'

//parse
const { json: configs, dts } = decode(fs.readFileSync('/path/to/ini'))

//this is configs
console.log(configs)

//you can write dts to a .d.ts file
fs.writeFileSync('/path/to/ini.d.ts', dts)