Browse files

Update package name to all lowercase

  • Loading branch information...
1 parent 86e654d commit f779e2a16347e5a98b2375d16de6efee463c2c46 Mikito Takada committed Aug 17, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 readme.md
View
2 package.json
@@ -1,5 +1,5 @@
{
- "name": "requireInContext",
+ "name": "requireincontext",
"description": "Wrapper to require() js files in a custom context",
"version": "0.0.1",
"author": "Mikito Takada <mixu@mixu.net>",
View
4 readme.md
@@ -4,15 +4,15 @@ Allows you to do a require() with a custom context.
Useful for emulating a browser environment in Node:
- var requireInContext = require('runincontext');
+ var requireInContext = require('requireincontext');
var myclient = requireInContext('./myclient.js', {
window: {},
io: require('socket.io')
});
Or for specifying mock objects for running tests:
- var requireInContext = require('runincontext');
+ var requireInContext = require('requireincontext');
var mycode = requireInContext('./mycode.js', {
mydependency: require('./dependency_mock.js')
});

0 comments on commit f779e2a

Please sign in to comment.