Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/base64-js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/base64-js - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

6

base64-js/index.d.ts

@@ -1,7 +0,1 @@

// Type definitions for base64-js 1.3
// Project: https://github.com/beatgammit/base64-js
// Definitions by: Peter Safranek <https://github.com/pe8ter>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**

@@ -8,0 +2,0 @@ * Takes a base64 string and returns length of byte array

15

base64-js/package.json
{
"name": "@types/base64-js",
"version": "1.3.0",
"version": "1.3.1",
"description": "TypeScript definitions for base64-js",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js",
"license": "MIT",

@@ -9,9 +10,9 @@ "contributors": [

"name": "Peter Safranek",
"url": "https://github.com/pe8ter",
"githubUsername": "pe8ter"
"githubUsername": "pe8ter",
"url": "https://github.com/pe8ter"
},
{
"name": "Piotr Błażejewicz",
"url": "https://github.com/peterblazejewicz",
"githubUsername": "peterblazejewicz"
"githubUsername": "peterblazejewicz",
"url": "https://github.com/peterblazejewicz"
}

@@ -28,4 +29,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "e6bd0df8b11e91971b368458cd8efd876cd22efd2530529d73b9e810725d15bd",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "55a7641bb2d9923cf92b259c1bc3835a179dfa691541ba198e7592bfc72781e9",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,29 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js/index.d.ts)
````ts
/**
* Takes a base64 string and returns length of byte array
*/
export function byteLength(encoded: string): number;
/**
* Takes a base64 string and returns a byte array
*/
export function toByteArray(encoded: string): Uint8Array;
/**
* Takes a byte array and returns a base64 string
*/
export function fromByteArray(bytes: Uint8Array): string;
/**
* base64-js does basic base64 encoding/decoding in pure JS.
*/
export as namespace base64js;
````
### Additional Details
* Last updated: Sat, 30 May 2020 11:37:42 GMT
* Last updated: Tue, 17 Oct 2023 22:10:13 GMT
* Dependencies: none
* Global values: `base64js`
# Credits
These definitions were written by [Peter Safranek](https://github.com/pe8ter), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc