JSPM

bin-wrapper-china

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1494
  • Score
    100M100P100Q113046F
  • License MIT

Binary mirror download link replacement for mainland China

Package Exports

  • bin-wrapper-china

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bin-wrapper-china) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

bin-wrapper-china

Binary mirror download link replacement for mainland China.

Fork from bin-wrapper.

Install

Use yarn to replace bin-wrapper.

// package.json
{
    "resolutions": {
        "bin-wrapper": "npm:bin-wrapper-china"
    }
}
yarn install

API

Same as bin-wrapper.

Inject mirror url to process.env

// package.json
{
    "scripts": {
        "preinstall": "china-bin-env"
    }
}

https://github.com/cnpm/binary-mirror-config