Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "folquire", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Requires all the modules from a folder", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -31,5 +31,6 @@  | ||
const { join } = require('path') | ||
const folquire = require('folquire') | ||
const math = folquire(__dirname + '/math') | ||
const math = folquire(join(__dirname, 'math')) | ||
@@ -49,5 +50,6 @@ math.add(1, 2) // 2 | ||
const { join } = require('path') | ||
const folquire = require('folquire') | ||
folquire(__dirname + '/math') | ||
folquire(join(__dirname, 'math')) | ||
.then(math => { | ||
@@ -66,7 +68,8 @@ math.add(1, 2) // 2 | ||
const { join } = require('path') | ||
const folquire = require('folquire') | ||
const modules = folquire(__dirname + '/math', { | ||
const modules = folquire(join(__dirname, 'math'), { | ||
ignore: ['add.js'] | ||
}) | ||
``` |
3956
73