bwindow
Browser window accessor
Installation
$ npm install bwindow --save
Usage
'use strict' const get = // Check document object available let isServerSide = ! /* ... */ // With strict options, throws an error when not found let URL = /* ... */
Functions
Available functions
Signature | Description |
---|---|
get(name, options, options.strict) -> ?Object |
Get object from window |
once(event, handler) -> function |
Bind window event once |
set(name, value, options, options.strict) -> ?Object |
Set object to window |
License
This software is released under the MIT License.