New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lang-clojure-eval

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lang-clojure-eval

Lezer-based Clojure Codemirror 6 extension with live evaluation

  • 0.0.29
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

lang-clojure-eval NPM version

A Codemirror 6 language extension based on the Lezer Clojure parser, with inline-evaluation support via the Small Clojure Interpreter (SCI).

API Reference

clojure() → LanguageSupport

Clojure language support including evaluation.

clojureLanguage: LRLanguage

A language provider based on the Lezer Clojure parser, extended with highlighting and indentation information.

evalExtension: Extension

Inline-evaluation support via the Small Clojure Interpreter

Java interop

Since many commonly used Java methods are not accessible because we are in a JavaScript environment, a limited subset have been ported into Clojure for compatibility. If you'd like to use one that has not been ported, please file an issue and we'll see what we can do.

Status

Alpha. Certainly contains bugs. There is a live demo running which is continuously built from the main branch.

  • ✅ Implement Lezer parser
  • ✅ Hook up Clojure interpreter
  • ✅ Eval-cell
  • ✅ Eval-at-cursor
  • ✅ Eval top-level form
  • ✅ Display results inline
  • ✅ Implement clear-events
  • Publish to npm
  • ✅ Create test suite
  • ✅ Test published package
  • ✅ Handle errors
  • ✅ Pretty-print eval result
  • ✅ Truncate very long eval result
  • ✅ Handle infinite loops

Run demo locally

npm install
npm run dev

Dev

To compile sci.js from the Clojurescript source:

npx shadow-cljs release sci

Credits

FAQs

Package last updated on 13 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc