support for Node.js `npm' package_method