🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

nodejs-base64-encode

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejs-base64-encode

Simple Node Js Package For Encode Decode A Given String

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
2.3K
10.18%
Maintainers
1
Weekly downloads
 
Created
Source

Simple Node Js Package For Encode Decode a Given String

NPM

Installation

$ npm install nodejs-base64-encode

Examples

For Encode a String

const encode = require('nodejs-base64-encode');

console.log(encode.encode('npm world', 'base64'));

prints: bnBtIHdvcmxk

For Decode a String

const encode = require('nodejs-base64-encode');

console.log(encode.decode('bnBtIHdvcmxk', 'base64'));

prints: npm world

The possible encoding types are

  • ascii
  • utf8
  • ucs2
  • base64
  • binary
  • hex
  • utf8

This Package Is Under The MIT License

Keywords

encode

FAQs

Package last updated on 16 Feb 2020

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