Package Exports
- getroot
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (getroot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
getroot
getroot is simple utility wraps access to global object.
Install
npm install getrootUsage
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 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