New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bit_js

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bit_js

Javascript library for the Bands in Town API

  • 3.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bit_js

npm version Build Status

A small javascript library to retrieve data from the Bands in Town API.

Table of contents
  1. Installation
  2. Usage
    1. ES5
    2. ES6
    3. Parameters
  3. Terms & Conditions

Installation

(Install and save to dependencies)

NPM

npm i bit_js --save

Yarn

yarn add bit_js

Usage

ES5
var bit_js = require('bit_js');


var options = {
  'artist': 'skrillex',
  'app_id': 'my_app_id',
};

var optionsEvents = {
  'artist': 'skrillex',
  'app_id': 'my_app_id',
  'daterange': '2017-09-20',
}

var callback = function(data) {
  console.log(data)
}


bit_js.bitGetArtist(options, callback);
bit_js.bitGetArtistEvents(optionsEvents, callback);
ES6
import {
  bitGetArtist,
  bitGetArtistEvents
} from 'bit_js'


let options = {
  'artist': 'skrillex',
  'app_id': 'my_app_id',
}

let optionsEvents = {
  ...options,
  'daterange': {
    'from': '2017-08-31',
    'to': '2017-10-05',
  }
}


bitGetArtist(options, data => console.log(data))
bitGetArtistEvents(optionsEvents, data => console.log(data))

Parameters

  • options object:

    • artist string: Name of the artist. For example Britney%20Spears.

    • app_id string: ID of the app using the API. This can be anything.

    • daterange string|object: Can be a single date, or an object ({'from':'','to':''}). Date should be in "BiT format", YYYY-MM-DD.

  • callback(data) function: Callback function that returns data if call is successful.

T&C

For usage terms & conditions see the BiT API Terms.

Note: This project is not affiliated with or maintained by Bands in Town.

Keywords

FAQs

Package last updated on 20 Oct 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc