You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let config = ini.parse(fs.readFileSync('./config.ini', 'utf-8'))
// config.path → "\server\test\001"
// There is only one ’\’ at the beginning of the character.
// But there are two correctly.
The text was updated successfully, but these errors were encountered:
It is not bug of this package, it is feature of JavaScript.
Try it: console.log("\\");
It'll output \
Details is here: https://www.w3schools.com/js/js_strings.asp, see "backslash escape character"
You can try my fork, ini-win, which aims to be more compatible with the way Windows handles ini files. Windows doesn't do any unescaping when reading the values, and so does my fork, so it fixes this issue.
config.ini
The text was updated successfully, but these errors were encountered: