fast_gbk
1.0.0, released 5 years ago by an unverified publisher
Fast GBK codec for Dart, supports encoding/decoding and stream API.
WASM-ready
What it does
Provides GBK encoding and decoding for strings and byte streams. It can be used with File I/O and HttpClient streams, mirroring the UTF-8 API.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to read or write GBK-encoded files or network responses.
- You want a null‑safe, zero‑dependency codec that works on all platforms.
Skip it when
- You already have a GBK codec in your project or you need a different character set.
Strengths
- Zero dependencies, works on all platforms.
- Supports stream API for File and HttpClient.
- Null‑safe and allows malformed input without throwing.
- BSD‑3 license.
Weaknesses
- Only GBK, no other encodings.
- No active maintenance beyond v1.0.0.
- No tests shown in the repo.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:fast_gbk/fast_gbk.dart';
void main(){
var encoded = gbk.encode("测试");
var decoded = gbk.decode(encoded);
}Alternatives
Packages that do the same job and could replace fast_gbk.
- enough_convert
Support for character encodings and codecs missing from dart:convert.
79Compare - cbor
A Dart library for RFC8949‑compliant CBOR encoding and decoding.
89Compare - csv_plus
Fast, zero-dependency CSV parser, encoder, streamer, and query engine for Dart.
82Compare - pem
PEM encoding and decoding of textual keys and certificates following RFC 7468.
78Compare