Skip to content

An express route function that returns property options as if tabbed on a REPL for a given line of code.

Notifications You must be signed in to change notification settings

jnvm/runtime-autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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)
}))

About

An express route function that returns property options as if tabbed on a REPL for a given line of code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published