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

insert-file-tag

v1.1.0

Published

A file inclusion utility that uses HTML-style comment tags (e.g., <!-- ::insert file="path/to/file" --><!-- :/insert -->) to dynamically insert the content of other files into your documents.

Readme

insert-file-tag

The insert-file-tag package is a Node.js utility that simplifies the process of embedding external file content into your documents. It uses special comment tags as markers, allowing you to dynamically insert code snippets, documentation excerpts, or any other text file directly into your main document. This is particularly useful for:

  • Documentation Generation: Easily include code examples, configuration files, or output logs into your documentation.
  • Code Reusability: Avoid redundancy by keeping reusable code snippets in separate files and referencing them where needed.
  • Content Assembly: Combine multiple text files into a single output document.

The package works by parsing your document, looking for special HTML-style comment tags that indicate the path to the file you want to insert. For example:

<!-- ::insert file="path/to/code.js" -->
 Content of path/to/code.js file will be inserted here.
<!-- ::/insert -->

The content of path/to/code.js will be inserted between these tags when the utility is run. This keeps your main document clean and maintainable while allowing you to include dynamic content from other sources. insert-file-tag supports various file types and can be easily integrated into your build process.

Table of Contents

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Installing

$ npm i insert-file-tag

Or,

$ npm i insert-file-tag -g

This will install the package globally, making it available from the command line. After installing, you can run the instags command.

$ instags -h

Or,

You can skip installing it the package globally, and use the npx instags command.

$ npx insert-file-tag -h

Usage

Basic Usage:

npx instags -h

This will display the help message, showing available options like -V (version) -o (output folder, and others. It explains how to use the command.

npx instags -V

This will display the version number of the installed insert-file-tag package.

$ npx instags README.md

This command will process the README.md file. It will search for any tags within README.md. If any are found, the specified file content will be inserted in place of the tag, and the updated content will be written back to README.md. If no insert tags are present, the file will remain unchanged.

Author

@ioncakephper

License

This project is licensed under the MIT License.