is-dom-node

WebJar for is-dom-node

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-dom-node
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

is-dom-node
WebJar for is-dom-node
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jlmakes/is-dom-node

Download is-dom-node

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-dom-node/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-dom-node</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-dom-node/
implementation 'org.webjars.npm:is-dom-node:1.0.4'
// https://jarcasting.com/artifacts/org.webjars.npm/is-dom-node/
implementation ("org.webjars.npm:is-dom-node:1.0.4")
'org.webjars.npm:is-dom-node:jar:1.0.4'
<dependency org="org.webjars.npm" name="is-dom-node" rev="1.0.4">
  <artifact name="is-dom-node" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-dom-node', version='1.0.4')
)
libraryDependencies += "org.webjars.npm" % "is-dom-node" % "1.0.4"
[org.webjars.npm/is-dom-node "1.0.4"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

is-dom-node

Build status Coverage Version 0.2 kB min+gzip MIT License

Installation

Browser

A simple and fast way to get started is to include this script on your page:

<script src="https://unpkg.com/is-dom-node"></script>

This will create the global variable isDomNode.

Module

npm install is-dom-node

CommonJS

const isDomNode = require('is-dom-node')

ES2015

import isDomNode from 'is-dom-node'

Usage

const node = document.querySelector('#cake')
isDomNode(node)
// => true

const html = '<div id="cake"></div>'
isDomNode(html)
// => false

Versions

Version
1.0.4