tiny-lorem
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published
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

Package Sidebar

Install

npm i tiny-lorem

Weekly Downloads

14

Version

0.1.2

License

MIT

Unpacked Size

376 kB

Total Files

6

Last publish

Collaborators

  • cirolee