Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "is-base64", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Predicate that returns true if base64 string.", | ||
@@ -5,0 +5,0 @@ "main": "is-base64.js", |
@@ -29,2 +29,3 @@ # is-base64 | ||
console.log(isBase64('uuLMhh', {paddingRequired: false})); // true | ||
console.log(isBase64('')); // true | ||
``` | ||
@@ -31,0 +32,0 @@ |
@@ -5,4 +5,6 @@ var test = require('tape'); | ||
test('isBase64', function (t) { | ||
t.plan(17); | ||
t.plan(18); | ||
t.equal(isBase64(''), true); | ||
var pngString = 'iVBORw0KGgoAAAANSUhEUgAABQAAAALQAQMAAAD1s08VAAAAA1BMVEX/AAAZ4gk3AAAAh0lEQVR42u3BMQEAAADCoPVPbQlPoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4GsTfAAGc95RKAAAAAElFTkSuQmCC'; | ||
@@ -9,0 +11,0 @@ var pngStringWithMime = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQAAAALQAQMAAAD1s08VAAAAA1BMVEX/AAAZ4gk3AAAAh0lEQVR42u3BMQEAAADCoPVPbQlPoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4GsTfAAGc95RKAAAAAElFTkSuQmCC'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8406
61
44