<a href="#">

![](https://i.imgur.com/hffRwE2.png)

</a>

<div align="center">

Core Splitscript.js library with event emitter and a CLI

[![install size](https://packagephobia.com/badge?p=@splitscript.js/core)](https://packagephobia.com/result?p=@splitscript.js/core) [![downloads](https://img.shields.io/npm/dm/@splitscript.js/core?color=90ee90&style=flat-square)](https://www.npmjs.com/package/@splitscript.js/core)

<a href='https://splitscript.js.org/core' >

<img src='https://i.imgur.com/8PqPYu0.png' alt='docs' height='100px'>

</a>

</div>

## 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](https://www.npmjs.com/package/@splitscript.js/discord)

## Install

```bash
$ 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`](https://www.npmjs.com/package/@splitscript.js/discord)

<div align="center">

<sub><code>v3.1.0</code> | by [ultraviolet](https://github.com/ultravioletasdf)</sub>

</div>
