imposterjs

1.0.9 • Public • Published
Logo

Imposter.js

Generate fake/dummy data for testing


Getting Started

npm install imposterjs

or with yarn

yarn add imposterjs

Usage

const imposter = require("imposterjs");

imposter.name(); // 'John Doe'

API

Syntax Output
imposter.name() John Doe
imposter.address() 7301 Northwest 113th Terrace
imposter.city() Panama City Beach
imposter.state() GA
imposter.postalCode() 40299
imposter.coordinates() { latitude: 36.113929, longitude: -85.649453 }
imposter.latitude() 42.1995008
imposter.longitude() -97.53227299999999
imposter.loremIpsum(200) Lorem ipsum dolor .....
imposter.uuid() 4982268e-0ec9-4f5d-9533-e7d09cb693d9
imposter.phone() (468) 126-8518
imposter.email() Genvieve.Chrotoem@hotmail.com
imposter.ip() 146.150.129.126
imposter.macAddress() 113:51:75:4:60:166
imposter.url() https://m.Madeleine.com
imposter.randomString() mXTvAUpxlH
imposter.randomNumber() 22
imposter.randomBoolean() false

Package Sidebar

Install

npm i imposterjs

Weekly Downloads

9

Version

1.0.9

License

none

Unpacked Size

5.11 MB

Total Files

7

Last publish

Collaborators

  • ssakib4040