-
-
Save cowboy/1926484 to your computer and use it in GitHub Desktop.
npm plugin system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm = require 'npm' | |
npm.load {global: true}, (error, npm) -> | |
npm.commands.ls [], true, (error, result) -> | |
for moduleName, module of result.dependencies | |
if moduleName[..8] == 'clitool-' | |
# load module as a plugin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment