feat: scaffold Astro + Tailwind project
This commit is contained in:
20
node_modules/astro/dist/core/util-runtime.js
generated
vendored
Normal file
20
node_modules/astro/dist/core/util-runtime.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
function isObject(value) {
|
||||
return typeof value === "object" && value != null;
|
||||
}
|
||||
function isURL(value) {
|
||||
return Object.prototype.toString.call(value) === "[object URL]";
|
||||
}
|
||||
function arraify(target) {
|
||||
return Array.isArray(target) ? target : [target];
|
||||
}
|
||||
function padMultilineString(source, n = 2) {
|
||||
const lines = source.split(/\r?\n/);
|
||||
return lines.map((l) => ` `.repeat(n) + l).join(`
|
||||
`);
|
||||
}
|
||||
export {
|
||||
arraify,
|
||||
isObject,
|
||||
isURL,
|
||||
padMultilineString
|
||||
};
|
||||
Reference in New Issue
Block a user