@pawel-up/data-mock
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

Data mock

A data generation library that helps mocking different schemes.

Usage

Installation

npm install --save @pawel-up/data-mock

Origin

This library started as a fork and a combination of two other great libraries: chance.js and faker.js. The basic data generation part is based on the two libraries. The difference is that this library is an ES module and it's goal is to mock well defined data structures.

When to use?

Most likely you want to use any of the original libraries as they have a getter support and community. This can be a not in-drop replacement if you need support for ESM. Also this project aims to generate mocked schemas and not just random basic values.

Development

git clone https://github.com/jarrodek/data-mock
cd data-mock
npm install

Running the demo locally

npm start

Running the tests

npm test

Readme

Keywords

Package Sidebar

Install

npm i @pawel-up/data-mock

Weekly Downloads

5

Version

0.3.2

License

MIT

Unpacked Size

1.06 MB

Total Files

180

Last publish

Collaborators

  • jarrodek