Spaces:
Runtime error
Runtime error
Download node_modules/defaults/index.js from TheShellMaster/cypher-coder: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/spaces/TheShellMaster/cypher-coder/resolve/b1ebab769f46510b1cf0bcffb500a4b4bc5f8109/node_modules/defaults/index.js
- Command line
-
hf download hf://spaces/TheShellMaster/cypher-coder@b1ebab769f46510b1cf0bcffb500a4b4bc5f8109/node_modules/defaults/index.js
-
curl -L -o index.js https://huggingface.co/spaces/TheShellMaster/cypher-coder/resolve/b1ebab769f46510b1cf0bcffb500a4b4bc5f8109/node_modules/defaults/index.js
277 Bytes
| var clone = require('clone'); | |
| module.exports = function(options, defaults) { | |
| options = options || {}; | |
| Object.keys(defaults).forEach(function(key) { | |
| if (typeof options[key] === 'undefined') { | |
| options[key] = clone(defaults[key]); | |
| } | |
| }); | |
| return options; | |
| }; |