1.0.2 • Published 5 years ago
kick-prop v1.0.2
kick-prop
Table of contents
Installation
npm install --save kick-prop
# or
cnpm install --save kick-prop
Usage
const { readFileSync } = require('fs');
const Properties = require('kick-prop');
const prop = new Properties();
// sync
prop.load(readFileSync( ... ).toString());
// async
prop.loadFile( ... ).then(()=> {
console.log(prop.getProperty( ... ));
});
// sync
prop.loadFileSync( ... );
console.log(prop.getProperty( ... ));