New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bwindow

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bwindow

Browser window accessor

latest
Source
npmnpm
Version
2.0.3
Version published
Weekly downloads
45
-61.86%
Maintainers
1
Weekly downloads
 
Created
Source

bwindow

Build Status npm Version JS Standard

Browser window accessor

Installation

$ npm install bwindow --save

Usage

'use strict'

const { get } = require('bwindow')

// Check document object available
{
  let isServerSide = !get('document')
  /* ... */
}

// With strict options, throws an error when not found
{
  let URL = get('URL', { strict: true })
  /* ... */
}

Functions

Available functions

SignatureDescription
get(name, options, options.strict) -> ?ObjectGet object from window
once(event, handler) -> functionBind window event once
set(name, value, options, options.strict) -> ?ObjectSet object to window

License

This software is released under the MIT License.

  • b-labo

FAQs

Package last updated on 24 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts