tiny-lorem
v0.1.5
Published
A library of modern JavaScript tools for generating mock data. 0 dependencies
Downloads
130
Readme
A modern JavaScript tool library for generating simulation data. Has perfect type hinting. Can be used in browser and node.
English | 简体中文
Installation
pnpm
pnpm add 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