Skip to content

Commit

Permalink
feat: v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
polygonplanet committed Mar 21, 2024
1 parent 310e960 commit eea4c4d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ When the script is loaded, the object `Encoding` is defined in the global scope
You can use encoding.js (package name: `encoding-japanese`) directly from a CDN via a script tag:

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

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

----

## Other examples

### Example using the `Fetch API` and Typed Arrays (Uint8Array)
Expand Down
4 changes: 3 additions & 1 deletion README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ minify された `encoding.min.js` も使用できます。
`<script>` タグで CDN から直接 encoding.js (パッケージ名: `encoding-japanese`) を利用できます。

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

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

----

## その他の例

### `Fetch API` と Typed Arrays (Uint8Array) を使用した例
Expand Down
4 changes: 2 additions & 2 deletions encoding.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* encoding-japanese v2.0.0 - Convert or detect character encoding in JavaScript
* encoding-japanese v2.1.0 - Convert and detect character encoding in JavaScript
* Copyright (c) 2012 polygonplanet <[email protected]>
* https://github.com/polygonplanet/encoding.js
* @license MIT
*/
(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){
module.exports={
"version": "2.0.0"
"version": "2.1.0"
}
},{}],2:[function(require,module,exports){
var util = require('./util');
Expand Down
4 changes: 2 additions & 2 deletions encoding.min.js

Large diffs are not rendered by default.

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.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "encoding-japanese",
"version": "2.0.0",
"description": "Convert or detect character encoding in JavaScript",
"version": "2.1.0",
"description": "Convert and detect character encoding in JavaScript",
"main": "src/index.js",
"files": [
"encoding.js",
Expand Down

0 comments on commit eea4c4d

Please sign in to comment.