开发者社区> 镜像站> NPM> podcast-categories
podcast-categories
An export of all iTunes Podcast Connect categories
Last updated 9 months ago by bret .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install podcast-categories 
SYNC missed versions from official npm registry.

podcast-categories stability

npm version build status downloads js-standard-style

Exports and object of Apple Podcasts Connect categories.

Installation

$ npm install podcast-categories

Usage

const podcastCategories = require('podcast-categories')
const get = require('lodash.get')

function isValidCategory(category, subcategory) {
  return !!get(podcastCategories, `${category}.${subcategory}`)
}

API

Literally exports an object of all valid Apple podcast categories.

// https://help.apple.com/itc/podcasts_connect/?lang=en#/itc9267a2f12

module.exports = {
  'Arts': {
    'Design': true,
    'Fashion & Beauty': true,
    'Food': true,
    'Literature': true,
    'Performing Arts': true,
    'Visual Arts': true
  },
  'Business': {
    'Business News': true,
    'Careers': true,
    'Investing': true,
    'Management & Marketing': true,
    'Shopping': true
  },
  'Comedy': {},
  'Education': {
    'Educational Technology': true,
    'Higher Education': true,
    'K-12': true,
    'Language Courses': true,
    'Training': true
  },
  'Games & Hobbies': {
    'Automotive': true,
    'Aviation': true,
    'Hobbies': true,
    'Other Games': true,
    'Video Games': true
  },
  'Government & Organizations': {
    'Local': true,
    'National': true,
    'Non-Profit': true,
    'Regional': true
  },
  'Health': {
    'Alternative Health': true,
    'Fitness & Nutrition': true,
    'Self-Help': true,
    'Sexuality': true
  },
  'Kids & Family': {},
  'Music': {},
  'News & Politics': {},
  'Religion & Spirituality': {
    'Buddhism': true,
    'Christianity': true,
    'Hinduism': true,
    'Islam': true,
    'Judaism': true,
    'Other': true,
    'Spirituality': true
  },
  'Science & Medicine': {
    'Medicine': true,
    'Natural Sciences': true,
    'Social Sciences': true
  },
  'Society & Culture': {
    'History': true,
    'Personal Journals': true,
    'Philosophy': true,
    'Places & Travel': true
  },
  'Sports & Recreation': {
    'Amateur': true,
    'College & High School': true,
    'Outdoor': true,
    'Professional': true
  },
  'Technology': {
    'Gadgets': true,
    'Tech News': true,
    'Podcasting': true,
    'Software How-To': true
  },
  'TV & Film': {}
}

License

MIT

Current Tags

  • 2.0.0                                ...           latest (9 months ago)

2 Versions

  • 2.0.0                                ...           9 months ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)