Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-dom-node

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-dom-node - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

7

CHANGELOG.md
# Change Log
## [1.0.3] - 2018-01-11
### Changed
* Revised readme.
## [1.0.2] - 2018-01-10

@@ -20,4 +26,5 @@

[1.0.3]: https://github.com/jlmakes/is-dom-node/compare/1.0.2...1.0.3
[1.0.2]: https://github.com/jlmakes/is-dom-node/compare/1.0.1...1.0.2
[1.0.1]: https://github.com/jlmakes/is-dom-node/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/jlmakes/is-dom-node/tree/1.0.0

2

dist/is-dom-node.es.js

@@ -1,2 +0,2 @@

/*! @license is-dom-node v1.0.2
/*! @license is-dom-node v1.0.3

@@ -3,0 +3,0 @@ Copyright 2018 Fisssion LLC.

@@ -1,2 +0,2 @@

/*! @license is-dom-node v1.0.2
/*! @license is-dom-node v1.0.3

@@ -3,0 +3,0 @@ Copyright 2018 Fisssion LLC.

@@ -1,2 +0,2 @@

/*! @license is-dom-node v1.0.2 (MIT) Copyright 2018 Fisssion LLC. */
/*! @license is-dom-node v1.0.3 (MIT) Copyright 2018 Fisssion LLC. */
var isDomNode=function(){"use strict";return function(e){return"object"==typeof window.Node?e instanceof window.Node:null!==e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}}();
{
"name": "is-dom-node",
"version": "1.0.2",
"version": "1.0.3",
"description": "ES2015 module for type checking DOM Nodes",

@@ -5,0 +5,0 @@ "main": "dist/is-dom-node.js",

@@ -0,1 +1,3 @@

# `is-dom-node`
<a href="https://travis-ci.org/jlmakes/is-dom-node"> <img src="https://img.shields.io/travis/jlmakes/is-dom-node.svg" alt="Build status"> </a>

@@ -7,5 +9,5 @@ <a href="https://coveralls.io/github/jlmakes/is-dom-node"> <img src="https://img.shields.io/coveralls/jlmakes/is-dom-node.svg" alt="Coverage"> </a>

# Installation
## Installation
## Browser
### Browser

@@ -20,3 +22,3 @@ A simple and fast way to get started is to include this script on your page:

## Module
### Module

@@ -38,1 +40,13 @@ ```bash

```
## Usage
```js
const node = document.querySelector('#cake')
isDomNode(node)
// => true
const html = '<div id="cake"></div>'
isDomNode(html)
// => false
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc