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 🙏

© 2026 – Pkg Stats / Ryan Hefner

scribe-scroll

v1.1.0

Published

Create and extract text from .docx files. Lightweight Node.js wrapper around the docx and mammoth libraries for programmatic document generation.

Readme

📜 scribe scrOll

Create, edit, and extract text from .docx files. One library, three scripts, zero fuss.

You've got documents to generate programmatically. Word files, reports, templates — stuff that needs to exist but isn't a blog post or a config. scribe scrOll handles .docx creation, text editing, and content extraction with a minimal Node.js wrapper around the docx library.

Three commands. No Python. No LibreOffice. No Pandoc. Just node and npm.


What's inside

| Script | Purpose | |---|---| | src/create.js | Create new .docx from text content with headings and paragraphs | | src/extract.js | Extract plain text or JSON from an existing .docx | | (planned) | Find-and-replace, append paragraphs, indexed edits |


Install

npm install scribe-scroll
# or
npm install git+https://github.com/LittleJakub/scribe-scroll.git

Or use directly from source:

git clone https://github.com/LittleJakub/scribe-scroll.git
cd scribe-scroll
npm install

Usage

Create a document

node src/create.js \
  --title "My Report" \
  --content "Introduction\n\nThis is the body.\n\nConclusion" \
  --output report.docx

With headings (positions 1 and 3 become heading level 1):

node src/create.js \
  --title "Outline" \
  --content "Chapter 1\n\nDetails\n\nChapter 2\n\nDetails" \
  --heading-levels "1,3" \
  --output outline.docx

Extract text from a document

Plain text output:

node src/extract.js --input report.docx

JSON output (array of paragraph strings):

node src/extract.js --input report.docx --format json

Edit a document (planned)

Find and replace throughout:

node src/edit.js \
  --input old.docx \
  --find "Old Company Name" \
  --replace "New Company Name" \
  --output new.docx

Append a paragraph at the end:

node src/edit.js \
  --input doc.docx \
  --append "Added at the end" \
  --output doc.docx

Replace a specific paragraph (1-indexed):

node src/edit.js \
  --input doc.docx \
  --replace-index 2 \
  --text "Replaced paragraph 2" \
  --output doc.docx

Edit functionality planned for a future release.


Architecture

src/
  create.js    # Document creation via docx library
  extract.js   # Text extraction from .docx
  edit.js      # TODO: find/replace, append, indexed edits (requires read-capable .docx library)
package.json   # Dependencies and metadata
  • Dependencies: docx (MIT) for creation, mammoth.js (BSD-2-Clause) for extraction
  • No external tools: pure Node.js, no Python, no LibreOffice, no system dependencies
  • Node 18+: uses modern Node.js features

License

MIT — see LICENSE for details.


Built by

Jakub · hiVe stack