Skip to content

Instantly share code, notes, and snippets.

@tayiorbeii
Created November 3, 2022 20:51
Show Gist options
  • Save tayiorbeii/7a90d4ae22851fcf84b099d10251f16f to your computer and use it in GitHub Desktop.
Save tayiorbeii/7a90d4ae22851fcf84b099d10251f16f to your computer and use it in GitHub Desktop.
import "@johnlindquist/kit"
const _ = await npm('lodash')
// Name: checklist based on filename
// Description: generate a checklist based on the filename
let files = await drop()
let names = files.map(file => file.name.replace(/\.[^/.]+$/, ""))
await copy(_.uniq(names).join('\n'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment