Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_faker/lib/image_providers/unsplash.ts>Unsplash

Deno port of https://github.com/Marak/faker.js
Latest
class Unsplash
import { Unsplash } from "https://deno.land/x/deno_faker@v1.0.3/lib/image_providers/unsplash.ts";

Constructors

new
Unsplash(faker: any)

Properties

categories: string[]
faker: any

Methods

avatar

buildings(
width: number,
height: number,
keyword: string,
)

buildings

food(
width: number,
height: number,
keyword: string,
)

food

image(
width: number,
height: number,
keyword: string,
)

image

imageUrl(
width: number,
height: number,
category: string | undefined,
keyword: string,
)

imageUrl

nature(
width: number,
height: number,
keyword: string,
)

nature

objects(
width: number,
height: number,
keyword: string,
)

objects

people(
width: number,
height: number,
keyword: string,
)

people

technology(
width: number,
height: number,
keyword: string,
)

technology