Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
fasthr
Advanced tools
Readme
This is a tiny (6.5kb) CLI tool that mixes together no-bs-typescript-server-boilerplate, fastify, and livereload to easily spin up a hot reload http server on the current directory.
Please consider:
With npx
you can use as a one-liner:
$ npx fasthr
Alternatively
Install globally:
$ npm install -g fasthr
then run:
# Start the server on the current directory on port 3000
$ fasthr
# Start the server on the current directory on port 8080
$ fasthr -p 8080
Run help trigger for more info:
$ fasthr -h
Usage:
node fasthr [OPTION]
Options:
-d, --dir=ARG root directory where to serve files from (default: current directory).
-p, --port=ARG port to run server on (default: 3000).
-a, --address=ARG address to run server on (default: 0.0.0.0).
-l, --livePort=ARG port to run livereload on (default: 35729).
-h, --help display this help
I chose Rollup to handle the transpiling, compression, and any other transformations needed to get this repo's Typescript code running as quickly and performant as possible.
yarn dev
Runs Rollup in watch mode which means it will hot-reload the server as you modify your source! This
includes running node with the --inspect
flag so you can inspect your code using Google Chrome Dev Tools
(by opening chrome://inspect
in your browser), you're welcome ;)
Yes, thank you! Projects like this thrive when they are community-driven.
Please update the docs and tests and add your name to the package.json
file on any PR you submit.
FAQs
A fast and tiny CLI tool to easily spin up a hot reload http server on the current directory
The npm package fasthr receives a total of 111 weekly downloads. As such, fasthr popularity was classified as not popular.
We found that fasthr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.