UNPKG

magicpatch

Version:

Adds IPython / Jupyter magic commands to IJavascript

17 lines (13 loc) 310 B
/* global $$ */ function npm(cmd, ... args) { return this.exec("npm", args); } let {decorateMagic} = $$.addMagic.utils; decorateMagic( npm, __filename, "Run the node package manager (npm) within the current kernel.", ["name", "%npm"], ); delete npm.argsParser; $$.addMagic("%npm", npm);