is-base64

v0.0.1arrow_drop_down
v0.0.1
STATUS
Passing
DOWNLOADS
0
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
N/A
Validate that a string is base64
1 contributor
Install is-base64 as a package?
Copied
npm i @bit/amit.utils.string.is-base64
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
string/isBase64 (
name:string
) : boolean

Validate that a string is base64

Example
```js
const isBase64 = require('bit/string/is-base64');
isBase64(str)
```
Argument
name: string
Returns
boolean

Test Summary

isBase64 should return true if string is base64

Pass

isBase64 should return false if string is not base64

Pass
Help and resources