npm

add-ids-to-document

1.0.12 • Public • Published

Add ids to document

Function to add ids to each TEXT_NODE in the given document.

Install

npm i add-ids-to-document

Usage

import { addIdsToWords } from 'add-ids-to-document';

// Pass a Document to the function
addIdsToWords(doc);
// Output: returns a new document with sequential ids in each TEXT_NODE

Readme

Keywords

none

Package Sidebar

Install

npm i add-ids-to-document

Weekly Downloads

0

Version

1.0.12

License

ISC

Unpacked Size

4.19 kB

Total Files

5

Last publish

Collaborators

  • zohaibamir4061