config-channels
The list of channels used LevelNews.org to organize the site. Each channel is effectively a topic. The channel list is in JSON format. Take a look at data.js
if you're just looking for what channels are configured.
If you'd like to make a suggestion, please click the "Issues" tab in the GitHub repository. Or if you feel like writing some JSON and opening a GitHub pull request, feel free to do so.
Usage
npm install ln-config-channels --save
API
const configChannels = ('ln-config-channels')
// { 'ActionAlerts': { 'topic': '...'}, 'Activism': .... }
configChannels.data
// same as .data, w/ addt'l `keywords` array as property of each channel key
configChannels.dataWithKeywords
// returns array of channel names (only)
configChannels.filters.extractKeys()
// returns array of keywords related to channel name passed in
// if bad channel name is passed it, will return empty array
configChannels.filters.extractKeywords(channelName)