Download pool/shard003/JavaScript/0018970_usage.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0018970_usage.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard003/JavaScript/0018970_usage.js
-
curl -L -o 0018970_usage.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0018970_usage.js
464 Bytes
| ; | |
| const stripAnsi = require('strip-ansi'); | |
| const {resolve} = require('path'); | |
| const {execSync} = require('child_process'); | |
| const executable = require.resolve('../../bin/mocha'); | |
| const flag = '--help'; | |
| /** | |
| * Return the output of `mocha --help` for display | |
| */ | |
| module.exports = () => { | |
| return stripAnsi( | |
| String( | |
| execSync(`"${process.execPath}" ${executable} ${flag}`, { | |
| cwd: resolve(__dirname, '..') | |
| }) | |
| ).trim() | |
| ); | |
| }; | |