Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cairo-ls

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cairo-ls

Cairo Language Server

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by350%
Maintainers
1
Weekly downloads
 
Created
Source

Cairo Language Server

Code assistance for writing Cairo smart contracts for StarkNet.

Works with any IDE or text editor that supports the Language Server Protocol.

Note: This is an early preview release and is still in active development.

Features

  • Compiler support for .cairo files
  • Live diagnostic highlighting for compile errors
  • Quick fixes with suggestions provided by Cairo/StarkNet compiler
  • Go to definitions for imports
  • Code completion for imports

IDE support

VS Code

Cairo language support extension

Vim

Vim setup instructions

How to use with other IDEs

  1. In an empty directory, run the following to install the language server:
npm install cairo-ls
  1. Configure a language client for your IDE to launch the language server with the following command (replace YOUR_DIRECTORY with the directory where you ran the command in step 1):
node YOUR_DIRECTORY/cairo-ls/node_modules/cairo-ls/out/server.js --stdio
  1. Install Nile by following its Getting started steps, or follow the Cairo environment setup steps.
  2. Open a .cairo file in your IDE or text editor.

FAQs

Package last updated on 09 Sep 2022

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