Socket
Book a DemoInstallSign in
Socket

at-base64

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

at-base64

### polyfill

0.1.1
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

base64的库

polyfill

如果浏览器不支持 windo.btoawindow.atob ,则应用polyfil

最终输出 base64 对象

使用

npm

npm install at-base64 --save

bower

bower install at-base64 --save
var base64 = require('base64');
// or
import base64 from 'base64';

如果应用引入 AngulaJs ,则自动注入 base64 服务,需要引入模块

angular.module('test',['base64'])

否则挂载在全局作用域下

方法

encode

加密,如果加密失败,返回nul

decode

解密,如果解密失败,返回nul

测试

npm test

FAQs

Package last updated on 25 Apr 2016

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.