Skip to content

Instantly share code, notes, and snippets.

@chrisdickinson
Last active December 21, 2015 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdickinson/8f555ce92887e9046e6f to your computer and use it in GitHub Desktop.
Save chrisdickinson/8f555ce92887e9046e6f to your computer and use it in GitHub Desktop.
$ jik \
'call > id[name=require]:first-child + literal' \
'{p = require("path"); print($FILE, " -> ", x = p.join($DIR, $NODE.source().slice(1, -1).split("!").slice(-1)[0] + ".js")); follow(x)}' \
entrypoints/ | grep modulename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment