Skip to content
cliffpyles edited this page Dec 11, 2015 · 1 revision

Email faker.internet.email([firstName, lastName, provider])

faker.internet.email(); //returns "[email protected]"
faker.internet.email("joe","smith","gmail.com"); //returns "[email protected]"

User name faker.internet.userName([firstName, lastName]) User name is chosen from a random pattern: (firstName##, firstName[.,]lastName, firstName[.,]lastName##) with no spaces or "'" characters

faker.internet.userName(); //returns "Kirstin39"

Protocol Limited to http, https. faker.internet.protocol()

faker.internet.protocol(); //returns "https"

URL faker.internet.url()

faker.internet.url(); //returns "https://rashawn.name"

Domain name faker.internet.domainName()

faker.internet.domainName(); //returns "marvin.org"

Domain word faker.internet.domainWord()

faker.internet.domainWord(); //returns "alyce"

Domain suffix faker.internet.domainSuffix()

faker.internet.domainSuffix(); //returns "net"

IP address faker.internet.ip()

faker.internet.ip(); //returns "97.238.241.11"

User agent faker.internet.userAgent()

faker.internet.userAgent(); //returns "Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_7_5 rv:6.0; SL) AppleWebKit/532.0.1 (KHTML, like Gecko) Version/7.1.6 Safari/532.0.1"  

HEX color faker.internet.color()

faker.internet.color(); //returns "#06267f"

MAC address faker.internet.mac()

faker.internet.mac(); //returns "78:06:cc:ae:b3:81"

password faker.internet.password([lenght[8], memorable])

faker.internet.password(8); //returns "AM7zl6Mg"
faker.internet.password(8,1); //returns "susejofe"

uuid faker.random.uuid()

faker.random.uuid(); //returns "e38b14a3-5db8-48b9-a58b-00693b26e835"
Clone this wiki locally