chore: add pkg dependencies

This commit is contained in:
Rim
2025-04-01 23:48:10 -04:00
parent e32a4c6abc
commit 86f0782a98
1210 changed files with 125948 additions and 3593 deletions

26
node_modules/expand-template/index.js generated vendored Normal file
View File

@ -0,0 +1,26 @@
module.exports = function (opts) {
var sep = opts ? opts.sep : '{}'
var len = sep.length
var whitespace = '\\s*'
var left = escape(sep.substring(0, len / 2)) + whitespace
var right = whitespace + escape(sep.substring(len / 2, len))
return function (template, values) {
Object.keys(values).forEach(function (key) {
var value = String(values[key]).replace(/\$/g, '$$$$')
template = template.replace(regExp(key), value)
})
return template
}
function escape (s) {
return [].map.call(s, function (char) {
return '\\' + char
}).join('')
}
function regExp (key) {
return new RegExp(left + key + right, 'g')
}
}

29
node_modules/expand-template/package.json generated vendored Normal file
View File

@ -0,0 +1,29 @@
{
"name": "expand-template",
"version": "2.0.3",
"description": "Expand placeholders in a template string",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/ralphtheninja/expand-template.git"
},
"homepage": "https://github.com/ralphtheninja/expand-template",
"scripts": {
"test": "tape test.js && standard"
},
"keywords": [
"template",
"expand",
"replace"
],
"author": "LM <ralphtheninja@riseup.net>",
"license": "(MIT OR WTFPL)",
"dependencies": {},
"devDependencies": {
"standard": "^12.0.0",
"tape": "^4.2.2"
},
"engines": {
"node": ">=6"
}
}