Socket
Socket
Sign inDemoInstall

spotifyr

Package Overview
Dependencies
47
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    spotifyr

JavaScript wrapper for spotify api


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
3.71 MB
Created
Weekly downloads
 

Readme

Source

spotifyr Build Status

Retrieve data from spotify public REST API for a search item

works without authentication

Install

npm install --save spotifyr

Usage

const spotifyr = require('spotifyr');

spotifyr('avicii', 'artist', function(error, response) {
	if(error) {
		console.log(error);	
	} else {
		console.log(response);
	}
});

API

search(query, type, callback)

Returns json data for requested query

query

Type: string

Query for requesting data

type

Type: string

Valid types : album, artist, playlist, track

callback

Type: function

Takes two arguments, error and response respectively

License

MIT © Rajika Imal

Keywords

FAQs

Last updated on 17 Aug 2016

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