dat-encoding
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "dat-encoding", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "juliangruber/dat-encoding", |
@@ -23,7 +23,7 @@ | ||
Encode `buf` into a string that works well in urls. | ||
Encode `buf` into a string that works well in urls. Throws if `buf` isn't 32 bytes of length. | ||
### .decode(str) | ||
Decode `str` into its binary representation. If `str` is a 64 character legacy link, simply applies hex decoding. Also supports `dat://` and `dat.com/` links. | ||
Decode `str` into its binary representation. If `str` is a 64 character legacy link, simply applies hex decoding. Also supports `dat://` and `dat.com/` links. Throws if the raw link isn't 64 bytes of base64 or 50 bytes of base36. | ||
@@ -30,0 +30,0 @@ ## License |
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
3721