node-iterator A ES6 Generator that traverses the child nodes within the given Node Installation $ npm install node-iteratorExample import NodeIterator from 'node-iterator'; // manual iterationlet node;for (node of NodeIterator(document.body)) { console.log(node.nodeName);} // cast to an Arraylet nodes = [...NodeIterator(document.body)];console.log(nodes.length);License MIT