🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@ngneat/falso

Package Overview
Dependencies
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngneat/falso

All the Fake Data for All Your Real Needs

6.3.0
Source
npm
Version published
Weekly downloads
411K
2.85%
Maintainers
3
Weekly downloads
 
Created

What is @ngneat/falso?

@ngneat/falso is a JavaScript library that provides a wide range of fake data generators for various types of data. It is useful for testing, prototyping, and development purposes where you need to generate realistic but fake data.

What are @ngneat/falso's main functionalities?

Generate Fake Names

This feature allows you to generate random first and last names, which can be useful for populating user profiles or testing forms.

const { randFirstName, randLastName } = require('@ngneat/falso');
console.log(randFirstName()); // e.g., 'John'
console.log(randLastName()); // e.g., 'Doe'

Generate Fake Addresses

This feature allows you to generate random street addresses, cities, and countries, which can be useful for testing location-based applications.

const { randStreetAddress, randCity, randCountry } = require('@ngneat/falso');
console.log(randStreetAddress()); // e.g., '123 Main St'
console.log(randCity()); // e.g., 'New York'
console.log(randCountry()); // e.g., 'USA'

Generate Fake Dates

This feature allows you to generate random past and future dates, which can be useful for testing date-based functionalities.

const { randPastDate, randFutureDate } = require('@ngneat/falso');
console.log(randPastDate()); // e.g., '2020-01-01T00:00:00.000Z'
console.log(randFutureDate()); // e.g., '2025-01-01T00:00:00.000Z'

Generate Fake Emails

This feature allows you to generate random email addresses, which can be useful for testing email-related functionalities.

const { randEmail } = require('@ngneat/falso');
console.log(randEmail()); // e.g., 'john.doe@example.com'

Generate Fake Phone Numbers

This feature allows you to generate random phone numbers, which can be useful for testing contact forms and phone number validation.

const { randPhoneNumber } = require('@ngneat/falso');
console.log(randPhoneNumber()); // e.g., '(123) 456-7890'

Other packages similar to @ngneat/falso

Keywords

fake

FAQs

Package last updated on 07 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts