https://github.com/lsongdev/fast-gbk
:rocket: encode and decode utf8 to gbk string as fast as possible
https://github.com/lsongdev/fast-gbk
encode-strings encoder-decoder gbk
Last synced: 11 months ago
JSON representation
:rocket: encode and decode utf8 to gbk string as fast as possible
- Host: GitHub
- URL: https://github.com/lsongdev/fast-gbk
- Owner: lsongdev
- License: mit
- Created: 2019-06-05T13:27:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-12T05:24:46.000Z (over 6 years ago)
- Last Synced: 2025-02-13T22:23:40.328Z (11 months ago)
- Topics: encode-strings, encoder-decoder, gbk
- Language: JavaScript
- Homepage: https://npmjs.org/fast-gbk
- Size: 54.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## fast-gbk
> encode and decode utf8 to gbk string as fast as possible
[](https://npmjs.org/fast-gbk)
[](https://travis-ci.org/song940/fast-gbk)
### Installation
```bash
$ npm install fast-gbk
```
### Example
```js
const { encode, decode } = require('fast-gbk');
const str = '你好,世界!';
const arr = encode(str);
console.log(decode(arr));
```
### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
### MIT
This work is licensed under the [MIT license](./LICENSE).
---