Permalink
Browse files

Re-organized directory to match other node modules.

  • Loading branch information...
rsdoiel committed Sep 15, 2012
1 parent 877efe2 commit d1bd1b7cdce3a3faec8bd4cb812d0ec2179c76b1
View
@@ -46,7 +46,7 @@ While this was implemented as a NodeJS module it also works under MongoDB's shel
Instead of including with a "require" you would load the JavaScript file _load-mimetype.js_.
```JavaScript
- load("./load-mimetype.js");
+ load("./extras/load-mimetype.js");
print("Check the mime type of test.txt:" + MimeType.lookup("test.txt"));
```
@@ -55,7 +55,7 @@ This would display something like-
```shell
MongoDB shell version: 2.2.0
connecting to: test
- > load("./load-mimetype.js");
+ > load("./extras/load-mimetype.js");
> print("Check the mime type of test.txt: " + MimeType.lookup("test.txt"));
Check the mime type of test.txt: text/plain
>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -23,7 +23,7 @@
"dependencies" : {
},
"scripts" : {
- "test" : "node mimetype_test.js"
+ "test" : "node tests/mimetype_test.js"
},
"bugs": {
"url": "http://github.com/rsdoiel/mimetype-js/issues"
@@ -10,9 +10,9 @@
var assert = require('assert'),
path = require('path'),
- harness = require('./harness'),
- v0_0_3 = require('./v0.0.3').data,
- mimetype = require('./mimetype');
+ harness = require('../lib/harness'),
+ v0_0_3 = require('../lib/v0.0.3').data,
+ mimetype = require('../mimetype');
// Tests for version 0.0.2
harness.push({callback: function () {

0 comments on commit d1bd1b7

Please sign in to comment.