Socket
Book a DemoInstallSign in
Socket

believable

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

believable

generate believable data like emails and passwords

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Believable

Generate believable, reproducible data like usernames, full names, emails, and passwords.

Why?

For testing and anywhere you might want to input dummy data.

Installation

$ npm install believable

Data sources

  • Wordlist gist mirror
  • Passwords
  • Email domains
  • Star Wars names derived from starwars-names
  • Names come from 1990 US census data collected here: treyhunner/name

Usage

const { Believable } = require('believable');
const believable = new Believable(seed);

console.log(believable.fullName());
console.log(believable.firstName());
console.log(believable.email());

API Methods

  • believable.fullName(): Shanell Nisbet
  • believable.firstName(): Ellie
  • believable.lastName(): Coleman
  • believable.character(): d
  • believable.separator(): .
  • believable.starWarsName(): Biggs Solo
  • believable.username(): shellieWacker68
  • believable.password(): helena99
  • believable.birthYear(): 1957
  • believable.birthYearShort(): 44
  • believable.birthDate(): Wed Oct 01 1975 17:21:31 GMT-0400 (Eastern Daylight Time)
  • believable.hostname(): ntlworld.com
  • believable.randomPassword(): t?TdQm8QtVW
  • believable.passphrase(): octal.hirable.zebroid
  • believable.commonPassword(): 1664
  • believable.credentials(): t.mccrady@hush.com:cloud9
  • believable.word(): grammar
  • believable.email(): robbinmedved@hotmail.es

Contributions

If you have ideas on other data to include, feel free to submit a PR. There is a low barrier to entry for contributions; as long as you don't include massive dependencies or compromise determism then have at it.

Keywords

generate

FAQs

Package last updated on 25 Sep 2020

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