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

google-cast-launcher

v0.1.6

Published

google-cast-launcher

Downloads

9

Readme

Matterhorn 🏔

An API Boilerplate project built with Node.js and Typescript.

Quick Start

  1. 🍴 Fork the repository
  2. 👯‍♀️ Clone it to your computer 
  3. 🏃‍♀️ Run npm run install && npm run dev
  4. 📝 Edit any of the files in src/
  5. 👀 Watch as the app magically rebuilds and relaunches itself

Scripts

The following npm scripts can be run using npm run <script>. This project relies on opn and rimraf utilities in order to support cross-platform opening and deleting files.

  • build - build the TypeScript files and output to lib/
  • build:watch - automatically rebuild files if changes are detected in src/
  • clean - recursively delete the lib/ and coverage/ directories
  • clean:build - recursively delete the lib/ directory
  • clean:coverage - recursively delete the coverage/ directory
  • coverage - run the test suite and generate code coverage reports
  • coverage:open - run npm run coverage then open the results in a browser
  • dev - concurrently run build:watch and start:watch 
  • lint - run the linter configured by TSLint on the src/ directory
  • start - run the app from lib/. Make sure to use npm run build first!
  • start:watch - relaunch the server if new changes are detected in lib/ 
  • test - run unit tests defined in the tests/ directory
  • test:ci - run unit tests and generate necessary files for CI integration

Command Line Arguments & Environment Variables

Matterhorn implements example usage of both command line arguments and environment variables. It uses yargs-parser to manage command line arguments. Command line arguments are passed in through the start command: node lib/index.js <command line arguments>. The --log argument has been enabled as an example. Running npm run start starts up the project without any command line arguments. This command is intended to be used in production, so logging is disabled by default (i.e. we don't pass the --log argument). If you are using this command to test your code locally and want to see the logging output, then run npm run start -- --log. This passes the command line argument through npm and into the aliased command.

Environment variables work in a similar way to command line arguments. They can be set in multiple ways depending on the terminal and operating system you are using. In a bash terminal you can specify environment variables as you use any of the above mentioned scripts by prepending the assignment to the command. For example, this project has the PORT environment variable enabled. In a bash terminal run PORT=8080 npm run start to run the API on port 8080.

Contributing

Open an issue if you'd like to report a bug or a feature. Make sure to write a detailed description and indicate if you will or will not be resolving the issue yourself.

If you are interested in contributing make sure to follow these practices:

  • Prepend branches with fix/, feature/, or docs/ depending on the change being made
  • NPM commands test, lint, and build run without failing.
  • If you are solving an open issue, reference it in the Pull Request description using Ref #<issue number>.

Jest

Matterhorn has a unique Jest set up. Under the jest/ directory there are three configuration files ci.config.json, coverage.config.json, and test.config.json. Each configuration file maps to a specific jest experience.

npm run test

Runs jest with the test.config.json configuration. This configuration does not collect any code coverage.

npm run coverage

Runs jest with the coverage.config.json configuration. It runs the same test suite as npm run test and collects coverage from all files under the src/ directory. It outputs the coverage information in the following formats: json, text, lcov, and html. It does not rely on any external reporter dependencies.

npm run test:ci

Runs jest with the ci.config.json configuration. It runs the same test suite as npm run test and collects coverage similar to the npm run coverage command, but utilizes jest's built in ci caching functionality. Additionally, it outputs the coverage in the following formats: html, json, and cobertura. It utilizes jest-junit reporter to generate compatible junit xml files for Azure DevOps test reporting, and the cobertura format for the code coverage reporting.

Maintainers

🦉 Ethan Arrowood Original Author - Follow on: Twitter @ArrowoodTech & GitHub @Ethan-Arrowood

🚀 Alyssa Cooper Maintainer - Follow on: Twitter @ayecoops & GitHub @Alyssa-Cooper

Integration Statuses

Build Status Greenkeeper badge