JSON 数据生产库 DreamJS
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/adleroliveira/dreamjs
软件介绍
DreamJS 是一个轻量级的 JavaScript 库,可以用来产生 JSON 数据。这个库可以通过使用标准的类型,如字符串、数值、日期、布尔、常量,从 JSON Schema 中输出随机的数据。
示例代码:
dream.customType('pi', function () { return Math.PI;
});dream.customType('hello', /hello+ (world|to you)/);
dream
.schema({
name: 'name',
age: 'age',
address: 'address',
contact: {
phone: 'phone',
servicePhone: /^(800[1-9]{6})$/
}, foo: function () { return 'bar';
},
pi: 'pi',
hello: 'hello'
})
.generateRnd(2)
.output(function (err, result) { console.log(result);
});Handbook of Data Structures and Applications
Dinesh P. Mehta / Chapman and Hall/CRC / 2004-10-28 / USD 135.95
In the late sixties, Donald Knuth, winner of the 1974Turing Award, published his landmark book The Art of Computer Programming: Fundamental Algorithms. This book brought to- gether a body of kno......一起来看看 《Handbook of Data Structures and Applications》 这本书的介绍吧!
