cheerio-create-text-node
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0 • Public • Published

    cheerio-create-text-node

    Add .createTextNode(text) functionality to cheerio

    demo

    import * as cheerio from 'cheerio';
    import * as cheerioCreateTextNode from 'cheerio-create-text-node';
    
    $ = cheerio.load('<ul>  <li></li>  </ul>');
    cheerioCreateTextNode.use($);
    

    append

    let text = $.createTextNode(123);
    $('ul').append(text);
    

    appendTo

    let text = $.createTextNode(123);
    text.appendTo($('ul'));
    

    Install

    npm i cheerio-create-text-node

    DownloadsWeekly Downloads

    12

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    19.4 kB

    Total Files

    14

    Last publish

    Collaborators

    • bluelovers