Socket
Socket
Sign inDemoInstall

bash.im

Package Overview
Dependencies
7
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bash.im

A package to get random quote from bash.im


Version published
Weekly downloads
7
increased by600%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 26 Apr 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc