Socket
Book a DemoInstallSign in
Socket

x-base64

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x-base64

base64 for javascript

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

x-base64

js代码进行base64的编码与解码

npm

  • 安装

    npm install x-base64 --save

  • 使用

    var base = require('x-base64');
    var str = 'base64';
    var encode = base.encode(str); 
    console.log(encode);
    var decode = base.decode(encode);  
    console.log(decode);
    

html页面

  • 安装

    下载x-base64.js文件并用

  • 使用

    var str = 'base64';
    var encode = Base64.encode(str); 
    console.log(encode);
    var decode = Base64.decode(encode);  
    console.log(decode);
    

FAQs

Package last updated on 04 Jan 2017

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