npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

textifyjs-lib

v1.2.1

Published

**textifyjs-lib** is a lightweight and customizable rich-text editor library for modern web applications. It offers a simple, yet powerful, interface to integrate rich-text editing capabilities into your projects.

Downloads

6

Readme

textifyjs-lib

textifyjs-lib is a lightweight and customizable rich-text editor library for modern web applications. It offers a simple, yet powerful, interface to integrate rich-text editing capabilities into your projects.


Features

  • 📝 Rich Text Editing: Includes formatting options like bold, italic, underline, lists, and links.
  • Fast and Lightweight: Built for performance and modern workflows.
  • 📦 ESM and UMD Support: Works seamlessly with bundlers or direct script imports.

Installation

Install via npm:

npm install textifyjs-lib

Or include js/css directly in your HTML file:

    <script src="https://cdn.jsdelivr.net/npm/textifyjs-lib@1.2.1/dist/textifyjslib.min.js"></script>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/textifyjs-lib@1.2.1/dist/textifyjs-lib.css">

Example for use

Example HTML Integration

    <!doctype html>
    <html lang="en">
    <head>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/textifyjs-lib@1.2.1/dist/textifyjs-lib.css">
        <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" rel="stylesheet">
        <title>My web</title>
    </head>
    <body>
        <div id="editor-container"></div>
        <script type="module" src="/src/main.js"></script>
    </body>
    </html>

Import in a JavaScript Project

//main.js

    import RichTextEditor from 'textifyjs-lib';

    // Create an instance of the editor
    const editor = new RichTextEditor('#editor-container', {
        height: 510,
        width: 896,
        placeholder: 'Write here...',
        toolbar: {
            basic: true,
            formatting: true,
            alignment: true,
            lists: true,
            media: true,
        },
        // Custom fonts
        fonts: [
            { name: 'Times New Roman', value: 'Times New Roman' },
            { name: 'Georgia', value: 'Georgia' },
        ],
        // Custom colors text
        colors: ['#640D5F', '#3C552D'],
        counters: true,
    });

    // Get the content
    const content = editor.getContent();

    // Set content
    editor.setContent('<p>New content</p>');

    // Destroy the editor
    editor.destroy();

Support for language

English (en), Spanish (es), French (fr) language support can be added.

By default it automatically detects the language by default:

<html lang=“en”>

Specify language explicitly:

const editor = new RichTextEditor('#editor-container', {
  language: 'es' // english (en), spanish (es), french (fr)
});

Or add custom translations:

const editor = new RichTextEditor('#editor-container', {
  translations: {
    fr: {
        toolbar: {
            formatting: {
                normal: "Normal",
                title1: "Titre 1",
                title2: "Titre 2",
                title3: "Titre 3",
                title4: "Titre 4",
                code: "Code",
            },
            textColor: "Couleur du texte",
            backgroundColor: "Couleur d'arrière-plan",
            buttons: {
                bold: "Gras",
                italic: "Italique",
                underline: "Souligné",
                strikethrough: "Strikethrough",
                alignLeft: "Aligner à gauche",
                alignCenter: "Centre",
                alignRight: "Aligner à droite",
                justify: "Justifier",
                indent: "Augmenter l'indentation",
                outdent: "Diminuer l'indentation",
                bulletList: "Liste à puces",
                numberList: "Liste numérotée",
                link: "Insérer un lien",
                image: "Insérer une image",
                undo: "annuler",
                redo: "Refaire",
            },
            prompts: {
                imageUrl: "Entrez l'URL de l'image :",
                linkUrl: "Entrez l'URL du lien:",
            },
        },
        counters: {
            characters: "Caractères",
            words: "Mots",
        },
        placeholder: "Commencez à taper ici...",
    }
  }
});

Preview

alt text