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

itunes-info

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itunes-info

iTunes info downloader

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

iTunes-info

Simple util to fetch data from iTunes with a Promise.

Use the command line tool

$ npm install -g itunes-info
$ itunes-info "Martin Garrix - Animals"
# Info will be printed...

Use it in your own project

$ npm install --save itunes-info
# or
$ yarn add itunes-info

ES6 Example

// Import iTunes instance
import { iTunes } from 'itunes-info';

// Fetch any data you need from iTunes!
iTunes.fetch('Avicii - Hey Brother')
      .then((data) => {
        console.log(JSON.stringify(data, null, 4));
      }).catch((error) => { console.error(error); });

// For example, use it to detect which kind of media
// you are working with by passing the filename as a query.
// For example, when working with friends.mp4
iTunes.fetch('friends')
      .then((data) => {
        // Will print: 'tv-episode'.
        console.log(data.results[0].kind);
      }).catch((error) => { consoler.error(error); })

// You can also provide optional two-letter country code.
iTunes.fetch('kraantje pappie', 'BE');

// Just print the data instance to see all the data you get.

Distributed under MIT - Jensen Bernard

Keywords

itunes

FAQs

Package last updated on 24 Apr 2017

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