Giter Site home page Giter Site logo

k713927 / unpkg-white-list Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cnpm/unpkg-white-list

0.0 0.0 0.0 551 KB

npmmirror.com 允许开启 unpkg 功能的白名单列表,避免被当作网盘滥用

Home Page: https://npmmirror.com

License: MIT License

JavaScript 100.00%

unpkg-white-list's Introduction

unpkg-white-list

NPM version CI

npmmirror.com 允许开启 unpkg 功能的白名单列表,避免 https://x.com/fengmk2/status/1791498406923215020 类似问题

添加白名单方式

1、直接在线修改 package.json 中的 allowPackages 字段, 添加你想开启 unpkg 文件同步的 npm 包名和版本号,全量同步版本号可以设置为 *

以同步 urllib 为示例,配置如下:

"allowPackages": {
  ...
  "urllib": {
    "version": "*"
  }
  ...
}

当然你发布的是 scoped package,可以直接添加 scope 到白名单 allowScopes

"allowScopes": [
  ...
  "@eggjs",
  ...
]

2、修改完成后提交一个 Pull Request 合并到 master 分支,等待 Review,合并后会自动发布,预计最长 5 分钟后会全网生效。

License

MIT

Contributors

Contributors

Made with contributors-img.

unpkg-white-list's People

Contributors

semantic-release-bot avatar fengmk2 avatar wangluyu-798 avatar yitiaoxianyugan avatar zhengqbbb avatar qianjiachun avatar ao-x avatar mutouxia avatar i18nsite avatar plainheart avatar zhizhi-2986 avatar ruanxingzhi avatar hzrr97 avatar dodois avatar kkocdko avatar owenchen1004 avatar tjyuanpeng avatar vvvpic avatar wen911119 avatar arcticfox520 avatar ysicing avatar pig0224 avatar alexxtse avatar adingapkgg avatar mrkou47 avatar chenyfan avatar echs-top avatar cnfeffery avatar ironkinoko avatar rookie-luochao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.