is-dom-node
Advanced tools
Comparing version 1.0.2 to 1.0.3
# 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 |
@@ -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 | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7548
50