Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
/ node-suc Public archive

简单的,无手册的配置文件解析器 ( simple & unmanual config parser )

License

Notifications You must be signed in to change notification settings

TorzoClub/node-suc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-suc

这是啥么包?

Suc 配置文件 解析器的 NodeJS 实现

用法

const Suc = require('node-suc').Suc;
let suc = new Suc;

let obj = suc.parse(`
[num] 999

[bool] false

[list]
abc
cba
torzo

string >hello, world!
`);
/*
{
  num: 999,
  bool: false,
  list: [ 'abc', 'cba', 'torzo' ],
  string: 'hello, world!'
}
*/

suc.stringify(obj);
/*
[num] 999
[bool] false
[list]
abc
cba
torzo

string >hello, world!
*/

About

简单的,无手册的配置文件解析器 ( simple & unmanual config parser )

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published