package-main

1.0.1 • Public • Published

package-main Build Status

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i package-main

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • bendrucker