https://github.com/ngneat/falso
  
  
    All the Fake Data for All Your Real Needs 🙂 
    https://github.com/ngneat/falso
  
data fake fakedata mock mockdata random
        Last synced: 6 months ago 
        JSON representation
    
All the Fake Data for All Your Real Needs 🙂
- Host: GitHub
 - URL: https://github.com/ngneat/falso
 - Owner: ngneat
 - License: mit
 - Created: 2022-01-08T18:21:34.000Z (almost 4 years ago)
 - Default Branch: main
 - Last Pushed: 2025-01-16T07:07:40.000Z (10 months ago)
 - Last Synced: 2025-05-07T10:52:35.297Z (6 months ago)
 - Topics: data, fake, fakedata, mock, mockdata, random
 - Language: TypeScript
 - Homepage: https://ngneat.github.io/falso/
 - Size: 13.9 MB
 - Stars: 3,285
 - Watchers: 14
 - Forks: 123
 - Open Issues: 16
 - 
            Metadata Files:
            
- Readme: README.md
 - Changelog: changelog.config.js
 - Contributing: CONTRIBUTING.md
 - License: LICENSE.md
 - Code of conduct: CODE_OF_CONDUCT.md
 
 
Awesome Lists containing this project
- my-awesome-list - falso
 - awesome-github-repos - ngneat/falso - All the Fake Data for All Your Real Needs 🙂 (TypeScript)
 - awesome-opensource-israel - @ngneat/falso - All the Fake Data for All Your Real Needs 🙂    (Projects by main language / typescript)
 - awesome-angular - falso - All the Fake Data for All Your Real Needs. (Development Utilities / Developer Tools)
 - fucking-awesome-angular - falso - All the Fake Data for All Your Real Needs. (Development Utilities / Developer Tools)
 
README
          
 
> All the Fake Data for All Your Real Needs 🙂
Create massive amounts of fake data in the browser and NodeJS. Tree Shakeable & Fully Typed.
[](https://github.com/ngneat/falso/actions/workflows/ci.yml)
[]()
[]()
[](CODE_OF_CONDUCT.md)
[](https://github.com/semantic-release/semantic-release)
[](https://github.com/prettier/prettier)
✅  205 Functions  
✅  Tree Shakable  
✅  Fully Typed  
✅  Factory Functions  
✅  Entity Functions  
✅  Single and Array Result
🤓 Learn about it on the [docs site](https://ngneat.github.io/falso/) 
## Sponsoring ngneat
[Sponsorships](https://github.com/sponsors/ngneat) 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
[](https://stackblitz.com/edit/typescript-pj5epp?file=index.ts)
## Installation
```
npm i @ngneat/falso
yarn add @ngneat/falso
```
### Usage
```ts
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.
```ts
const emails = randEmail({ length: 10, maxCharCount: 20 });
```
### Setting a Randomness Seed
You can set your own seed if you want consistent results:
```ts
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](https://github.com/firstcontributions/first-contributions) guide
- Add a new falso

- Use `npm run c` and choose the right answers
## Contributors
Thanks to awesome contributors! ❤️
Made with [contrib.rocks](https://contrib.rocks).