Last 12 weeks · 0 commits
2 of 6 standards met
Repository: Rich-Harris/lit-node. Description: Self-documenting Node scripts through literate programming Stars: 76, Forks: 3. Primary language: JavaScript. Languages: JavaScript (100%). Open PRs: 0, open issues: 3. Last activity: 7y ago. Community health: 42%. Top contributors: Rich-Harris, vijithassar.
Currently relies on , which is both deprecated and tied to the legacy CommonJS module format. Now that ES modules are the standard instead, what's the best way to support them in ?
By loading lit-node as a module instead of via a special interpreter or REPL, it becomes possible to do literate programming in Markdown using standard Node commands. However, as originally designed, lit-node also transparently wraps imported modules in an async function, which is convenient but also subtly changes the runtime behavior in a way that will be quite unexpected for users who are running lit-node as a module using the regular interpreter. Perhaps this behavior should be removed in pursuit of consistency.