say-cheese-node-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

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)
*/

Package Sidebar

Install

npm i say-cheese-node-wrapper

Weekly Downloads

1

Version

1.2.3

License

MIT

Unpacked Size

6.18 kB

Total Files

5

Last publish

Collaborators

  • thatcopy