Needs Perl Modules

    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)

    Install

    npm i ini-decode

    DownloadsWeekly Downloads

    4

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    9.63 kB

    Total Files

    5

    Last publish

    Collaborators

    • yizhi