This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

bash.im
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

bash.im

Модуль, который получает рандомную цитату с сайта bash.im

Использование

let bash = require('bash.im');
 
// ...
 
let { body, id, link, votes, date, createdAt } = await bash();
 
let result = [
  `Quote: <<${body}>>`,
  `ID: ${id}`,
  `Votes: ${votes}`,
  `Created at: ${createdAt}`,
  `Date: ${date}`,
  `Link: ${link}`,
].join('\n');
 
console.log(result);
 
// Quote: <<<montavista> Военрук молодец: "В случае землетрясения сразу выносите деньги, документы и кота">>
// ID: 413268
// Votes: 15454
// Created at: 1318576260000
// Date: Fri Oct 14 2011 10:11:00 GMT+0300 (GMT+03:00)
// Link: https://bash.im/quote/413268

Readme

Keywords

Package Sidebar

Install

npm i bash.im

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

3.08 kB

Total Files

4

Last publish

Collaborators

  • nitrojs