Diferencia entre revisiones de «Deno-faker»
Ir a la navegación
Ir a la búsqueda
([feat] Add information Deno - deno-faker) |
|||
Línea 1: | Línea 1: | ||
= | = Descripción = | ||
= Ejemplos = | |||
== Ejemplo 1 == | |||
import { faker } from "https://deno.land/x/deno_faker@v1.0.3/mod.ts"; | |||
const randomName = faker.name.findName(); | |||
const randomEmail = faker.internet.email(); | |||
const randomCard = faker.helpers.createCard(); | |||
const randomHackerPhrase = faker.hacker.phrase(); | |||
console.log("Name is: ", randomName); | |||
console.log("Email is: ", randomEmail); | |||
console.log("Card is: ", randomCard); | |||
console.log("Hacker phrase is: ", randomHackerPhrase); | |||
== Ejemplo 2 == | |||
Especificar el idioma. | |||
import { faker } from "https://deno.land/x/deno_faker@v1.0.3/mod.ts"; | |||
const randomName = faker.name.findName(); | |||
const randomEmail = faker.internet.email(); | |||
const randomCard = faker.helpers.createCard(); | |||
const randomHackerPhrase = faker.hacker.phrase(); | |||
console.log("Name is: ", randomName); | |||
console.log("Email is: ", randomEmail); | |||
console.log("Card is: ", randomCard); | |||
console.log("Hacker phrase is: ", randomHackerPhrase); | |||
= Recursos = | = Recursos = | ||
* Sitio oficial: [https://deno.land/x/deno_faker EN] | * Sitio oficial: [https://deno.land/x/deno_faker EN] |
Revisión del 13:37 18 feb 2023
Descripción
Ejemplos
Ejemplo 1
import { faker } from "https://deno.land/x/deno_faker@v1.0.3/mod.ts";
const randomName = faker.name.findName(); const randomEmail = faker.internet.email(); const randomCard = faker.helpers.createCard(); const randomHackerPhrase = faker.hacker.phrase();
console.log("Name is: ", randomName); console.log("Email is: ", randomEmail); console.log("Card is: ", randomCard); console.log("Hacker phrase is: ", randomHackerPhrase);
Ejemplo 2
Especificar el idioma.
import { faker } from "https://deno.land/x/deno_faker@v1.0.3/mod.ts";
const randomName = faker.name.findName(); const randomEmail = faker.internet.email(); const randomCard = faker.helpers.createCard(); const randomHackerPhrase = faker.hacker.phrase();
console.log("Name is: ", randomName); console.log("Email is: ", randomEmail); console.log("Card is: ", randomCard); console.log("Hacker phrase is: ", randomHackerPhrase);
Recursos
- Sitio oficial: EN