Skip to main content
Home

latest

Typescript actions for the Clickscript visual programming language.

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
10 months ago (0.0.2)

@clickscript/actions

Typescript actions for the Clickscript visual programming language.

Installation

Install via JSR:

npx jsr install @clickscript/actions

Overview

This package provides various actions that can be used in the Clickscript visual programming language. It supports Node.js and Deno environments.

Actions

  • call: Calls an API using fetch.
  • condition: Determines if a condition passes and runs the subsequent action if true.
  • func: Sets a function to be run at another time.
  • kill: Throws an error.
  • log: Logs messages to the console.
  • repeat: Loops through actions based on the number of children.
  • set: Sets a variable or constant globally.
  • text: Performs various text operations.

Usage

Import the desired action and use it within your project like any package:

import { call, log } from '@clickscript/actions';

log('Hello, world!');
call({ url: 'https://api.example.com/data' });

Documentation

For detailed API documentation, visit the official docs.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@clickscript/actions

Import symbol

import * as actions from "@clickscript/actions";
or

Import directly with a jsr specifier

import * as actions from "jsr:@clickscript/actions";

Add Package

pnpm i jsr:@clickscript/actions
or (using pnpm 10.8 or older)
pnpm dlx jsr add @clickscript/actions

Import symbol

import * as actions from "@clickscript/actions";

Add Package

yarn add jsr:@clickscript/actions
or (using Yarn 4.8 or older)
yarn dlx jsr add @clickscript/actions

Import symbol

import * as actions from "@clickscript/actions";

Add Package

npx jsr add @clickscript/actions

Import symbol

import * as actions from "@clickscript/actions";

Add Package

bunx jsr add @clickscript/actions

Import symbol

import * as actions from "@clickscript/actions";