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

node-base64

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-base64

Node.js module for base64 encoding and decoding.

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
decreased by-18.73%
Maintainers
0
Weekly downloads
 
Created
Source

node-base64

  • C/C++ library for encode and decode in base 64

Install:

way 1

  1. go to the directory with node-base64 library

  2. execute node-waf configure build

  3. get module from ./build/default/base64.node

You should use var base64 = require("./build/default/base64"); (way to module)

way 2 (works if node are installed in default path)

  1. go to the directory with node-base64 library

  2. execute make

  3. execute sudo make install

You should use var base64 = require("base64"); (from any path)

Functions:

encode(str); // Encode string
decode(str); // Decode string

Usage:

var base64 = require('base64');
var code = base64.encode('text');
var str = base64.decode(code); // text

Speed testing

To run speed test on your computer run test.js, here is my: C++ base64 result is: 82 JS base64 result is: 517 C++ module faster than JS in 6.304878048780488 times

FAQs

Package last updated on 31 Mar 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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