New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ngneat/falso

Package Overview
Dependencies
Maintainers
1
Versions
67
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

  • 7.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
189K
decreased by-28.71%
Maintainers
1
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

FAQs

Package last updated on 07 Jan 2025

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc