fast-base64-length

Get the byte length of a Base64 encoded string.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
fast-base64-length
101.0.05 years ago5 years agoMinified + gzip package size for fast-base64-length in KB

Readme

Fast Base64 Length
Get the byte length of a Base64 encoded string.

Installation

npm install --save fast-base64-length

Usage

const base64Length = require('fast-base64-length')

// Pass the string to measure
console.log(base64Length('SGVsbG8sIFdvcmxkIQ=='))
//=> 13