1.2.3 • Published 3 years ago

say-cheese-node-wrapper v1.2.3

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

say-cheese-node-wrapper

A wrapper for IllusionMan1212's say cheese API

https://github.com/IllusionMan1212/say-cheese

Install

npm i say-cheese-node-wrapper

or

yarn add say-cheese-node-wrapper

The module contains JSDoc and .d.ts so you should find docs in your ide/editor

console.log(await random()) // Returns a random cheese from the db.
console.log(await search(q, page, per_page)) // Search for cheeses by name.
/*
q - The search query you want to perform. (required)
page - Pagination number. (default = 1)
per_page - Number of cheeses to display in a single page. (max = 50; default = 10)
*/
console.log(await today()) // Returns cheese of the day.
console.log(await alphabetical(letter, page, per_page)) // Find cheeses by their first letter.
/*
l - The letter you want to display the cheeses for. (required)
page - Pagination number. (default = 1)
per_page - Number of cheeses to display in a single page. (max = 50; default = 10)
*/
console.log(await vegetarian(page, per_page)) // Returns an array of all vegetarian cheeses.
/*
page - Pagination number. (default = 1)
per_page - Number of cheeses to display in a single page. (max = 50; default = 10)
*/
1.2.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago