Skip to content

Commit

Permalink
Add test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
anqisoft committed Jan 10, 2024
1 parent 8e3a504 commit 8b42233
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@

javascript: https://github.com/anqisoft/js_cn_and_tw<br>
npmjs: https://www.npmjs.com/package/@dishanqian/cn_and_tw

### import
``` typescript
import { cn2tw, tw2cn } from 'https://deno.land/x/[email protected]/index.ts';
```

### test
``` typescript
['', '计算机', '天干'].forEach(from => console.log(from, cn2tw(from))));
['', '計算機', '天干'].forEach(from => console.log(from, tw2cn(from))));
```

## <en_us>

Provides basic functions for bidirectional conversion between Simplified and Traditional Chinese.<br>
Expand Down

0 comments on commit 8b42233

Please sign in to comment.