Download pool/shard011/JavaScript/0069066_test-cli.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard011/JavaScript/0069066_test-cli.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard011/JavaScript/0069066_test-cli.js
-
curl -L -o 0069066_test-cli.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard011/JavaScript/0069066_test-cli.js
687 Bytes
| /* | |
| * Command line interface to test Fuzzee | |
| * | |
| * Two ways to use: | |
| * Pipe mode: | |
| * cat tests/validation/junit_tipper.fcl | node test-cli | |
| * | |
| * File mode: | |
| * node test-cli tests/validation/junit_tipper.fcl | |
| */ | |
| var fs = require('fs') | |
| var Fuzzee = require('./index') | |
| // String mode | |
| if(process.argv[2]) { | |
| var stream = fs.createReadStream(process.argv[2]) | |
| var string = '' | |
| stream.on('data',function(data) { | |
| string += data.toString() | |
| }) | |
| stream.on('end',function() { | |
| var fuzzee = new Fuzzee(string) | |
| fuzzee.on('end', function() { | |
| console.log(fuzzee.js) | |
| }) | |
| }) | |
| } | |
| // Pipe mode | |
| else { | |
| fuzzee = new Fuzzee() | |
| process.stdin.pipe(fuzzee).pipe(process.stdout) | |
| } |