diff --git a/.jshintrc b/.jshintrc index efa28d6..1ff65e8 100644 --- a/.jshintrc +++ b/.jshintrc @@ -11,6 +11,5 @@ "node": true, "sub": true, "undef": true, - "unused": true, "esnext": true } diff --git a/index.js b/index.js index 0c58892..5fba4ec 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,8 @@ 'use strict'; -var wildstring = { +var wildstring = (function(module) { + +wildstring = { wildcard: '*', caseSensitive: true }; @@ -144,4 +146,6 @@ wildstring.replace = function (pattern, strings) { return result; }; -if (module) { module.exports = wildstring; } +module.exports = wildstring; +return wildstring; +}(module || {}));