Download frontend/node_modules/sharp/install/check.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/sharp/install/check.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/sharp/install/check.js
-
curl -L -o check.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/sharp/install/check.js
383 Bytes
| /*! | |
| Copyright 2013 Lovell Fuller and others. | |
| SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| try { | |
| const { useGlobalLibvips } = require('../lib/libvips'); | |
| if (useGlobalLibvips() || process.env.npm_config_build_from_source) { | |
| process.exit(1); | |
| } | |
| } catch (err) { | |
| const summary = err.message.split(/\n/).slice(0, 1); | |
| console.log(`sharp: skipping install check: ${summary}`); | |
| } | |