UNPKG
web-push
Version:
latest (4.0.0)
4.0.0
3.6.7
3.6.6
3.6.5
3.6.4
3.6.3
3.6.2
3.6.1
3.5.0
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.0
3.0.0
2.2.0
2.1.1
2.0.2
2.0.1
2.0.0
1.0.2
1.0.1
1.0.0
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Web Push library for Node.js
github.com/web-push-libs/web-push
web-push-libs/web-push
web-push
/
src
/
urlsafe-base64-helper.js
8 lines
(7 loc)
•
136 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
/** * @param {string}
base64
* @returns {boolean} */
export
function
validate(
base64
) {
return
/^[A-Za-z0-9\-_]+$/.test(
base64
); }