1.3.2 β€’ Published 8 months ago

crosis v1.3.2

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
8 months ago

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.

1.3.2

8 months ago

1.3.1

8 months ago

1.3.0

8 months ago

1.2.11

8 months ago

1.2.10

8 months ago

1.2.9

8 months ago

1.2.8

8 months ago

1.2.7

10 months ago

1.2.6

10 months ago

1.2.5

10 months ago

1.2.4

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.7

10 months ago

1.1.6

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago