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

inc-one

v0.0.7

Published

js project builder which aims to help user include files into another

Readme

inc-one

inc-one build a single output file from your sources.

install

npm install inc-one -g

Usage

> inc-one [FLAGS] [DIRECTORY | CONFIG_FILE]
> inc-one COMMAND

Calling inc-one without any parameter will make the program search for a one.json config file into your directory. If the config file is not found, it will search on parent directory and so on.

You can specify a directory in which inc-one will search for the one.json config file or a path to the config file itself (which can then be named as you want as long as it is a .json).

flags

  • +minify disable output minification
  • +mangle disable output name mangling
  • +ascii disable output unicode characters escaping

commands

  • clean remove output file
  • help print usage

How it works

The main aim of inc-one is to allow user to include files content into anothers. It simplies development when you want a single file output (like a library) made of multiple ones. It works for both javascript and typescript files. Here's an example.

file_1.js

function	my_function() {
	console.log("my function !");
}

main.js

// include file_1.js
{{ "file_1.js" }}

my_function();

Running inc-one will replace the {{ "file_1.js" }} by it's content into main.js.

output.js

// include file_1.js
function	my_function() {
	console.log("my function !");
}

my_function();

Of course, included file can also contain other files.

one.json

To tell inc-one how to handle your project, you need to provide a simple one.json file.

one.json example

{
	"main": "src/main.js",
	"output": "output.js",
	"minify": true,
	"mangle": true
}

main defines which file is your main file. This file will include other files (which can then include other ones etc.). The output will be based on this file.

output defines the output file path.

Options

Other values can be added to the inc-one.json file.

  • minify: activate or not minification (default to true)
  • mangle: activate or not minification names "mangling" (default to true)
  • ascii: unicode characters are escaped (default to true)

Typescript

If you are working in typescript, you must specify your output as a .ts file. inc-one will then build the typescript file, call tsc to compile it into the corresponding .js file and minify it (if enabled).