1.0.0 • Published 8 years ago
getroot v1.0.0
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
License
1.0.0
8 years ago