1.2.2 • Published 1 year ago

crosis4furrets v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm.io

Crosis4Furrets

An abstraction layer on top of @replit/crosis that makes Repl connection management and operations so easy, a Furret could do it! :tada:

The latest version of crosis4furrets@1.3.0-beta.* is bleeding edge, it is recommended you use crosis4furrets@1.2.x for your projects.

Install

# with NPM
$ npm install crosis4furrets@1.2.x

# with Yarn
$ yarn add crosis4furrets@1.2.x

Usage

Main API

import { Client } from 'crosis4furrets';
const client = new Client({
  token: process.env.REPLIT_TOKEN,
  replId: process.env.REPLIT_REPL_ID,
});

which returns a <Client>. See DOCUMENTATION.md for docs on how to use Crosis4Furrets.

Example

import { Client } from 'crosis4furrets';

const client = new Client({
  token: process.env.REPLIT_TOKEN,
  replId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
});

await client.connect();
console.log('Read:\n', await client.read('index.js', 'utf-8'));

Access Keys

Run the following command in your Repl to get its Repl ID:

$ echo $REPL_ID

or alternatively make a GraphQL Request with the following query:

query ReplID ($url: String) {
  repl(url: $url) {
    ...on Repl { id }
  }
}
{
  "url": "/@<username>/<repl_slug>"
}

To get a Replit Token, you can visit this Repl.

Contributing

This project is in active development and we would love some :sparkles: fabulous :sparkles: contributions! To get started, visit our Contributing documentation.

Licensing

This project is licensed under the MIT License. For more information, see LICENSE.

1.3.0-beta.16

1 year ago

1.3.0-beta.17

1 year ago

1.3.0-beta.18

1 year ago

1.3.0-beta.10

1 year ago

1.3.0-beta.11

1 year ago

1.3.0-beta.12

1 year ago

1.3.0-beta.13

1 year ago

1.3.0-beta.14

1 year ago

1.3.0-beta.15

1 year ago

1.3.0-beta.7

1 year ago

1.3.0-beta.8

1 year ago

1.3.0-beta.9

1 year ago

1.3.0-beta.1

1 year ago

1.3.0-beta.2

1 year ago

1.3.0-beta.3

1 year ago

1.3.0-beta.4

1 year ago

1.3.0-beta.5

1 year ago

1.3.0-beta.6

1 year ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.1-beta.8

2 years ago

1.2.2

2 years ago

1.1.3

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

0.0.1-beta.7

2 years ago

0.0.1-beta.6

2 years ago

0.0.1-beta.5

3 years ago

0.0.1-beta.4

3 years ago

0.0.1-beta.3

3 years ago

0.0.1-beta.2

3 years ago

0.0.1-beta.1

3 years ago