@protobufjs/base64
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -11,3 +11,3 @@ "use strict"; | ||
/** | ||
* Calculates the base64 byte length of a string. | ||
* Calculates the byte length of a base64 encoded string. | ||
* @param {string} string Base64 encoded string | ||
@@ -14,0 +14,0 @@ * @returns {number} Byte length |
{ | ||
"name": "@protobufjs/base64", | ||
"description": "A minimal base64 implementation for number arrays.", | ||
"version": "1.0.0", | ||
"author": "Daniel Wirtz <dcode@dcode.io>", | ||
"version": "1.0.1", | ||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>", | ||
"repository": { | ||
@@ -7,0 +7,0 @@ "type": "git", |
@protobufjs/base64 | ||
================== | ||
[![npm](https://img.shields.io/npm/v/@protobufjs/base64.svg)](https://www.npmjs.com/package/@protobufjs/base64) | ||
A minimal base64 implementation for number arrays. | ||
API | ||
--- | ||
* **base64.length(string: `string`): `number`**<br /> | ||
Calculates the byte length of a base64 encoded string. | ||
* **base64.encode(buffer: `Uint8Array`, start: `number`, end: `number`): `string`**<br /> | ||
Encodes a buffer to a base64 encoded string. | ||
* **base64.decode(string: `string`, buffer: `Uint8Array`, offset: `number`): `number`**<br /> | ||
Decodes a base64 encoded string to a buffer. | ||
**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16104
20
1