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

0.1.5 • 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

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

API Documents

Documents

Inspired by

Mockjs
faker-js

LICENSE

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.53latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.53
0.1.41
0.1.30
0.1.20
0.1.10
0.1.00
0.0.81
0.0.70
0.0.61
0.0.51
0.0.41
0.0.31
0.0.20
0.0.15-beta0
0.0.14-beta0
0.0.12-beta0
0.0.11-beta0
0.0.1-beta0
0.0.12

Package Sidebar

Install

npm i tiny-lorem

Weekly Downloads

11

Version

0.1.5

License

MIT

Unpacked Size

394 kB

Total Files

7

Last publish

Collaborators

  • cirolee