npm / ini

An ini parser/serializer in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] parse error with variable number

alicera opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I read the ini with 3 (c0, c1, c2)
const file = await fs.promises.readFile(filePath, 'utf-8');

[aa.bb.c0]
value=1

[aa.bb.c1]
value=1

[aa.bb.c2]
value=1

It only show c0.
const config = ini.parse(file);

 aa: {
    bb: { c0: [Object]}
  }

Expected Behavior

No response

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • npm: 8.1.0

  • Node:v16.13.0

  • OS:Ubuntu 20.04

  • platform: pc

  • v3.0.1 ini