Download Goat-Bot-V2/node_modules/@babel/template/lib/string.js from sweet2004/mitaaaa: direct link, hf CLI and curl.
- Browser
- Download file 598 Bytes
-
https://huggingface.co/spaces/sweet2004/mitaaaa/resolve/main/Goat-Bot-V2/node_modules/%40babel/template/lib/string.js
- Command line
-
hf download hf://spaces/sweet2004/mitaaaa/Goat-Bot-V2/node_modules/@babel/template/lib/string.js
-
curl -L -o string.js https://huggingface.co/spaces/sweet2004/mitaaaa/resolve/main/Goat-Bot-V2/node_modules/%40babel/template/lib/string.js
598 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.default = stringTemplate; | |
| var _options = require("./options"); | |
| var _parse = require("./parse"); | |
| var _populate = require("./populate"); | |
| function stringTemplate(formatter, code, opts) { | |
| code = formatter.code(code); | |
| let metadata; | |
| return arg => { | |
| const replacements = (0, _options.normalizeReplacements)(arg); | |
| if (!metadata) metadata = (0, _parse.default)(formatter, code, opts); | |
| return formatter.unwrap((0, _populate.default)(metadata, replacements)); | |
| }; | |
| } | |
| //# sourceMappingURL=string.js.map | |