New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

convjp-browser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convjp-browser

ブラウザ(Web)向けの日本語用の文字化けエンコード・デコードライブラリ

latest
v1.0-lts
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

convjp-browser

ブラウザ(Web)向けの日本語用の文字化けエンコード・デコードライブラリ

デモ: https://otoneko1102.github.io/convjp-browser

[!NOTE] Node.js 環境の軽量版はこちら: convjp

使い方

推奨: UMD

URL:

https://unpkg.com/convjp-browser@latest/dist/main.umd.js

[!WARNING] UMD では default と named が併存するため、ブラウザからは convjp.encode のような named エクスポート を使うことを推奨します。

<script src="https://unpkg.com/convjp-browser@latest/dist/main.umd.js"></script>
<script>
  const input = "もぺもぺ";
  const encoded = convjp.encode(input);
  const decoded = mojibake.decode(encoded);
  console.log(encoded); // '繧ゅ⊆繧ゅ⊆'
  console.log(decoded); // 'もぺもぺ'
</script>

バージョン指定の例: https://unpkg.com/convjp-browser@1.0.0/dist/main.umd.js

推奨: ESM

<script type="module">
  import { encode, decode } from "/dist/main.es.js";
  const input = "もぺもぺ";
  const encoded = convjp.encode(input);
  const decoded = mojibake.decode(encoded);
  console.log(encoded); // '繧ゅ⊆繧ゅ⊆'
  console.log(decoded); // 'もぺもぺ'
</script>

Keywords

mojibake

FAQs

Package last updated on 25 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts