swe-mock

1.0.0 • Public • Published

mock-data-generator

Generate mock data in Swedish

Test

npm run test

Generate docs

npm run docs

Modules

address
name

Functions

boolean()boolean

True or false

email([options])string

A random lower case email address

lorem([n])String

Lorem ipsum sentences

number([min], [max])number

Generates a random number

phone()string

A random phone number

address

address.city() ⇒ string

The name of a random city

Kind: static method of address

address.streetAddress() ⇒ string

A random street address

Kind: static method of address

address.zipCode() ⇒ string

A random five digit zip code

Kind: static method of address

name

name~firstName() ⇒ string

A random first name

Kind: inner method of name

name~lastName() ⇒ string

A random last name

Kind: inner method of name

name~name() ⇒ string

A first name and a last name

Kind: inner method of name

boolean() ⇒ boolean

True or false

Kind: global function

email([options]) ⇒ string

A random lower case email address

Kind: global function

Param Type Default Description
[options] Object {} Your prefered email details
[options.prefix] string Customize the left side of the @-sign
[options.domain] string Customize the right side of the @-sign

lorem([n]) ⇒ String

Lorem ipsum sentences

Kind: global function

Param Type Default Description
[n] number 1 Number of sentences

number([min], [max]) ⇒ number

Generates a random number

Kind: global function

Param Type Default
[min] number 0
[max] number min+10

phone() ⇒ string

A random phone number

Kind: global function

Package Sidebar

Install

npm i swe-mock

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

31 kB

Total Files

26

Last publish

Collaborators

  • oingvarsson