New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-tipbot-api

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

node-tipbot-api

Node TipBot API - node.js library

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Node TipBot API

NPM Installation

$ npm install node-tipbot-api

Clone the project via github

$ git clone https://github.com/nrpatten/node-tipbot-api.git
  • Then meet the package dependencies:
$ cd node-tipbot-api/
$ npm install

First steps

  • include node-tipbot-api into your project:
var tipbot = require('node-tipbot-api');

Configuration options true or false

tipbot.options({
    'stream' : true,
    'cleartext' : true 
});

By default the returned data is an object, in order to get clear text you have to add the option cleartext (streams will always return objects):

Cleartext

  • To activate Cleartext simply add to your options:
'cleartext' : true

Streams

  • To activate Streaming simply add to your options:
'stream' : true

Example

sendCustomRequest
  • url String
  • callback Function
var url = 'http://api.icndb.com/jokes/random';
tipbot.sendCustomRequest( url, function( data ) {
    var info = data;
    console.log( info.value.joke );
});

Keywords

node

FAQs

Package last updated on 20 Oct 2014

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