Skip to main content
Works with
JSR Score
47%
Published
2 months ago (0.0.0)

FunctionalScript

FunctionalScript is a purely functional programming language and a strict subset of ECMAScript/JavaScript. It's inspired by

A brief description of FunctionalScript Programming Language.

Create a new FunctionalScript repository on GitHub here.

Learn more about

Design Principles

In FunctionalScript:

  • Any module is a valid JavaScript module. No additional build steps are required.
  • Code should not have side-effects. Any JavaScript statement, expression, or function that has a side effect is not allowed in FunctionalScript. There are no exceptions to this rule, such as unsafe code, which can be found in Rust, C#, and other languages.
  • A module can depend only on another FunctionalScript module.
  • It also has no standard library. Only a safe subset of standard JavaScript API can be used without referencing other modules.

Applications

FunctionalScript code can be used:

  • in any JavaScript/TypeScript application,
  • as a JSON with expressions,
  • as a query language.

Sponsors

Add Package

deno add @functionalscript/functionalscript

Import symbol

import * as mod from "@functionalscript/functionalscript";

Add Package

npx jsr add @functionalscript/functionalscript

Import symbol

import * as mod from "@functionalscript/functionalscript";

Add Package

yarn dlx jsr add @functionalscript/functionalscript

Import symbol

import * as mod from "@functionalscript/functionalscript";

Add Package

pnpm dlx jsr add @functionalscript/functionalscript

Import symbol

import * as mod from "@functionalscript/functionalscript";

Add Package

bunx jsr add @functionalscript/functionalscript

Import symbol

import * as mod from "@functionalscript/functionalscript";