tiny-lorem
v0.1.3
Published
A library of modern JavaScript tools for generating mock data. 0 dependencies
Downloads
91
Readme
A modern JavaScript tool library for generating simulation data. Has perfect type hinting. Can be used in browser and node.
view the demo
Installation
pnpm
pnpm install tiny-lorem
yarn
yarn install tiny-lorem
npm
npm install tiny-lorem
Usage
ESM(ESModule)
import TinyLorem from 'tiny-lorem';
const lorem = new TinyLorem();
lorem.texts.word(); // 汉
lorem.number.int(); // 123
CJS(CommonJs)
const TinyLorem = require('tiny-lorem').default;
const lorem = new TinyLorem();
lorem.texts.word(); // 汉
lorem.number.int(); // 123