From 0efdc08b1bbee38a6542381d6f5368c23f439c91 Mon Sep 17 00:00:00 2001 From: Klaus Trainer Date: Sun, 4 Sep 2016 15:42:39 +0200 Subject: [PATCH] fix(readme): correct usage example --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 74ab67f..fa1f803 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ whitelist. If no whitelist is specified, we default to an empty whitelist. ## Usage ````javascript - var sandbox = require("./sandbox"), - whitelist = ["console"], - context = {require: require}, - theAnswerFun = function() { return 42; }, - consoleFun = function() { require("console").log("Hello World!"); }, - httpFun = function() { return require("http").STATUS_CODES['200']; }; + var sandbox = require('sandbox.js'), + whitelist = ['console'], + context = {require: require}, + theAnswerFun = function() { return 42; }, + consoleFun = function() { require('console').log('Hello World!'); }, + httpFun = function() { return require('http').STATUS_CODES['200']; }; sandbox.runInSandbox(theAnswerFun); // => 42