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

tzed-cli

v1.0.1

Published

A package for a cli, which should save everyday work.

Readme

tzed-cli

A package for a cli, which should save everyday work.

Getting Started

Installation

This command installs tzed-cli globally.

npm i tzed-cli -g

Available Commands

init

Description:

This command creates your tzedconfig.json in your root folder for further configurations.

Constructions:

Navigate to your root folder of your project and insert in your command-line:

tzed init

swagger

Description:

This command automatically creates all available REST APIs from the swagger URLs specified in tzedconfig.json.

Constructions:

Prepare your tzedconfig.json with your swagger URLs and call following command:

tzed swagger
Example:
{
	"rootDir": "./",
	"outDir": "./dist",
	"sharedDir": "./dist/shared",
	"swaggerUrls": [
		"https://petstore.swagger.io/v2/swagger.json"
	]
}
  • rootDir: Root directory of the project.
  • outDir: Directory in which the swagger files should be stored
  • sharedDir: Directory in which the shared files for swagger should be stored
  • swaggerUrls: All JSON swagger URLs whose API files should be automatically produced

Create simple express app with swagger cli command

  1. Create project folder
  2. npm init
  3. tzed init
  4. Edit your tzedconfig.json and add your JSON Swagger URLs
  5. tzed swagger
  6. Add index.ts file to your specified "outDir":

index.ts:

import express from 'express';
import { init as globalInitRoutes } from './globalInitRoutes';

const app: express.Express = express();
const port: number = 3000;

app.get('/', (req, res) => res.send('Hello World!'));

globalInitRoutes(app, '/api');

app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`));
  1. Install missing dependencies:
npm i express && npm i glob && npm i axios && npm i --save-dev @types/express && npm i --save-dev @types/glob && npm i --save-dev tslib && npm i --save-dev rimraf
  1. Add tsconfig.json in your root directory:

tsconfig.json:

{
	"compilerOptions": {
		"baseUrl": "./",
		"outDir": "./bin/www",
		"sourceMap": true,
		"inlineSources": true,
		"strict": true,
		"forceConsistentCasingInFileNames": true,
		"esModuleInterop": true,
		"noImplicitReturns": true,
		"noFallthroughCasesInSwitch": true,
		"declaration": false,
		"downlevelIteration": true,
		"experimentalDecorators": true,
		"emitDecoratorMetadata": true,
		"moduleResolution": "node",
		"importHelpers": true,
		"target": "es5",
		"module": "commonjs",
		"lib": [
			"es2015",
			"dom"
		],
		"allowSyntheticDefaultImports": true
	}
}
  1. Update your scripts in your package.json:

package.json:

{
	"name": "test-tzed-cli",
	"version": "1.0.0",
	"description": "",
	"scripts": {
		"start": "npm run build && node ./bin/www/index.js",
		"build": "npm run clean && npm run transpile",
		"transpile": "tsc -p ./tsconfig.json",
		"clean": "rimraf ./bin"
	},
	"author": "",
	"license": "ISC",
	"dependencies": {
		"axios": "^0.21.1",
		"express": "^4.17.1",
		"glob": "^7.1.7"
	},
	"devDependencies": {
		"@types/express": "^4.17.13",
		"@types/glob": "^7.1.4",
		"rimraf": "^3.0.2",
		"tslib": "^2.3.0"
	}
}
  1. npm run start
  2. Browse to your swagger API URL: Example http://localhost:3000/api/v2/pet/1

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT