jinzhubaofu / bd-conf

bd conf parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bd conf

Build Status Coverage Status

a parser for bd conf

requirement

nodejs >= 4

setup

npm install --save bd-conf

usage

const BDConf = require('bd-conf');

const confText = `
#COMMENT

name: 1

[data]
name: data

`;

const conf = BDConf.parse(confText);

try {
    BDConf.parse('this will throw');
}
catch (error) {

}

About

bd conf parser


Languages

Language:JavaScript 100.0%