0.0.1 • Published 2 years ago
find-entry v0.0.1
find-entry
Find an Entry File
install
npm install find-entry
usage
import findEntry from "find-entry";
// find in current working directory
findEntry();
"/Users/john/repo/src/index.js"
// find with relative path
findEntry("./repo");
"/Users/john/repo/src/index.js"
// find with absolute path
findEntry("/Users/john/repo");
"/Users/john/repo/src/index.js"
// find a TypeScript entry point
findEntry("/Users/john/repos/tslib");
"/Users/john/repos/tslib/src/index.ts";
// find entry point named after the package
findEntry("/Users/john/repos/my-library");
"/Users/john/repos/my-library/src/myLibrary.js"
0.0.1
2 years ago