JSPM

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

Template project for writing node package with napi-rs

Package Exports

  • @napi-rs/pinyin

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 (@napi-rs/pinyin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@napi-rs/pinyin

Build Status Downloads License

rust-pinyin binding for NodeJS.

Install this package

yarn add @napi-rs/pinyin

Support matrix

Operating Systems

Linux macOS Windows x64

NodeJS

Node10 Node 12 Node14 Node15

Performance

Benchmark over pinyin package:

running "Short pinyin" suite...

Progress: 100%

  @napi-rs/pinyin:
    1 174 355 ops/s, ±0.95%   | fastest

  node-pinyin:
    419 694 ops/s, ±2.02%     | slowest, 64.26% slower

Finished 2 cases!
  Fastest: @napi-rs/pinyin
  Slowest: node-pinyin

Running "Long pinyin" suite...
Progress: 100%

  @napi-rs/pinyin:
    347 ops/s, ±2.16%   | fastest

  node-pinyin:
    2 ops/s, ±5.43%     | slowest, 99.42% slower

Finished 2 cases!
  Fastest: @napi-rs/pinyin
  Slowest: node-pinyin

✨  Done in 27.72s.