Comparing version 0.0.1 to 0.0.2-alpha.1
23
index.js
@@ -1,5 +0,22 @@ | ||
module.exports = function() { | ||
// interested in the project? get in touch. | ||
return "jeju is coming soon"; | ||
// Until we figure out how to build native v8 bindings at compile time, for now | ||
// let's bundle the binary tool and just shell to it so people can test. | ||
const util = require('util'); | ||
const execFile = util.promisify(require('child_process').execFile); | ||
// Return a promise that resolves to an Object with stdout and stderr | ||
// properties. | ||
// | ||
// In case of an error (including any error resulting in an exit code other than | ||
// 0), a rejected promise is returned, with the same error object given in the | ||
// callback, but with an additional two properties stdout and stderr. | ||
// | ||
// We can use "pretty" as the default formatter, jeju is smart enough to change | ||
// that to something reasonable if jobs > 1. | ||
function run(format = "pretty", workers = 1) { | ||
const args = [`-format=${format}`, `-jobs=${workers}`]; | ||
return execFile('jeju', args); | ||
} | ||
module.exports = { | ||
run: run | ||
}; |
{ | ||
"name": "jeju", | ||
"version": "0.0.1", | ||
"description": "Jeju is coming soon", | ||
"version": "0.0.2-alpha.1", | ||
"description": "Javascript bindings for the Jeju BDD testing library", | ||
"bugs": "https://github.com/mroth/jeju-js/issues", | ||
"main": "index.js", | ||
"keywords": [ | ||
"jeju" | ||
"jeju", "cli", "testing", "bdd" | ||
], | ||
@@ -9,0 +10,0 @@ "author": "Matthew Rothenberg (https://github.com/mroth)", |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
4643
4
20
0
1
7