Skip to content

Node JavaScript helper library for parsing, setting and getting ini files, strings and items.

Notifications You must be signed in to change notification settings

goldingdamien/ini-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Node JavaScript helper library for parsing, setting and getting ini files, strings and items.

Concerns

Current this libary does not preserve ini comments due to a dependency.

Usage

const fs = require('fs');

const IniHelper = require('ini-helper');
const iniHelper = new IniHelper();

const INI = 'my-file.ini';

const val = iniHelper.getItem(fs.readFileSync(INI), 'key');
console.log(val);

API

  • getItem(iniStr, keyStr)
  • setItem(iniStr, keyStr, value)
  • setString(iniStr, settingsStr)
  • parseIniString(iniStr)
  • stringifyIniObject(iniObjStr)
  • editIniFile(from, to, settings)
  • editIniObject(iniObj, settings)
  • keyStringToPath(keyStr)
  • createSettings(arr)
  • createSetting(path, value)

About

Node JavaScript helper library for parsing, setting and getting ini files, strings and items.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published