Skip to content

Commit

Permalink
docs: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
demouth committed Mar 31, 2022
1 parent 7005fec commit 02b3e73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install @demouth/mb_strwidth

Using unpkg CDN:
```html
<script src="https://unpkg.com/@demouth/mb_strwidth@1.1.1/dist/mb_strwidth.min.js"></script>
<script src="https://unpkg.com/@demouth/mb_strwidth@2.0.1/dist/mb_strwidth.min.js"></script>
```

## Examples
Expand All @@ -38,7 +38,7 @@ console.log(mb_strwidth("𩸽定食食べたい😭")); // 15

Browser:
```html
<script src="https://unpkg.com/@demouth/mb_strwidth@1.1.1/dist/mb_strwidth.min.js"></script>
<script src="https://unpkg.com/@demouth/mb_strwidth@2.0.1/dist/mb_strwidth.min.js"></script>
<script>
console.log(mb_strwidth("𩸽定食食べたい😭")); // 15
</script>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@demouth/mb_strwidth",
"version": "2.0.0",
"version": "2.0.1",
"description": "Calculates the width of a string, where halfwidth characters count as 1, and fullwidth characters count as 2.",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down

0 comments on commit 02b3e73

Please sign in to comment.