# slakscript

> slaklang client side script compiler

Latest version **1.0.1** (published 2022-07-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install slakscript
pnpm add slakscript
yarn add slakscript
bun add slakscript
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-07-15 |
| First published | 2022-07-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 117 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | damian288 |

## Links

- npm: https://www.npmjs.com/package/slakscript
- npm.io page: https://npm.io/package/slakscript

## Dependencies (1)

- [express](https://npm.io/package/express.md) ^4.18.1

## Recent versions

- 1.0.1 (latest) — 2022-07-15
- 1.0.0 — 2022-07-15

## README

# slakscript
slakscript is a front end script for my other module slakLang, is has the same english santax, and is very easy to use , replacing math santax with simple words
# how to use slakscript
install :
```js
npm i slakscript
```
on your server :
```js
const express = require("express")
const app = express()
const slakscript = require("slakscript")
app.use(slakscript)
app.use("/",express.static("public"))
app.listen(2020)
```

# on your html files :
```html
<script type="text/javascript" src="/slakscript.js" async></script>
<!-- and to use slakscript -->
<script type="text/slakscript">
number is 1
if(number bigger than 5){
  console.log("number is bigger than 10")
}else if(number smaller than 5){
  console.log("number is smaller than 5")
}
</script>
```
# i made is also posible to combine this with coffeescript, and this was my result :
```html
<!DOCTYPE html>
<script type="text/javascript" src="slakscript.js" async></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/coffee-script/1.7.1/coffee-script.min.js" defer></script>
<script type="text/slakscript" src="coffee">
number is 1
if number bigger than 5
  console.log "number is bigger than 10"
elseif number smaller than 5
  console.log "number is smaller than 5"

</script>
```
the script looks almost english right?
# for more info visit
<a href="https://www.npmjs.com/package/slaklang" target="_blank">npm slaklang</a>

---
_Source: https://npm.io/package/slakscript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
