getroot
getroot
is simple utility wraps access to global object.
Install
npm install getroot
Usage
; //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 todist
.test
: Run unit testlint
: Run lint over all codebaseslint:staged
: Run lint only for staged changes. This'll be executed automatically with precommit hook.commit
: Commit wizard to write commit message