🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@kano/es6-server

Package Overview
Dependencies
Maintainers
14
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kano/es6-server

CLI built with connect to serve development files. Named modules in js and html files will be resolved against the `node_modules` directory and replaced with their relative path.

latest
npmnpm
Version
1.0.3
Version published
Maintainers
14
Created
Source

ES6 Server

CLI built with connect to serve development files. Named modules in js and html files will be resolved against the node_modules directory and replaced with their relative path.

Example:

In source file:

import { add } from 'math-lib/index.js';

Will be sent by this server as:

import { add } from './node_modules/math-lib/index.js';

If the module cannot be resolved, it will be left as is and the browser will throw an error about the named module.

Usage

es6-server # Serves the current directory on port 4000
es6-server ./subdir # Serves the provided directory on port 4000
es6-server --port 7000 # Serves the current directory on port 7000
es6-server --port 0 # Serves the current directory on a randomized port

FAQs

Package last updated on 29 Apr 2019

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