-
Notifications
You must be signed in to change notification settings - Fork 2
First Slim project
MotionCode Dev edited this page Jul 12, 2026
·
1 revision
Slim is a extension built that compiles to pure JavaScript
Now that we've got that figured out, let's create our first project using it!
Create a folder and copy the contents of this repository into it. You can do this manually by downloading the ZIP file, or using Git:
git clone https://github.com/cdmtn-dev/Slim-Language.git
After that, if you don't already have Node.js installed, install it using this link (Node.js 14+)
After successful installation, you'll need to create a slimconfig.json file:
{
"main": "local/index"
}As you can see, in main you have a path to a file that ends with .slim. Create it wherever you like: you can create a folder or place it directly in the project root. Here's an example of a minimal working .slim file:
log("Hello, world!")All you have to do is run the command to compile and run Slim:
npm run slim