Welcome to Sprig 🌿 A Language Sprouting From NodeJS
Key features
A taste of Sprig
Basic example
const greet = (name) => `Hey {{name}}, welcome to Sprig 🌿`
// We can chain functions through the -> operator
// Note how if a function accepts one argument, we don't need to add ()
"friend"->greet->print // Hey friend, welcome to Sprig 🌿
greet("pal")->print() // Hey pal, welcome to Sprig 🌿
print(greet("buddy")) // Hey buddy, welcome to Sprig 🌿Leveraging NodeJS on the fly
Jump right in
Last updated