Merge branch 'master' into master

This commit is contained in:
Jeff Weeks
2017-04-04 14:26:48 -04:00
committed by GitHub
17 changed files with 311 additions and 92 deletions

View File

@@ -547,3 +547,15 @@ export const parseSeach = () => {
return map
}
export const btoa = (str) => {
let buffer
if (str instanceof Buffer) {
buffer = str
} else {
buffer = new Buffer(str.toString(), "utf-8")
}
return buffer.toString("base64")
}