JSPM

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

GitBook's fork of pinyin-pro, a fantastic open-source package for turning Chinese characters to pinyin.

Package Exports

  • @gitbook/pinyin-pro
  • @gitbook/pinyin-pro/dist/index.js
  • @gitbook/pinyin-pro/dist/index.mjs
  • @gitbook/pinyin-pro/package.json

Readme

pinyin-pro

zh-lx maintains a fantastic library for converting traditional Chinese characters to pinyin. GitBook uses this library for our users who write in hànzì, to turn their docs into URLs. We've forked pinyin-pro simply to optimize performance slightly. GitBook runs pinyin-pro inside Cloudflare Workers, where start-up time is very important. So we made this fork to make optimizations around when the languages are loaded into memory. We try to keep this up-to-date with upstream.