New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

localhost

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localhost

Http static file server

latest
Source
npmnpm
Version
0.4.1
Version published
Weekly downloads
86
10.26%
Maintainers
1
Weekly downloads
 
Created
Source

localhost

Static file server which returns files regardless of the header method - unlike popular others.

Embed within a NodeJS script

npm install localhost --save-dev
import localhost from 'localhost';
localhost('./').listen(port);

Save globally and run as an executable

localhost [directory] [-p portNumber|8080]

npm install -g localhost
cd ./www/
localhost

Run using npx

cd ./www/
npx localhost

FAQs

Package last updated on 11 May 2022

Did you know?

Socket

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.

Install

Related posts