1.1.1 • Published 5 years ago

bash.im v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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
1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago