7.2.0 ā€¢ Published 3 months ago

@ngneat/falso v7.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

All the Fake Data for All Your Real Needs šŸ™‚

Create massive amounts of fake data in the browser and NodeJS. Tree Shakeable & Fully Typed.

@ngneat/falso commitizen PRs coc-badge semantic-release styled with prettier

āœ… Ā 203 Functions
āœ… Ā Tree Shakable
āœ… Ā Fully Typed
āœ… Ā Factory Functions
āœ… Ā Entity Functions
āœ… Ā Single and Array Result

šŸ¤“ Learn about it on the docs site

Sponsoring ngneat

Sponsorships aid in the continued development and maintenance of ngneat libraries. Consider asking your company to sponsor ngneat as its core to their business and application development.

Gold Sponsors

Elevate your support by becoming a Gold Sponsor and have your logo prominently featured on our README in the top 5 repositories.

Silver Sponsors

Boost your backing by becoming a Gold Sponsor and enjoy the spotlight with your logo prominently showcased in the top 3 repositories on our README.

Bronze Sponsors

Become a bronze sponsor and get your logo on our README on GitHub.

StackBlitz

Open in StackBlitz

Installation

npm i @ngneat/falso
yarn add @ngneat/falso

Usage

import { randEmail, randFullName } from '@ngneat/falso';

const user = { email: randEmail(), name: randFullName() };

const emails = randEmail({ length: 10 });

You can specify the length of elements you want to generate. Below is an example of generating 10 emails with length equal or smaller than 20 characters.

const emails = randEmail({ length: 10, maxCharCount: 20 });

Setting a Randomness Seed

You can set your own seed if you want consistent results:

import { rand, seed } from '@ngneat/falso';

seed('some-constant-seed');

// Always returns 2
rand([1, 2, 3, 4, 5]);

// Reset random seed
seed();

Contribute

  • Go over the steps in this guide
  • Add a new falso

contribute

  • Use npm run c and choose the right answers
7.2.0

3 months ago

7.1.1

8 months ago

7.1.0

9 months ago

7.0.0

10 months ago

7.0.1

10 months ago

6.3.0

1 year ago

6.3.2

1 year ago

6.3.1

1 year ago

6.4.0

1 year ago

6.2.0

1 year ago

6.1.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.0.3

2 years ago

6.0.2

2 years ago

5.5.0

2 years ago

5.3.0

2 years ago

5.1.0

2 years ago

5.6.1

2 years ago

5.6.0

2 years ago

5.4.1

2 years ago

5.4.0

2 years ago

5.2.1

2 years ago

5.2.0

2 years ago

5.0.1

2 years ago

5.7.0

2 years ago

5.0.0

2 years ago

3.1.0

2 years ago

4.0.0

2 years ago

3.0.0

2 years ago

2.27.0

2 years ago

2.26.1

2 years ago

2.26.0

2 years ago

2.25.1

2 years ago

2.24.0

2 years ago

2.23.0

2 years ago

2.22.0

2 years ago

2.21.0

2 years ago

2.20.0

2 years ago

2.19.0

2 years ago

2.18.0

2 years ago

2.17.0

2 years ago

2.16.0

2 years ago

2.15.0

2 years ago

2.14.0

2 years ago

2.13.0

2 years ago

2.12.0

2 years ago

2.11.0

2 years ago

2.10.0

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.7.0

2 years ago

2.6.0

2 years ago

2.5.1

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

2.3.0-beta.0

2 years ago

2.2.0-beta.0

2 years ago

2.1.0-beta.0

2 years ago

2.0.0-beta.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago