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

libbase64

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libbase64 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

14

lib/libbase64.js

@@ -46,3 +46,15 @@ 'use strict';

return str.replace(new RegExp('.{' + lineLength + '}', 'g'), '$&\r\n').trim();
let result = [];
let pos = 0;
let chunkLength = lineLength * 1024;
while (pos < str.length) {
let wrappedLines = str
.substr(pos, chunkLength)
.replace(new RegExp('.{' + lineLength + '}', 'g'), '$&\r\n')
.trim();
result.push(wrappedLines);
pos += chunkLength;
}
return result.join('\r\n').trim();
}

@@ -49,0 +61,0 @@

7

package.json
{
"name": "libbase64",
"version": "1.0.0",
"version": "1.0.1",
"description": "Encode and decode base64 encoded strings",

@@ -13,3 +13,6 @@ "main": "lib/libbase64.js",

},
"keywords": ["base64", "mime"],
"keywords": [
"base64",
"mime"
],
"author": "Andris Reinman",

@@ -16,0 +19,0 @@ "license": "MIT",

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