Skip to content

WebReflection/dom-identifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dom-identifier

Build Status Coverage Status

An utility to retrieve a unique node path, and find it later on.

import {getNode, getPath} from 'dom-identifier';

const node = document.getElementById('any');
const path = getPath(node);
// [1, 34, 12, 7]

getNode(path) === node;
// true

About

An utility to retrieve a unique node path, and find it later on.

Resources

License

Stars

Watchers

Forks

Packages

No packages published