PubSub:PublishSubscribe模式JavaScript实现

时间:2021-05-02 04:53:21
【文件属性】:
文件名称:PubSub:PublishSubscribe模式JavaScript实现
文件大小:87KB
文件格式:ZIP
更新时间:2021-05-02 04:53:21
javascript events subscription topic pubsub PubSub 模式的Javascript实现。 安装 npm $ npm install PubSub 用法 该库以UMD,CommonJS和ESM格式导出。 您可以通过以下方式导入它: 使用ESM导入语句 import PubSub from 'PubSub' ; 使用CommonJS require语句 const PubSub = require ( 'PubSub' ) ; // If you use a bundler like Webpack, you may need to import it the following way // as it might try to use the ESM module instead of the CommonJS. const PubSub = require ( 'PubSub' ) . default ; 老式浏览器全球
【文件预览】:
PubSub-master
----.gitignore(924B)
----package.json(2KB)
----.npmrc(16B)
----package-lock.json(325KB)
----src()
--------index.js(9KB)
--------utils.js(2KB)
----jest.config.js(86B)
----LICENSE(1KB)
----index.js(65B)
----CHANGELOG.md(4KB)
----.github()
--------workflows()
----rollup.config.js(1KB)
----.eslintrc.js(2KB)
----README.md(12KB)
----.eslintignore(23B)
----.babelrc.js(249B)
----test()
--------index.spec.js(7KB)

网友评论