Skip to content

Instantly share code, notes, and snippets.

@lannonbr
Created April 2, 2021 18:44
Show Gist options
  • Save lannonbr/b55fb839cdda9d5dad46b4f29963362d to your computer and use it in GitHub Desktop.
Save lannonbr/b55fb839cdda9d5dad46b4f29963362d to your computer and use it in GitHub Desktop.
A Script Kit script to browse the collection of episodes on learnwithjason.dev
// Menu: Learn with Jason Search
// Description: Browse Learn With Jason Episodes
// Author: Benjamin Lannon
// Twitter: @lannonbr
let episode = await arg(`Search for an episode of Learn with Jason`, async () => {
const resp = await get('https://www.learnwithjason.dev/episodes.json')
return resp.data.episodes.map(episode => {
return {
value: episode.slug.current,
name: episode.title
}
})
})
let url = `https://www.learnwithjason.dev/${episode}`
exec(`open ${url}`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment