1.0.0 • Published 7 years ago

getroot v1.0.0

Weekly downloads
6,554
License
MIT
Repository
github
Last release
7 years ago

Build Status Build status codecov npm node

getroot

getroot is simple utility wraps access to global object.

Install

npm install getroot

Usage

import { root } from 'getroot';

//root is either `window` or `global` based on running environment.

Building / Testing

Few npm scripts are supported for build / test code.

  • build: Transpiles code to ES5 commonjs to dist.
  • test: Run unit test
  • lint: Run lint over all codebases
  • lint:staged: Run lint only for staged changes. This'll be executed automatically with precommit hook.
  • commit: Commit wizard to write commit message

License

MIT