is-npm:检查您的代码是否以npm或yarn脚本运行

时间:2021-05-26 07:54:26
【文件属性】:
文件名称:is-npm:检查您的代码是否以npm或yarn脚本运行
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-26 07:54:26
JavaScript is-npm 检查您的代码是否以或脚本运行 安装 $ npm install is-npm 用法 const { isNpmOrYarn , isNpm , isYarn } = require ( 'is-npm' ) ; console . table ( { isNpmOrYarn , isNpm , isYarn } ) ; $ node foo.js # ┌─────────────┬────────┐ # │ (index) │ Values │ # ├─────────────┼────────┤ # │ isNpmOrYarn │ false │ # │ isNpm │ false │ # │ isYarn │ false │ # └─────────────┴────────┘ $ npm run foo # ┌────────
【文件预览】:
is-npm-main
----index.test-d.ts(170B)
----.gitattributes(19B)
----.github()
--------funding.yml(42B)
--------security.md(179B)
--------workflows()
----test.js(90B)
----license(1KB)
----index.d.ts(780B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(456B)
----readme.md(2KB)
----package.json(664B)

网友评论