npm / ini

An ini parser/serializer in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

str.split is not a function

ta3pks opened this issue · comments

For anyone else that gets this, it's because you are giving it a buffer and not a string.

Changing something like fs.readFileSync('filename.ini') to fs.readFileSync('filename.ini', 'utf-8') will fix the problem.

eventually i figured that out thats why i closed the bug report :) thanks @Klathmon