Skip to content

CiroLee/tiny-lorem

Repository files navigation

logo

tiny-lorem

A modern JavaScript tool library for generating simulation data. Has perfect type hinting. Can be used in browser and node.

English | 简体中文

codecov npm bundle size npm NPM

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

API Documents

Documents

Inspired by

Mockjs
faker-js

LICENSE

MIT

About

A library of modern JavaScript tool for generating mock data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages