runtime-autocomplete

0.0.2 • Public • Published

Runtime Autocomplete Endpoint

(intended for browser-based brackets usage)

This express route handler replies with JSON of REPL-tab-like property suggestions for an empty or incomplete line of code passed in as if it were in the context of the live app. This allows suggestions of properties assigned at runtime.

Though properties are only checked and code is never executed, this should only be used in dev, never production environments.

Usage

express.Router()
//add your routes
.get("/repl",require("runtime-autocomplete")({
    ,log:console.log// what to log with (pass ()=>{} to silence)
}))

Package Sidebar

Install

npm i runtime-autocomplete

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jnvm