Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gbk.js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gbk.js

一个小而快的GBK库,支持浏览器

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

一个小而快的GBK库,支持浏览器

等点如下:

  • 编码表是经过简单压缩的,只有不到40k(gzip 后20k)。

    正常的编码表最少要到200K左右

  • 本库不包含GBK自定义(扩展)码区。
  • 浏览器请使用 dist/ 路径下的文件
  • 内存占用和一般的gbk库差不多,但加载时会解压编码表,加载时间稍多

API

GBK.encode({BbyteArry}) 解码GBK编码的 ByteArray 返回字符串

GBK.decode({string})

Keywords

FAQs

Package last updated on 12 Apr 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc