返回排行榜

ngneat/falso

TypeScriptngneat.github.io/falso/

All the Fake Data for All Your Real Needs 🙂

fakedatamockmockdatafakedatarandom
Star 增长趋势
Star
3.3k
Forks
122
周增长
Issues
11
2k2.5k3k
2022年1月2023年6月2024年10月2026年4月
制品库npmnpm install falso
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.


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

✅  205 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

House of Angular

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

Contributors

Thanks to awesome contributors! ❤️

Made with contrib.rocks.

相关仓库
typicode/json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

JavaScriptnpmMIT Licenseapifake
75.7k7.3k
hagezi/dns-blocklists

DNS-Blocklists: For a better internet - keep the internet clean!

TextGNU General Public License v3.0dnsads
24.6k755
joke2k/faker

Faker is a Python package that generates fake data for you.

PythonPyPIMIT Licensepythonfake
faker.readthedocs.io
19.3k2.1k
faker-js/faker

Generate massive amounts of fake data in the browser and node.js

TypeScriptnpmOtherfakerdata
fakerjs.dev
15.4k1.1k
svenstaro/genact

🌀 A nonsense activity generator

Rustcrates.ioMIT Licensefakenonsense
svenstaro.github.io/genact/
12.1k492
faker-ruby/faker

A library for generating fake data such as names, addresses, and phone numbers.

RubyRubyGemsMIT Licensefakeruby
11.9k3.2k
bchavez/Bogus

:card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.

C#Otherfakedata
9.7k542
brianvoe/gofakeit

Random fake data generator written in go

GoGo ModulesMIT Licensegodata
5.4k296
typicode/jsonplaceholder

A simple online fake REST API server

HTMLMIT Licenseonlinefake
jsonplaceholder.typicode.com
5.2k598
lk-geimfari/mimesis

Mimesis is a Python library for generating fake but realistic data in multiple languages and locales.

PythonPyPIMIT Licensemimesisfake
mimesis.name
4.8k359
fake-useragent/fake-useragent

Up-to-date simple useragent faker with real world database

PythonPyPIApache License 2.0pythonpython3
pypi.python.org/pypi/fake-useragent
4.1k538
Belval/TextRecognitionDataGenerator

A synthetic data generator for text recognition

PythonPyPIMIT Licensesyntheticdata
3.7k1k