Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
A fast and tiny CLI tool to easily spin up a hot reload http server on the current directory
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 root directory where to serve files from.
-p, --port port to run server on.
-l, --livePort port to run livereload on.
-h, --help display this help
I chose Rollup to handle the transpiling, compression, and any other transformations needed to get your 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 9 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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.