{"id":18780285,"url":"https://github.com/jlmakes/is-dom-node","last_synced_at":"2025-09-21T00:38:42.611Z","repository":{"id":57277085,"uuid":"116492345","full_name":"jlmakes/is-dom-node","owner":"jlmakes","description":"ES module for type checking DOM Nodes.","archived":false,"fork":false,"pushed_at":"2018-01-30T19:51:16.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T16:48:47.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlmakes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-06T15:09:32.000Z","updated_at":"2020-02-10T23:40:42.000Z","dependencies_parsed_at":"2022-09-06T05:21:17.523Z","dependency_job_id":null,"html_url":"https://github.com/jlmakes/is-dom-node","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlmakes%2Fis-dom-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlmakes%2Fis-dom-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlmakes%2Fis-dom-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlmakes%2Fis-dom-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlmakes","download_url":"https://codeload.github.com/jlmakes/is-dom-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239695463,"owners_count":19682067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T20:25:38.030Z","updated_at":"2025-09-21T00:38:37.563Z","avatar_url":"https://github.com/jlmakes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-dom-node\n\n\u003ca href=\"https://travis-ci.org/jlmakes/is-dom-node\"\u003e \u003cimg src=\"https://img.shields.io/travis/jlmakes/is-dom-node.svg\" alt=\"Build status\"\u003e \u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/jlmakes/is-dom-node\"\u003e \u003cimg src=\"https://img.shields.io/coveralls/jlmakes/is-dom-node.svg\" alt=\"Coverage\"\u003e \u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/is-dom-node\"\u003e \u003cimg src=\"https://img.shields.io/npm/v/is-dom-node.svg\" alt=\"Version\"\u003e \u003c/a\u003e\n\u003cimg src=\"https://img.shields.io/badge/min+gzip-0.2_kB-blue.svg\" alt=\"0.2 kB min+gzip\"\u003e\n\u003ca href=\"https://github.com/jlmakes/is-dom-node/blob/master/LICENSE\"\u003e \u003cimg src=\"https://img.shields.io/badge/license-MIT-1283c3.svg\" alt=\"MIT License\"\u003e \u003c/a\u003e\n\n## Installation\n\n### Browser\n\nA simple and fast way to get started is to include this script on your page:\n\n```html\n\u003cscript src=\"https://unpkg.com/is-dom-node\"\u003e\u003c/script\u003e\n```\n\nThis will create the global variable `isDomNode`.\n\n### Module\n\n```bash\nnpm install is-dom-node\n```\n\n#### CommonJS\n\n```js\nconst isDomNode = require('is-dom-node')\n```\n\n#### ES2015\n\n```js\nimport isDomNode from 'is-dom-node'\n```\n\n## Usage\n\n```js\nconst node = document.querySelector('#cake')\nisDomNode(node)\n// =\u003e true\n\nconst html = '\u003cdiv id=\"cake\"\u003e\u003c/div\u003e'\nisDomNode(html)\n// =\u003e false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlmakes%2Fis-dom-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlmakes%2Fis-dom-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlmakes%2Fis-dom-node/lists"}