![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
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.
Install the package by running npm install crosis
.
You can use the package in both CommonJS and ESM.
// 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();
});
Contributions are always welcome! If you want to contribute, feel free to open a pull request.
The crosis package is licensed under the AGPL-3.0 License. See LICENSE for more information.
FAQs
Crosis done just right
We found that crosis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.