first commit

This commit is contained in:
Stefan Hacker
2026-01-29 01:16:54 +01:00
commit e209e9bbca
12105 changed files with 2480672 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
"use strict"
const dataURLRegexp = /^data:text\/css;base64,/i
function isValid(url) {
return dataURLRegexp.test(url)
}
function contents(url) {
// "data:text/css;base64,".length === 21
return Buffer.from(url.slice(21), "base64").toString()
}
module.exports = {
isValid,
contents,
}