Skip to content

Fujihai/utf8-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

utf8-helper

A library helps you get UTF8 string.

Install

npm i utf8-helper

Usage

const utf8Helper = require("utf8-helper");
const encodedStr = utf8Helper.encode("Hello World!"); //\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64\x21

// with prefix
const encodedStr = utf8Helper.encode("Hello World!", "\\u"); //\u48\u65\u6C\u6C\u6F\u20\u57\u6F\u72\u6C\u64\u21

About

A library helps you get UTF8 string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published