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

@khadga/create-base-ts

v1.0.3

Published

create-base-ts is an npm initializer that will create a basic typescript application. Additional parameters can be passed to further tailor what is needed.

Readme

create-base-ts

create-base-ts is an npm initializer that will create a basic typescript application. Additional parameters can be passed to further tailor what is needed.

At its most basic level, it will install typescript and ts-lint dev-dependencies, an Apache-2.0 license, src and test directories, and a basic tsconfig.json file.

You can run it like this:

npm init base-ts <name-of-project> [options]

Or alternatively with npx like this:

npx create-base-ts <name-of-project> [options]

After which you should see the following:

name-of-project
- /src
- /test
- /dist
- package.json
- tsconfig.json
- LICENSE

Options

There are a couple of options that you can pass to create-base-ts to make it more useful.

  • -r, --react will also add react, react-dom and @types definitions with webpack and dependencies
  • -p, --parcel will use parcel (Only useful if -r also selected. Uses webpack by default)
  • -d, --deps comma separated list of additional dependencies
  • --dev-deps comma separated list of dev-dependencies
  • --license <MIT, BSD-2, BSD-3> Defaults to Apache-2.0

react

Adding this option means that the latest version of react and react-dom will be added to the package.json file. In addition, webpack will be added as a dependency

Example:

npm init base-ts my-project -r

parcel

This option is only useful in conjunction with -r above, otherwise it is ignored. If this is set, then it will add parcel instead of webpack as a dependency

Example:

npm init base-ts my-project -rp

deps

You can pass additional dependencies here, either in a comma separated format, or multiple times. The latest version of the dependencies will be added to the package.json

Example:

npm init base-ts my-project -d rxjs -d ramda

# alternatively

npm init base-ts my-project -d rxjs,ramda

dev-deps

As deps above, but these dependencies will be added to the devDependencies field of the package.json.

Example:

npm init base-ts my-project --dev-dep ava --dev-dep @types/config

# alternatively

npm init base-ts my-project --dev-dep ava,@types/config

license

You can pass one of 3 different options: BSD-2, BSD-3 or MIT. The default is to use Apache-2.0. This will set the license field of the package.json, as well as include the appropriate LICENSE file.

Example:

npm init base-ts my-project -l MIT