Skip to main content
Home

Core Splitscript.js library with event emitter and a CLI

This package works with Node.jsIt is unknown whether this package works with Cloudflare Workers, Deno, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
JSR Score
94%
Published
a year ago (3.0.1)

Core Splitscript.js library with event emitter and a CLI

install size downloads

docs

About

Splitscript.js is the everything framework

This package has a CLI for easily creating event listeners, and has a dev mode for adding boilerplate code automatically It also has an event emitter for creating other packages, like @splitscript.js/discord

Install

$ npm i @splitscript.js/core

Dev mode

Run splitscript dev <file/folder> to add boilerplate in new listeners in the functions folder

If a file/folder is provided, splitscript will build the files in the folder, or the folder the file is in and then run that.

If its a folder, it will default to index.ts/.js depending on the type of project, or to the "main" set in ss.json

To set the out folder, set dev in ss.json

Build

You can build a project using the command splitscript build <folder>

To set the build folder, set build in ss.json

Other packages

@splitscript.js/discord

v2.2.2 | by ultraviolet

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@splitscript/core

Import symbol

import * as core from "@splitscript/core";
or

Import directly with a jsr specifier

import * as core from "jsr:@splitscript/core";

Add Package

pnpm i jsr:@splitscript/core
or (using pnpm 10.8 or older)
pnpm dlx jsr add @splitscript/core

Import symbol

import * as core from "@splitscript/core";

Add Package

yarn add jsr:@splitscript/core
or (using Yarn 4.8 or older)
yarn dlx jsr add @splitscript/core

Import symbol

import * as core from "@splitscript/core";

Add Package

vlt install jsr:@splitscript/core

Import symbol

import * as core from "@splitscript/core";

Add Package

npx jsr add @splitscript/core

Import symbol

import * as core from "@splitscript/core";

Add Package

bunx jsr add @splitscript/core

Import symbol

import * as core from "@splitscript/core";