0.4.2 • Published 3 months ago

@devcomfort/text-transcoder v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@devcomfort/text-transcoder

Overview

@devcomfort/text-transcoder is a light and efficient text encoding conversion library for Node.js. It offers straightforward functions to convert text between various encodings, including UTF-8, EUC-KR, EUC-JP, and others.

The aim of this library is to provide a user-friendly API for managing text encodings in JavaScript applications. However, the test coverage is currently limited as this library was initially developed for personal use. We encourage contributions to enhance our test coverage! The existing test file can be found at ./src/index.test.ts.

Features

  • Compatible with both CommonJS(CJS) and ECMAScript(ESM) imports
  • Comes with TypeScript definitions for type safety.
  • Testing conducted using Vitest (Addition of more test cases is welcomed!)
  • (Coming soon) Support for CDN.

Installation

npm i @devcomfort/text-transcoder
yarn add @devcomfort/text-transcoder
pnpm add @devcomfort/text-transcoder

Usage

/** CommonJS(CJS) */
const reEncode = require("@devcomfort/text-transcoder");
console.log(reEncode("ÀÚ", "windows-1252", "euc-kr")); // 자

/** ECMAScript(ESM) */
import reEncode from "@devcomfort/text-transcoder";
console.log(reEncode("자", "euc-kr", "windows-1252")); // ÀÚ
0.4.1

3 months ago

0.4.2

3 months ago

0.2.20

10 months ago

0.2.19

10 months ago

0.2.18

11 months ago

0.2.17

11 months ago

0.2.16

11 months ago

0.2.15

11 months ago

0.2.14

11 months ago

0.2.13

11 months ago

0.2.12

11 months ago

0.2.11

11 months ago

0.2.10

11 months ago

0.3.0

10 months ago

0.3.2

9 months ago

0.3.1

10 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.2.7

11 months ago

0.2.6

11 months ago

0.2.9

11 months ago

0.2.8

11 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.1.14

1 year ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.8

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago