Skip to content

Commit

Permalink
renamed to lowercase name for npm.
Browse files Browse the repository at this point in the history
  • Loading branch information
arei committed Jul 15, 2013
1 parent 37dc811 commit 07c55fa
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -64,21 +64,21 @@ Installation

You can get Threadful from npm using the command
```
npm install Threadful
npm install threadful
```

Once obtained you can use Threadful in your own code thus

Node.js - via require
```javascript
// Require Threadful
var Threadful = require("Threadful");
var Threadful = require("threadful");
```

Browser - Insert a script tag
```html
<!-- Install Threadful -->
<script src="Threadful.js"></script>
<script src="threadful.js"></script>
```

Please Note: Installing Threadful in a browser create the global object Threadful.
Expand Down
12 changes: 6 additions & 6 deletions package.json
@@ -1,24 +1,24 @@
{
"author": "Glen R. Goodwin (http://www.arei.net)",
"name": "Threadful",
"name": "threadful",
"keywords": [ "Threadful","Thread","Worker","Workers","Process","Child Process","Web Worker","Threads","Threading","Threaded","Multi-Thread","Multi-Threading","Multi-Threading" ],
"description": "Common 'Thread' behavior for Browsers (using Web Workers) or Node (using Child Process).",
"version": "0.0.1",
"homepage": "http://github.com/arei/Threadful",
"homepage": "http://github.com/arei/threadful",
"bugs": {
"url": "http://github.com/arei/Threadful/issues"
"url": "http://github.com/arei/threadful/issues"
},
"licenses": [
{
"type": "MIT",
"url": "http://github.com/arei/Threadful/blob/master/LICENSE.txt"
"url": "http://github.com/arei/threadful/blob/master/LICENSE.txt"
}
],
"repository": {
"type": "git",
"url": "git://github.com/arei/Threadful.git"
"url": "git://github.com/arei/threadful.git"
},
"main": "Threadful.js",
"main": "threadful.js",
"engines": {
"node": ">=0.10.0"
},
Expand Down
2 changes: 1 addition & 1 deletion test/browser/core.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>Threadful Browser Tests</title>
<script src="../../Threadful.js"></script>
<script src="../../threadful.js"></script>
</head>
<body>
All Browser Test results can be found in the console.
Expand Down
6 changes: 3 additions & 3 deletions test/browser/test.html
@@ -1,17 +1,17 @@
<html>
<head>
<title>Threadful Browser Tests</title>
<script src="../../Threadful.js"></script>
<script src="../../threadful.js"></script>
</head>
<body>
All Browser Test results can be found in the console.
<script>
(function(){
if (!window.Threadful) {
console.log("Threadful.js Found Test: FAILED.");
console.log("threadful.js Found Test: FAILED.");
return;
}
console.log("Threadful.js Found Test: Passed");
console.log("threadful.js Found Test: Passed");

var w = new Threadful.Thread();
if (!w) {
Expand Down
2 changes: 1 addition & 1 deletion test/node/core.js
@@ -1,7 +1,7 @@
var assert = require("assert");

// Test Threadful itself
var Threadful = require("./../../Threadful.js");
var Threadful = require("./../../threadful.js");
assert(!!Threadful);
assert(!!Threadful.Thread);
assert(!!Threadful.ThreadPool);
Expand Down
2 changes: 1 addition & 1 deletion test/node/performance.js
@@ -1,4 +1,4 @@
var Threadful = require("./../../Threadful.js");
var Threadful = require("./../../threadful.js");
var pool = new Threadful.ThreadPool({
threads: 1
});
Expand Down
2 changes: 1 addition & 1 deletion test/node/timing.js
Expand Up @@ -11,7 +11,7 @@ var threadified;

(function(){
var start = new Date().getTime();
Threadful = require("./../../Threadful.js");
Threadful = require("./../../threadful.js");
console.log("Requiring ............. "+(new Date().getTime()-start)+" ms.");
})();

Expand Down
2 changes: 1 addition & 1 deletion Threadful.js → threadful.js
Expand Up @@ -6,7 +6,7 @@

if (!isBrowser && !isNode) throw new Error("Unable to understand execution context, neither Browser nor Node.");

var threadfulName = "Threadful.js";
var threadfulName = "threadful.js";
var threadfulPath = threadfulName;

var oneup = 1;
Expand Down

0 comments on commit 07c55fa

Please sign in to comment.