data-mock-util
v1.0.0
Published
This util provide basic functionality to mock basic entity
Downloads
1
Readme
data-mock-util
This util provide basic functionality to mock basic entity
Install
npm install --save git+https://github.com/synle/data-mock-util.git
Use
// include
const dataMockUtil = require('data-mock-util');
// to use
mockDataUtil.getItem(list)
mockDataUtil.getPositiveInteger(max)
mockDataUtil.getInteger(min, max)
mockDataUtil.getPhoneNumber()
mockDataUtil.getZipCode()
mockDataUtil.getDateObject(dayDelta, hourDelta)
mockDataUtil.getNameWord()
mockDataUtil.getPersonFullName()
mockDataUtil.getCity()
mockDataUtil.getEmail()