@root/encoding
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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.", | ||
@@ -5,0 +5,0 @@ "main": "./encoding.js", |
@@ -5,2 +5,4 @@ # @root/encoding | ||
| < 1k gzipped | 2.6k minified | 3.6k full | | ||
Works identically on all platforms: | ||
@@ -14,6 +16,25 @@ | ||
- [x] Node.js | ||
- [x] WebPack | ||
# 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 | ||
var Enc = require('@root/encoding'); | ||
@@ -20,0 +41,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43602
389