0.0.0 • Published 4 years ago

nested-child v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

nested-child

NPM version NPM downloads NPM license All Contributors Codecov Travis Bundle size

About ℹ️

Find the most nested element

How to Install 💾

First, install the library in your project by npm:

$ npm install nested-child

Or Yarn:

$ yarn add nested-child

Getting Started 🏁

Connect libary to project:

import { nestedChild } from 'nested-child';

Next use library:

nestedChild(document.getElementById('wrapper'));

Example

<div id="container">
  <div>
    <div>
      <p>Hello World!</p>
    </div>
  </div>
</div>
const {} = nestedChild(document.getElementById('container'));

console.log(child.innerHTML); // Hello World!

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

License 🔱

This project is licensed under the MIT License © 2020-present Jakub Biesiada

0.0.0

4 years ago