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

0.1.6 • 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.69latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.69
0.1.51
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
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.10

Package Sidebar

Install

npm i tiny-lorem

Weekly Downloads

10

Version

0.1.6

License

MIT

Unpacked Size

388 kB

Total Files

7

Last publish

Collaborators

  • cirolee