New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

steel

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steel - npm Package Compare versions

Comparing version 0.0.1 to 0.0.11

.jshintrc

72

package.json
{
"name": "steel",
"description": "QUnit-compatible test interface",
"version": "0.0.1",
"homepage": "http://github.johntantalo.com/steel/",
"description": "a front-end framework",
"version": "0.0.11",
"homepage": "https://github.com/steeljs-org/Steeljs",
"author": {
"name": "Lonefy",
"url": ""
},
"repository": {
"type": "git",
"url": "git://github.com/tantalor/steel.git"
"url": "https://github.com/steeljs-org/Steeljs.git"
},
"author": {
"name": "John Tantalo",
"email": "john.tantalo@gmail.com",
"url": "http://johntantalo.com"
"bugs": {
"url": "https://github.com/steeljs-org/Steeljs/issues"
},
"main": "./lib/steel",
"directories": {
"lib": "./lib"
"licenses": [
{
"type": "MIT",
"url": ""
}
],
"main": "index.js",
"engines": {
"node": ">= 0.10.0"
},
"engines": {
"node": "*",
"jsc": "*",
"narwhal": "*",
"ringo": "*"
}
"bin": {
"steel": "./bin/steel.js"
},
"keywords": [
"steel command line",
"task runner"
],
"dependencies": {
"interpret": "~0.4.1",
"liftoff": "~2.0.0",
"minimist": "~1.1.0"
},
"devDependencies": {},
"gitHead": "",
"_id": "steel@0.0.11",
"scripts": {},
"_shasum": "",
"_from": "steel@*",
"_npmVersion": "2.5.1",
"_nodeVersion": "0.12.0",
"_npmUser": {
"name": "Lonefy",
"email": "Lonefy@foxmail.com"
},
"maintainers": [
{
"name": "Lonefy",
"email": "Lonefy@foxmail.com"
}
],
"dist": {
"shasum": "",
"tarball": ""
},
"directories": {},
"_resolved": ""
}

@@ -1,62 +0,1 @@

# steel
**steel** is a small Javascript library that adds a [QUnit](http://docs.jquery.com/Qunit)-like testing interface for various JavaScript runtimes.
## Motivation
JavaScript is primarily a browser-based scripting language, but is commonly used for server-side applications. Your app might even run the exact same JavaScript code on the server and client. Wouldn't it be nice if you could easily run the exacty same unit tests in your server runtime as your traditional QUnit browser tests?
## Supported JavaScript Runtimes
* [Narwhal](http://narwhaljs.org/)
* [Node](http://nodejs.org/)
* [JavaScriptCore](http://webkit.org/projects/javascript/)
* [RingoJS](http://ringojs.org/)
## Example
Add the following preamble and postamble to your QUnit tests.
// preamble
if (typeof require !== 'undefined') {
var QUnit = require('../lib/steel'); // commonjs
} else if (typeof(load) !== 'undefined') {
var QUnit = load('lib/steel.js'); // jsc
}
with (QUnit) {
// your tests here
}
// postamble
if (QUnit.run) QUnit.run(typeof exports !== 'undefined' ? exports : undefined);
## Demo
You can run all tests.
$ node demo/all.js
+ Running
+ Running test test addition
+ Running test test multiplication
Passes: 2, Fails: 0, Errors: 0
+ Running
+ Running test test concatenation
+ Running test test substring
Passes: 2, Fails: 0, Errors: 0
Or just one test.
$ node demo/math.js
+ Running
+ Running test test addition
+ Running test test multiplication
Passes: 2, Fails: 0, Errors: 0
Narwhal has a special syntax for running a single test.
$ narwhal -m test demo/math.js
+ Running /Users/john/Sites/steel/demo/math.js
+ Running test addition
+ Running test multiplication
Passes: 2, Fails: 0, Errors: 0
# Steel

Sorry, the diff of this file is not supported yet

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