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 🙏

© 2024 – Pkg Stats / Ryan Hefner

express-ease

v1.0.9

Published

Create restful api project out of the box

Downloads

98

Readme

Express Ease

Express Ease is a package that allows users to quickly set up an Express application using either JavaScript or TypeScript. It includes built-in templates for both languages and comes pre-configured with essential features like testing and a ready-to-use build environment.

Features

  • JavaScript or TypeScript templates: Choose between JavaScript (ES6) or TypeScript for your Express application.
  • Integrated testing setup: Unit testing environment is pre-configured for immediate use.
  • Ready-to-build: Easily create a production-ready build of your application.
  • Help command: Display help information about the package and its usage.

Installation

You can install Express Ease globally to use it from the command line:

npm install -g express-ease

Usage

To create a new Express application, you can use either interactive prompts or command-line arguments.

Interactive Prompts

Run the following command and follow the prompts:

npx express-ease my-express-app

Command-Line Arguments

Alternatively, you can specify the template and project name directly using command-line arguments:

npx express-ease create -t [javascript|typescript] -n my-express-app

or

npx express-ease create --template [javascript|typescript] --name my-express-app

Help Command

To display help information about the package and its usage, run:

npx express-ease -h

or

npx express-ease --help

This command will provide a brief overview of the available commands and options.

Getting Started

Once your application is created, navigate to its directory and start the development server:

cd my-express-app
npm install  # Install dependencies
npm run dev  # Start the development server

For both templates, you can run this command to get the production code:

npm run build  # Create production build
npm start      # Start the production server

Structure

The basic structure of the generated project will look like this:

my-express-app/
├── src/
│   ├── controllers/
│   │   └── ...
│   ├── routes/
│   │   └── ...
│   ├── middlewares/
│   │   └── ...
│   ├── utils/
│   │   └── utils.js (or utils.ts for TypeScript)
│   │   └── ...
│   ├── app.js (or app.ts for TypeScript)
│   └── server.js (or server.ts for TypeScript)
├── .gitignore
├── package.json
└── README.md

Scripts

  • npm start: Starts the production server.
  • npm run dev: Starts the development server.
  • npm run build: Creates a production build.
  • npm test: Runs the tests.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your suggested improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.