added to remote repo
This commit is contained in:
1 parent
8697c9f405
commit
cc599b6e18
8049 files changed
+1096323
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
"use strict"
|
||||
|
||||
const readCache = require("read-cache")
|
||||
const dataURL = require("./data-url")
|
||||
|
||||
module.exports = filename => {
|
||||
if (dataURL.isValid(filename)) {
|
||||
return dataURL.contents(filename)
|
||||
}
|
||||
|
||||
return readCache(filename, "utf-8")
|
||||
}
|
||||
Reference in new issue
Block a user