Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peakchen90/promise
write a promise polyfill
https://github.com/peakchen90/promise
flow jest polyfill promise promisesaplus rollup
Last synced: about 21 hours ago
JSON representation
write a promise polyfill
- Host: GitHub
- URL: https://github.com/peakchen90/promise
- Owner: peakchen90
- Created: 2018-04-30T15:11:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T18:45:33.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T04:16:11.029Z (over 1 year ago)
- Topics: flow, jest, polyfill, promise, promisesaplus, rollup
- Language: TypeScript
- Size: 118 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Promise
write a promise polyfill.手写一个 Promise (实现 Promise/A+ 规范)
## 工程概述
- 使用 [Rollup](https://rollupjs.org) 进行 umd 模块打包
- 使用 [TypeScript](https://www.typescriptlang.org) 开发
- 使用 [Tslint](https://palantir.github.io/tslint/) 进行代码风格检查## 参考
- Promise 实现规范: [Promises/A+](https://promisesaplus.com/)
- Promise 规范中文版: [Promise/A+规范](https://segmentfault.com/a/1190000002452115)
- Promise 入门: [阮一峰ECMAScript 6 入门 —— Promise](http://es6.ruanyifeng.com/#docs/promise)
- Promise 介绍: [JavaScript Promise迷你书(中文版)](http://liubin.org/promises-book/)
- 参考实现1: [Github: promise-polyfill](https://github.com/taylorhakes/promise-polyfill/)
- 参考实现2: [实现一个符合 Promise/A+ 规范的 MyPromise](https://juejin.im/post/5a5837946fb9a01ca871e5be)