Package Exports
- itunes-info
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (itunes-info) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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-infoES6 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); })
// Just print the data instance to see all the data you get.
Distributed under MIT - Jensen Bernard