Skip to main content
Module

x/deno_faker/lib/hacker.ts

Deno port of https://github.com/Marak/faker.js
Latest
File
/** * * @namespace faker.hacker */class Hacker { faker: any; constructor(faker: any) { this.faker = faker; }
/** * abbreviation * * @method faker.hacker.abbreviation */ abbreviation = () => { return this.faker.random.arrayElement( this.faker.definitions.hacker.abbreviation, ); };
/** * adjective * * @method faker.hacker.adjective */ adjective = () => { return this.faker.random.arrayElement( this.faker.definitions.hacker.adjective, ); };
/** * noun * * @method faker.hacker.noun */ noun = () => { return this.faker.random.arrayElement(this.faker.definitions.hacker.noun); };
/** * verb * * @method faker.hacker.verb */ verb = () => { return this.faker.random.arrayElement(this.faker.definitions.hacker.verb); };
/** * ingverb * * @method faker.hacker.ingverb */ ingverb = () => { return this.faker.random.arrayElement( this.faker.definitions.hacker.ingverb, ); };
/** * phrase * * @method faker.hacker.phrase */ phrase = () => { const data = { abbreviation: this.abbreviation, adjective: this.adjective, ingverb: this.ingverb, noun: this.noun, verb: this.verb, };
const phrase = this.faker.random.arrayElement( this.faker.definitions.hacker.phrase, ); return this.faker.helpers.mustache(phrase, data); };}
export { Hacker };