@kano/es6-server

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @kano/es6-server

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

4.94 kB

Total Files

7

Last publish

Collaborators

  • thefijimonster
  • dianlin61
  • jacobmorgan99
  • alexnklein
  • ellenw3lsh
  • camuskano
  • alexfiennes
  • kanocomputing
  • jamie_old_plantain