JSPM

@prism-lang/cli

1.2.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q36598F
  • License MIT

Command-line interface for Prism language

Package Exports

  • @prism-lang/cli
  • @prism-lang/cli/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@prism-lang/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@prism-lang/cli

Command-line interface for the Prism programming language.

📚 Full Documentation | 🚀 Getting Started | 💻 CLI Guide

Installation

# Install globally
npm install -g @prism-lang/cli

# Or use with npx
npx @prism-lang/cli

Usage

Run a Prism file

prism run myfile.prism

Start the REPL

prism repl

Execute inline code

prism eval "x = 5 ~> 0.9; print(x)"

Check version

prism --version

Features

  • Run Prism files: Execute .prism files from the command line
  • Interactive REPL: Explore Prism interactively with confidence tracking
  • Inline evaluation: Quick one-liners for testing
  • LLM Integration: Built-in support for AI providers when configured

Configuration

Set up LLM providers with environment variables:

# Anthropic Claude
export CLAUDE_API_KEY=your-key

# Google Gemini
export GEMINI_API_KEY=your-key

Examples

# Run a file with AI safety checks
prism run safety-check.prism

# Start REPL with confidence tracking
prism repl

# Quick calculation with uncertainty
prism eval "temp = 72 ~> 0.95; print('Temperature:', temp)"

License

MIT