From cfe719bf2ca8b66d02f7171139cb7dd17612c93f Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 8 Oct 2019 04:06:33 -0600 Subject: [PATCH] v1.0.1: update docs --- README.md | 21 +++++++++++++++++++++ package.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9056a5e..635b29e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Lightweight, Zero-dependency, translation between Unicode Strings, Binary Strings, Buffers, Base64, Hex, UCS-2, UTF-8, etc. +| < 1k gzipped | 2.6k minified | 3.6k full | + Works identically on all platforms: - [x] Web Browsers @@ -10,9 +12,28 @@ Works identically on all platforms: - Microsoft Edge - Internet Explorer - [x] Node.js +- [x] WebPack # Usage +**Vanilla JS** + +```html + +``` + +```html + +``` + +```js +var Enc = window.Encoding; + +Enc.strToBuf('Hello, 世界!'); +``` + +**WebPack**, Node + ```js var Enc = require('@root/encoding'); diff --git a/package.json b/package.json index a902711..071cc7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@root/encoding", - "version": "1.0.0", + "version": "1.0.1", "description": "Leightweight, Zero-dependency, translation between Unicode, Buffers, Base64, Hex, Binary Strings, UCS-2, UTF-8, etc.", "main": "./encoding.js", "browser": {