UNPKG

228 BJavaScriptView Raw
1'use strict'
2
3const findout = require('findout')
4
5// Resolve a module path.
6let pathOfFoo = findout.resolve('foo')
7
8// Find and require a module.
9let foo = findout('foo', {
10 cwd: __dirname // Lookup from current directory.
11})
12