Appearance
npm 包
UI 组件库
工具库
- 删掉废弃的文件和 exports:ts-unused-exports
- eslint 规则修复:eslint-rule-composer
- 删除无用文件:webpack-deadcode-plugin
- dead exports 检测方案:ts-prune ts-morph
- 魔术替换文本,轻量 AST:magic-string
- 正则学习:regex learn
- vite 中的 glob import:fast-glob
- vite 构建成静态站:vite-ssg
- 微软 Rush 是为 Monorepo 工程设计的一体化解决方案:Rush
- 创建兼容 vue2 和 vue3 的组件库:vue-demi
- 扫描 import 语法:es-module-lexer
- 代码压缩 google brotli:brotli
- 兼容 vue2,@vue/compat
- vite 凡尔赛插件:vite-plugin-sleep
- corn 定时任务字符串解析:cron-parser
- vue2 使用 vite:vite-plugin-vue2
- 将 ANSI 颜色转换为终端输出:nanocolors
- PPT 工具:https://cn.sli.dev slidev
- node 环境执行 cjs 和 esm: esno
- Node in CJS mode:esbuild-register
- Node in ESM mode:esbuild-node-loader
- 开源的 npm Repository Manager:Repository Manager 3
- 同时运行多条 npm watch 指令:concurrently
- wait-on tcp:4000 等待响应后执行后面脚本:wait-on
- madge nodejs 循环引用检测,可生成图片:madge
- nodemon node 服务监听工具:nodemon
- coveralls:获取测试用例覆盖率报告:coveralls
- cli-table:终端输出表格数据:cli-table
- text-table:终端输出表格数据:text-table
- columnify:终端输出表格数据:columnify
- 一个高性能的替代 babel 的 js 转换工具:sucrase
- ci-info 获取有关当前持续集成环境的详细信息:ci-info
- lru-cache 一种缓存策略算法,删除最近最少使用的项目的缓存对象:lru-cache
- vue-worker 在 vue 项目中使用 webworker:vue-worker
- worker-loader webpack 支持 webworker:worker-loader
- brace-expansion,Brace expansion, as known from sh/bash, in JavaScript.:Github
- meow: cli 工具,类似 commander:Github
- global-modules: The directory used by npm for globally installed npm modules.:Github
- co: 为 nodejs 和浏览器提供基于生成器的控制流:Github
- callsite-record: 为错误和函数调用站点创建花哨的日志条目:Github
- giturl: Transfer git url to web url.:Github
- semver -- The semantic versioner for npm:Github
- semver-diff Get the diff type of two semver versions: 0.0.1 0.0.2 → patch:Github
- 压测和性能测试相关工具
- 开源 Node.js 性能分析套件:node-clinic
- 一个用 node 编写的 HTTP/1.1 基准测试工具,受到 wrk 和 wrk2 的极大启发:autocannon
- 解析 v8-profiler 和 heapdump 等工具输出的 cpu & heap-memory 日志:v8-analytics
- flamegraph 生成酷炫的火焰图,用在报告那是酷炫的一逼:flamegraph
- loadtest,一个类似 apache bench 的压测工具:loadtest
promise-fun
Not accepting additions, but happy to take requests.
- pify: Promisify a callback-style function
- delay: Delay a promise a specified amount of time
- yoctodelay: Delay a promise a specified amount of time
- p-map: Map over promises concurrently
- p-all: Run promise-returning & async functions concurrently with optional limited concurrency
- p-queue: Promise queue with concurrency control
- p-event: Promisify an event by waiting for it to be emitted
- p-debounce: Debounce promise-returning & async functions
- p-throttle: Throttle promise-returning & async functions
- p-timeout: Timeout a promise after a specified amount of time
- p-retry: Retry a promise-returning or async function
- p-any: Wait for any promise to be fulfilled
- p-some: Wait for a specified number of promises to be fulfilled
- p-locate: Get the first fulfilled promise that satisfies the provided testing function
- p-limit: Run multiple promise-returning & async functions with limited concurrency
- p-series: Run promise-returning & async functions in series
- p-memoize: Memoize promise-returning & async functions
- p-pipe: Compose promise-returning & async functions into a reusable pipeline
- p-props: Like
Promise.all()but forMapandObject - p-waterfall: Run promise-returning & async functions in series, each passing its result to the next
- p-cancelable: Create a promise that can be canceled
- p-progress: Create a promise that reports progress
- p-reflect: Make a promise always fulfill with its actual fulfillment value or rejection reason
- p-filter: Filter promises concurrently
- p-reduce: Reduce a list of values using promises into a promise for a value
- p-settle: Settle promises concurrently and get their fulfillment value or rejection reason
- p-every: Test whether all promises passes a testing function
- p-one: Test whether some promise passes a testing function
- p-map-series: Map over promises serially
- p-each-series: Iterate over promises serially
- p-times: Run promise-returning & async functions a specific number of times concurrently
- p-lazy: Create a lazy promise that defers execution until
.then()or.catch()is called - p-whilst: While a condition returns true, calls a function repeatedly, and then resolves the promise
- p-do-whilst: Calls a function repeatedly while a condition returns true and then resolves the promise
- p-forever: Run promise-returning & async functions repeatedly until you end it
- p-wait-for: Wait for a condition to be true
- p-min-delay: Delay a promise a minimum amount of time
- p-try:
Promise.try()ponyfill - Starts a promise chain - p-race: A better
Promise.race() - p-immediate: Returns a promise resolved in the next event loop - think
setImmediate() - p-time: Measure the time a promise takes to resolve
- p-defer: Create a deferred promise
- p-is-promise: Check if something is a promise
- p-state: Inspect the state of a promise
- make-synchronous: Make an asynchronous function synchronous
.then/.catch-based packages
You should generally avoid using .then except in edge cases.
- p-catch-if: Conditional promise catch handler
- p-if: Conditional promise chains
- p-tap: Tap into a promise chain without affecting its value or state
- p-log: Log the value/error of a promise
- p-break: Break out of a promise chain
vue-tsc vueuse