# polyfill-server **Repository Path**: vill-v/polyfill-server ## Basic Information - **Project Name**: polyfill-server - **Description**: 本地 polyfill.io 服务的快速搭建工具 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-03 - **Last Updated**: 2024-08-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: polyfill, polyfill-server ## README # @vill-v/polyfill-server 本地 [polyfill.io](https://polyfill.io) 服务的快速搭建工具 ## CLI ```shell polyfill-server -p 3000 ``` - `-p,--port` 服务启动时的端口 ## API ```ts import {server} from '@vill-v/polyfill-server' server({ /** * @type {Partial} */ listen: {} }) ``` - `listen` 详见 [listhen#options](https://github.com/unjs/listhen#options) ## 请求 ### 未压缩文件 - [http://[:host]:[:port]/polyfill.js](http://localhost:3000/polyfill.js) - 示例:http://localhost:3000/polyfill.js ### 压缩后文件 - [http://[:host]:[:port]/polyfill.min.js](http://localhost:3000/polyfill.min.js) - 示例:http://localhost:3000/polyfill.min.js [polyfill.io api request](https://polyfill.io/v3/api/#request)