grabthar:热安装和激活npm模块

时间:2021-04-29 21:09:23
【文件属性】:
文件名称:grabthar:热安装和激活npm模块
文件大小:20KB
文件格式:ZIP
更新时间:2021-04-29 21:09:23
JavaScript 活着吗 因为每30秒在生产中安装npm是一个好主意,对吗? ...正确的? 快速开始 npm install --save grabthar 例子 热部署并提供静态文件: import { poll } from 'grabthar' ; let watcher = poll ( { name : 'my-live-updating-module' } ) ; app . get ( '/foo.js' , async function handleRequest ( req , res ) { const { modulePath } = await watcher . get ( ) ; res . sendFile ( ` ${ modulePath } /dist/foo.js` ) ; } ) ; 或者,如果您真的很勇敢,请热部署并需要新的代码: import
【文件预览】:
grabthar-master
----.travis.yml(54B)
----index.js(95B)
----.flowconfig(242B)
----package.json(1KB)
----test()
--------mocks()
--------happy.test.js(35KB)
--------lib()
----src()
--------config.js(511B)
--------index.js(55B)
--------npm.js(8KB)
--------cleanup.js(1KB)
--------util.js(12KB)
--------types.js(313B)
--------poll.js(13KB)
--------constants.js(343B)
----.eslintrc.js(170B)
----.gitignore(86B)
----.npmrc(66B)
----README.md(3KB)
----publish.sh(331B)
----babel.config.js(135B)

网友评论