Spaces:
Running
Running
Download frontend/node_modules/lightningcss/node/index.js from sourav-das/stem-separator: direct link, hf CLI and curl.
- Browser
- Download file 842 Bytes
-
https://huggingface.co/spaces/sourav-das/stem-separator/resolve/main/frontend/node_modules/lightningcss/node/index.js
- Command line
-
hf download hf://spaces/sourav-das/stem-separator/frontend/node_modules/lightningcss/node/index.js
-
curl -L -o index.js https://huggingface.co/spaces/sourav-das/stem-separator/resolve/main/frontend/node_modules/lightningcss/node/index.js
842 Bytes
| let parts = [process.platform, process.arch]; | |
| if (process.platform === 'linux') { | |
| const { MUSL, familySync } = require('detect-libc'); | |
| const family = familySync(); | |
| if (family === MUSL) { | |
| parts.push('musl'); | |
| } else if (process.arch === 'arm') { | |
| parts.push('gnueabihf'); | |
| } else { | |
| parts.push('gnu'); | |
| } | |
| } else if (process.platform === 'win32') { | |
| parts.push('msvc'); | |
| } | |
| if (process.env.CSS_TRANSFORMER_WASM) { | |
| module.exports = require(`../pkg`); | |
| } else { | |
| try { | |
| module.exports = require(`lightningcss-${parts.join('-')}`); | |
| } catch (err) { | |
| module.exports = require(`../lightningcss.${parts.join('-')}.node`); | |
| } | |
| } | |
| module.exports.browserslistToTargets = require('./browserslistToTargets'); | |
| module.exports.composeVisitors = require('./composeVisitors'); | |
| module.exports.Features = require('./flags').Features; | |