Skip to content

Commit eea4c4d

Browse files
committed
feat: v2.1.0
1 parent 310e960 commit eea4c4d

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ When the script is loaded, the object `Encoding` is defined in the global scope
118118
You can use encoding.js (package name: `encoding-japanese`) directly from a CDN via a script tag:
119119

120120
```html
121-
<script src="https://unpkg.com/encoding-japanese@2.0.0/encoding.min.js"></script>
121+
<script src="https://unpkg.com/encoding-japanese@2.1.0/encoding.min.js"></script>
122122
```
123123

124124
In this example we use [unpkg](https://unpkg.com/encoding-japanese/), but you can use any CDN that provides npm packages,
@@ -659,6 +659,8 @@ console.log(Encoding.codeToString(Encoding.toZenkakuSpace(unicodeArray)));
659659
// 'abc123!# あいうアイウ ABCアイウ'
660660
```
661661

662+
----
663+
662664
## Other examples
663665

664666
### Example using the `Fetch API` and Typed Arrays (Uint8Array)

README_ja.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ minify された `encoding.min.js` も使用できます。
111111
`<script>` タグで CDN から直接 encoding.js (パッケージ名: `encoding-japanese`) を利用できます。
112112

113113
```html
114-
<script src="https://unpkg.com/encoding-japanese@2.0.0/encoding.min.js"></script>
114+
<script src="https://unpkg.com/encoding-japanese@2.1.0/encoding.min.js"></script>
115115
```
116116

117117
この例では [unpkg](https://unpkg.com/encoding-japanese/) を使用していますが、
@@ -653,6 +653,8 @@ console.log(Encoding.codeToString(Encoding.toZenkakuSpace(unicodeArray)));
653653
// 'abc123!# あいうアイウ ABCアイウ'
654654
```
655655

656+
----
657+
656658
## その他の例
657659

658660
### `Fetch API` と Typed Arrays (Uint8Array) を使用した例

encoding.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* encoding-japanese v2.0.0 - Convert or detect character encoding in JavaScript
2+
* encoding-japanese v2.1.0 - Convert and detect character encoding in JavaScript
33
* Copyright (c) 2012 polygonplanet <polygon.planet.aqua@gmail.com>
44
* https://github.com/polygonplanet/encoding.js
55
* @license MIT
66
*/
77
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Encoding = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
88
module.exports={
9-
"version": "2.0.0"
9+
"version": "2.1.0"
1010
}
1111
},{}],2:[function(require,module,exports){
1212
var util = require('./util');

encoding.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "encoding-japanese",
3-
"version": "2.0.0",
4-
"description": "Convert or detect character encoding in JavaScript",
3+
"version": "2.1.0",
4+
"description": "Convert and detect character encoding in JavaScript",
55
"main": "src/index.js",
66
"files": [
77
"encoding.js",

0 commit comments

Comments
 (0)