1.2.0 • Published 6 years ago

es6isch v1.2.0

Weekly downloads
2
License
AFL-2.0
Repository
github
Last release
6 years ago

Rewrite CommonJS to browser-compatible ES2015 imports on the fly

es6isch

Build Status

Install

npm install es6isch

CLI

$ es6isch --help
Options:
  --help              Show help                                        [boolean]
  --version           Show version number                              [boolean]
  --port, -p          port of the server                         [default: 3000]
  --listen-addr, -l   listen addr                         [default: "localhost"]
  --html-base, -h     path to html base which should es6isch served
                              [default: "$HOME/Software/es6isch"]
  --root-base, -r     path to package base which should es6isch served
                              [default: "$HOME/Software/es6isch"]
  --node-modules, -m  path to node_modules base which should es6isch served
                 [default: "$HOME/oftware/es6isch/node_modules"]

CLI Example

echo '{"name": "es6isch-example", "version": "1.0.0"}' > package.json
yarn add es6isch react
echo "<body><script type="module">import React from '/node_modules/react'; console.log(React)</script></body>" > index.html
yarn es6isch # open browser on localhost:3000

API Example

const express = require("express");

const app = express();

app.use('/', app(Vfs.from({
  rootAbsBase: './test/projectBase/packages/api',
  es6ischBase: '/'
})));

License

es6isch is released under the Apache License 2.0

1.2.0

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2-a

6 years ago

1.0.2

6 years ago

1.0.1-a

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago