Skip to content

rmbToRMB-rs is a N-API to convert numbers into Chinese format based on Rust

License

Notifications You must be signed in to change notification settings

bigtomcat6/rmbToRMB-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

216d4cd · Aug 25, 2024

History

13 Commits
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Aug 25, 2024
Aug 14, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024

Repository files navigation

rmbToRMB-rs

Napi to convert numbers into Chinese format based on Rust

这是一个基于Rust编写的数字转人民币大写形式的N-API库。

Building

  1. Using pnpm to install dependencies.
pnpm i
pnpm add --save-dev @types/node
  1. And Using pnpm build to build the project.
pnpm build

The base code from src/rmb_to_rmb.rs will be compiled into RS-rmbToRMB.SYSTEM_NAME.node

So far, the RS-rmbToRMB has only been tested on macOS.

Testing

Because the test code depends on ts-jest, you need to use pnpm to configure ts-jest first.

pnpm add --save-dev @types/node @types/jest jest ts-jest nzh
pnpm ts-jest config:init

Then, you can run the test with pnpm test.

pnpm test

Related projects