You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bash.im

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bash.im

A package to get random quote from bash.im

1.1.1
latest
Source
npmnpm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
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

bashim

FAQs

Package last updated on 26 Apr 2019

Did you know?

Socket

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