adonisjs / repl Goto Github PK
View Code? Open in Web Editor NEWFramework Agnostic REPL For Node.js. Used by AdonisJS
Home Page: https://docs.adonisjs.com/guides/repl
License: MIT License
Framework Agnostic REPL For Node.js. Used by AdonisJS
Home Page: https://docs.adonisjs.com/guides/repl
License: MIT License
Hey! ๐
I'm the maintainer of parse-imports
. I'm going to publish v1.0.0 soon and migrate to ESM-only (i.e. "type": "module"
) without publishing a CJS version of the package.
I noticed that your package accounts for most usage of parse-imports
, but also that it does not specify "type": "module"
, so you would encounter some issues if you try to upgrade. You have a few options:
parse-imports
instead of require
(you can't require
ESM modules)parse-imports
normally)I would recommend eventually getting to 3 because that's the direction the ecosystem is moving.
Anyways, just thought I'd give you a heads up! Feel free to close this issue after you read it
The current implementation of the REPL server does not permit alterations to the default prompt or redirection of input and output, as observed in the existing codebase:
Lines 363 to 376 in 5951b78
To enhance flexibility and user control, I propose the introduction of a functionality that allows users to override the options supplied to the Node.js startRepl
method. The proposed change is illustrated below:
start(options) {
console.log('')
this.notify('Type ".ls" to a view list of available context methods/properties')
this.server = startRepl({
prompt: `> ${this.#compiler?.supportsTypescript ? '(ts) ' : '(js) '}`,
input: process.stdin,
output: process.stdout,
terminal: process.stdout.isTTY && !Number.parseInt(process.env.NODE_NO_READLINE!, 10),
useGlobal: true,
...options,
})
This modification would grant users greater control over the REPL environment. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.