Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wru

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wru - npm Package Compare versions

Comparing version 0.1.9 to 0.2.0

.npmignore

34

node/program.js

@@ -6,8 +6,19 @@ #!/usr/bin/env node

path = require('path'),
wru = require(path.join(CWD, 'node', 'wru.console.js')),
test = [],
args = resolveArguments(process.argv),
wru = require(path.join(__dirname, 'wru.console.js')),
inline = [],
test = [consoleAssert],
wru_test = wru.test,
interval = 0
;
function consoleAssert() {
inline.forEach(function (args) {
args.length < 2 ?
wru.assert(args[0]) :
wru.assert(args[1], args[0])
;
});
}
function execute() {
inline.length || test.shift();
wru_test.call(wru, test);

@@ -30,4 +41,17 @@ }

global.log = wru.log;
resolveArguments(process.argv).forEach(function (fileName) {
require(path.join(CWD, fileName));
});
/* maybe too obtrusive ...
global.console.assert = function assert() {
inline.push(arguments);
};
*/
if (args.length) {
args.forEach(function (fileName) {
require(path.join(CWD, fileName));
});
} else {
console.log('');
console.log('Usage:');
console.log('wru ~/path/with/test.js ~/more?if/necessary.js');
console.log('');
process.exit();
}

2

package.json
{
"name": "wru"
, "version": "0.1.9"
, "version": "0.2.0"
, "description": "sync and async JavaScript tests have never been that easy"

@@ -5,0 +5,0 @@ , "homepage": "https://github.com/WebReflection/wru"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc