2
0
mirror of https://git.coolaj86.com/coolaj86/omnibuffer.js.git synced 2025-03-14 12:40:43 +00:00

Compare commits

..

No commits in common. "master" and "v1.0.0" have entirely different histories.

2 changed files with 1 additions and 22 deletions

View File

@ -2,8 +2,6 @@
Lightweight, Zero-dependency, translation between Unicode Strings, Binary Strings, Buffers, Base64, Hex, UCS-2, UTF-8, etc. 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: Works identically on all platforms:
- [x] Web Browsers - [x] Web Browsers
@ -12,28 +10,9 @@ Works identically on all platforms:
- Microsoft Edge - Microsoft Edge
- Internet Explorer - Internet Explorer
- [x] Node.js - [x] Node.js
- [x] WebPack
# Usage # Usage
**Vanilla JS**
```html
<script src="https://unpkg.com/@root/encoding@1.0.0/dist/encoding.all.js"></script>
```
```html
<script src="https://unpkg.com/@root/encoding@1.0.0/dist/encoding.all.min.js"></script>
```
```js
var Enc = window.Encoding;
Enc.strToBuf('Hello, 世界!');
```
**WebPack**, Node
```js ```js
var Enc = require('@root/encoding'); var Enc = require('@root/encoding');

View File

@ -1,6 +1,6 @@
{ {
"name": "@root/encoding", "name": "@root/encoding",
"version": "1.0.1", "version": "1.0.0",
"description": "Leightweight, Zero-dependency, translation between Unicode, Buffers, Base64, Hex, Binary Strings, UCS-2, UTF-8, etc.", "description": "Leightweight, Zero-dependency, translation between Unicode, Buffers, Base64, Hex, Binary Strings, UCS-2, UTF-8, etc.",
"main": "./encoding.js", "main": "./encoding.js",
"browser": { "browser": {