【文件属性】:
文件名称:is-heroku:检查您的代码是否在Heroku上运行
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-26 08:03:31
JavaScript
isheroku
检查您的代码是否在Heroku上运行
安装
$ npm install is-heroku
用法
const isHeroku = require ( 'is-heroku' ) ;
// On your local computer
console . log ( isHeroku ) ;
//=> false
// On Heroku
console . log ( isHeroku ) ;
//=> true
首先添加以改善检测:
$ heroku config:set HEROKU=1
执照
麻省理工学院:copyright:
【文件预览】:
is-heroku-main
----index.js(114B)
----test.js(202B)
----package.json(544B)
----readme.md(485B)
----.github()
--------workflows()
----license(1KB)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(29B)