
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
starlight-cli
Advanced tools
Welcome to Starlight Language, a simple and expressive server-side scripting programming language designed for clarity and flexibility.
This guide introduces the core concepts and syntax to help you start writing programs quickly.
sldeploy "Hello, world!"
Variables are declared using the define keyword.
define name = "Alice"
define age = 20
| Type | Example |
|---|---|
| Number | 10, 3.14 |
| String | "hello" |
| Boolean | true, false |
| Array | [1, 2, 3] |
| Object | { "a": 1, "b": 2 } |
| Null | null |
Use sldeploy to print values:
sldeploy name
sldeploy age
Use ask to read user input:
define name = ask("Enter your name:")
sldeploy "Hello " + name
| Operator | Description |
|---|---|
+ | Addition |
- | Subtraction |
* | Multiplication |
/ | Division |
% | Modulus |
Example:
define result = 10 + 5 * 2
| Operator | Description |
|---|---|
== | Equal |
!= | Not equal |
< | Less than |
<= | Less than or equal |
> | Greater than |
>= | Greater than or equal |
| Operator | Description |
|---|---|
AND | Logical AND |
OR | Logical OR |
?? | Null coalescing |
Example:
define x = null ?? 10
if (age > 18) {
sldeploy "Adult"
} else {
sldeploy "Minor"
}
define i = 0
while (i < 5) {
sldeploy i
i = i + 1
}
for (define i = 0; i < 5; i = i + 1) {
sldeploy i
}
define arr = [10, 20, 30]
for x in arr {
sldeploy x
}
func add(a, b) {
return a + b
}
define result = add(2, 3)
sldeploy result
define add = (a, b) => a + b
define arr = [1, 2, 3]
sldeploy arr[0]
| Function | Description |
|---|---|
push | Add element |
pop | Remove last element |
push(arr, 4)
pop(arr)
define user = {
"name": "Alice",
"age": 20
}
sldeploy user.name
define arr = [1, 2, 3, 4, 5]
sldeploy arr[1:4]
sldeploy arr[0:5:2]
| Format | Description |
|---|---|
[start:end] | Basic slicing |
[start:end:step] | Step-based slicing |
do {
define x = y
} track {
sldeploy "Error occurred"
}
import math from "math"
| Type | Description |
|---|---|
.sl files | Local modules |
| Node.js modules | External dependencies |
Examples:
len([1,2,3])
upper("hello")
random(1, 10)
| Category | Examples |
|---|---|
| String | upper, lower |
| Array | push, pop |
| Math | random |
| Utility | len |
define data = await get("https://api.example.com")
sldeploy data
func Person(name) {
this.name = name
}
define p = new Person("Alice")
sldeploy p.name
# This is a comment
| Behavior | Description |
|---|---|
| Undefined values | Treated as null |
| Function return | Defaults to null if unspecified |
| Data structures | Dynamic (arrays and objects) |
| Error reporting | Includes line and column details |
starlight language, scripting language, programming language tutorial, interpreter language, CLI scripting, custom language design
FAQs
Starlight Programming Language CLI
The npm package starlight-cli receives a total of 128 weekly downloads. As such, starlight-cli popularity was classified as not popular.
We found that starlight-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.