JSPM

vantage-es6-contextified-repl

1.6.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 46
  • Score
    100M100P100Q45772F
  • License MIT

Contextified REPL module for Vantage with ES6 support

Package Exports

  • vantage-es6-contextified-repl

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vantage-es6-contextified-repl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Vantage REPL - ES6 & Context

Build Status code coverage code style styled with prettier made with lass license

Table of Contents

Install

npm:

npm install vantage-es6-contextified-repl

yarn:

yarn add vantage-es6-contextified-repl

Usage

import Vantage from 'vantage'
import repl from 'vantage-es6-contextified-repl'

const vantage = Vantage()
  .delimiter('awesome-server$')
  .use(repl, { mode: 'awesome-repl', delimiter: 'repl$$', context: { app: app, db: db }})
  .listen(80)
  .show()
user$ vantage my.server.com:8080
awesome-server$ awesome-repl
awesome-server$ repl$$ await db.users.find()
[
  { id: 1, name: 'John Doe' },
  { id: 2, name: 'Jane Doe' }
]
awesome-server$ repl$$ await Promise.all([db.users.findOne(2), db.users.findOne(1)])
[
  { id: 2, name: 'Jane Doe' },
  { id: 1, name: 'John Doe' }
]

Contributors

Name
Victor Rebiard--Crépin

License

MIT © Victor Rebiard--Crépin