@protobufjs/utf8
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@protobufjs/utf8", | ||
"description": "A minimal UTF8 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/utf8 | ||
================ | ||
[![npm](https://img.shields.io/npm/v/@protobufjs/utf8.svg)](https://www.npmjs.com/package/@protobufjs/utf8) | ||
A minimal UTF8 implementation for number arrays. | ||
API | ||
--- | ||
* **utf8.length(string: `string`): `number`**<br /> | ||
Calculates the UTF8 byte length of a string. | ||
* **utf8.read(buffer: `Uint8Array`, start: `number`, end: `number`): `string`**<br /> | ||
Reads UTF8 bytes as a string. | ||
* **utf8.write(string: `string`, buffer: `Uint8Array`, offset: `number`): `number`**<br /> | ||
Writes a string as UTF8 bytes. | ||
**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
15674
21
1