1.0.0 • Published 5 years ago

source-tree v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

source-tree

This is a very simple package that get all files in the process directory (and subfolders) and store them into a global key-value list, so it can be used to get the path of the file by its name from everywhere.

Install

npm install source-tree

Usage

const sourceTree = require('source-tree')
const filepath = sourceTree.find('Source.js') // /Users/.../Source.js