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

1.0.8 • Public • Published

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.8
    3
    • latest

Version History

Package Sidebar

Install

npm i ini-decode

Weekly Downloads

3

Version

1.0.8

License

ISC

Unpacked Size

9.63 kB

Total Files

5

Last publish

Collaborators

  • yizhi