shhdharmen / falso

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

Home Page:https://netbasal.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

πŸ€“ Learn about it on the docs site
πŸ”₯ Run it on Stackblitz

Installation

npm i @ngneat/falso
yarn add @ngneat/falso
import { randEmail, randFullName } from '@ngneat/falso';

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

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

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();
Icons made by Freepik from www.flaticon.com

About

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

https://netbasal.com

License:MIT License


Languages

Language:TypeScript 93.2%Language:JavaScript 6.6%Language:Shell 0.1%