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

crosis

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crosis

Crosis done just right

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

crosis banner

npm npm

crosis is a NPM package that allows you to programmatically interact with your Replit Repl. Our goal is to make this process as easy and simple as possible.

🔥Features

  • 📄 File manipulation
  • 📁 Folder manipulation
  • 📠 Command execution
  • 📲 Easy log in process
  • 🚀 Performance

Installation & Usage

Install the package by running npm install crosis. You can use the package in both CommonJS and ESM.

Example

// Import the crosis package

// CommonJS
const { Crosis } = require("crosis");

// OR

// ESM
import { Crosis } from "crosis";

// Create a Crosis object

// You can connect to a Replit repl using the adapterReplit() function
const crosis = new Crosis({
  adapter: adapterReplit({
    replId: YOUR_REPL_ID,
    sid: YOUR_REPLIT_SID,
  }),
});

// You can also specify a goval url
const crosis = new Crosis({
  url: "your goval url",
});

// Connect crosis
crosis.connect().then(async () => {
  console.log("Crosis connected");

  // Read files of repl
  const files = await crosis.readDir(".");

  // List files
  files.forEach((file) => {
    console.log(file);
  });

  // Disconnect crosis at the end of the script
  // Terminating or ending the script will also disconnect crosis
  await crosis.disconnect();
});

Contributing

Contributions are always welcome! If you want to contribute, feel free to open a pull request.

License

The crosis package is licensed under the AGPL-3.0 License. See LICENSE for more information.

Keywords

FAQs

Package last updated on 10 Sep 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