@financial-times/n-podcast-mapping

Aggregated metadata and associated data for podcasts.

This package is no longer maintained
Last updated 3 years ago by financial-times .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @financial-times/n-podcast-mapping 
SYNC missed versions from official npm registry.

n-podcast-mapping

Aggregated metadata and associated data for podcasts.

Installation

npm install -S @financial-times/n-podcast-mapping

Usage

const podcasts = require('@financial-times/n-podcast-mapping');

// returns an array of external links for the given show
const urls = podcasts.linksFor('ft-alphachat');

console.log(urls); // [ 'https://itunes', 'http://soundcloud' ]

// returns an array of TME tags for the given show
const tags = podcasts.metadataFor('ft-banking-weekly');

console.log(tags); // [ { id: "…", name: "…", taxonomy: "…" }, {…} ]

// returns an array of primary TME tags used by each show
const primaryTags = podcasts.primaryTags();

console.log(primaryTags); // [ { id: "…", name: "…", taxonomy: "…" }, {…} ]

// returns a de-duplicated array of all the TME tags used by the shows
const uniqueTags = podcasts.uniqueTags();

console.log(uniqueTags); // [ { id: "…", name: "…", taxonomy: "…" }, {…} ]

// check if a tag ID is a type of podcast
const tagId = 'NzA0NWQ2OTUtNDdhZC00ZGMxLWI4MGEtODZkYTY5MjQ0ZTk1-QnJhbmRz';

console.log(podcasts.isThisTagAPodcast(tagId)); // true

// returns an array of concept annotations for the given show
const annotations = podcasts.annotationsFor('ft-arts');

console.log(annotations); // [ { id: "…", prefLabel: "…", predicate: "…" }, {…} ]

Current Tags

  • 2.1.9                                ...           latest (3 years ago)

12 Versions

  • 2.1.9 [deprecated]           ...           3 years ago
  • 2.1.8 [deprecated]           ...           3 years ago
  • 2.1.7 [deprecated]           ...           3 years ago
  • 2.1.6 [deprecated]           ...           3 years ago
  • 2.1.5 [deprecated]           ...           3 years ago
  • 2.1.4 [deprecated]           ...           3 years ago
  • 2.1.3 [deprecated]           ...           3 years ago
  • 2.1.2 [deprecated]           ...           3 years ago
  • 2.1.1 [deprecated]           ...           3 years ago
  • 2.1.0 [deprecated]           ...           3 years ago
  • 2.0.1 [deprecated]           ...           3 years ago
  • 2.0.0 [deprecated]           ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 7
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |