Skip to content

bendrucker/package-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

package-main Build Status Greenkeeper badge

require your "main" module

Install

$ npm install --save package-main

Usage

require('package-main')(__dirname)
//=> the main parent

API

packageMain([cwd]) -> Any

cwd

Required
Type: string

The current working directory from which to traverse upwards for the main script

License

MIT © Ben Drucker

About

concisely require your "main" module

Resources

License

Stars

Watchers

Forks

Packages

No packages published