Download backend/node_modules/@hapi/hoek/lib/assert.js from chainr-ai/CHAINR: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/chainr-ai/CHAINR/resolve/main/backend/node_modules/%40hapi/hoek/lib/assert.js
- Command line
-
hf download hf://chainr-ai/CHAINR/backend/node_modules/@hapi/hoek/lib/assert.js
-
curl -L -o assert.js https://huggingface.co/chainr-ai/CHAINR/resolve/main/backend/node_modules/%40hapi/hoek/lib/assert.js
307 Bytes
| ; | |
| const AssertError = require('./error'); | |
| const internals = {}; | |
| module.exports = function (condition, ...args) { | |
| if (condition) { | |
| return; | |
| } | |
| if (args.length === 1 && | |
| args[0] instanceof Error) { | |
| throw args[0]; | |
| } | |
| throw new AssertError(args); | |
| }; | |