Safe and controlled language for scripting.

Overview

Retagged

Custom simplified language created for Aun.

Keep in mind this is mainly made for Aun and under heavy development.

Installation

Coming soon...

Usage

Setting up

const { Retagged } = require('retagged'); // Won't work yet...
const rTag = new Retagged();

Adding custom Categories and Tags

rTag.CreateCategory('Name', 'Testing category')
  .CreateTag('test', () => {
    return 'you are awesome';
  })

const StringMessage = 'I think that {{Name.test}}!';
rTag.Execute(StringMessage)
  .then((result) => {
    console.log(result);
    // Expected result:
    // I think that you are awesome!
  })

Working with invalid and escaped Tags

rTag.CreateCategory('Name', 'Testing category')
  .CreateTag('test', () => {
    return 'you are awesome';
  })

const StringMessage = `I think that {{Name.test}}!\n` +
  `And you can use \\{{Name.test}}.\n` +
  `And invalid tags won't work at all! {{Name.test2}}`;
rTag.Execute(StringMessage)
  .then((result) => {
    console.log(result);
    // Expected result:
    // I think that you are awesome!
    // And you can use \\{{Name.test}}.
    // And invalid tags won't work at all! {{Name.test2}}
  })

Working with parameters

rTag.CreateCategory('Math', 'Testing category')
  .CreateTag('max', (param1, param2) => {
    return Math.max(param1, param2);
  })

const StringMessage = `Higher number from 16 and 69 is {{Math.max 16,69}}.`;
rTag.Execute(StringMessage)
  .then((result) => {
    console.log(result);
    // Expected result:
    // Higher number from 16,69 is 69.
  })

You might also like...

A fully type-safe and lightweight internationalization library for all your TypeScript and JavaScript projects.

A fully type-safe and lightweight internationalization library for all your TypeScript and JavaScript projects.

🌍 typesafe-i18n A fully type-safe and lightweight internationalization library for all your TypeScript and JavaScript projects. Advantages đŸ€ lightwe

Jan 4, 2023

Please do not use this tracker to scam anyone! This is free and will be forever free. This tracking will never ask for seed phrases nor private keys. Keep safe!

CryptoBlades Tracker Related modules express - web application framework for node pug - template engine stylus - pre-processor CSS mongoose - nodejs o

Oct 13, 2022

A zero-dependency, buildless, terse, and type-safe way to write HTML in JavaScript.

hdot A sensible way to write HTML in JavaScript. Type-safe. Helps you follow the HTML spec. Terse. Almost character for character with plain HTML. Bui

Oct 24, 2022

Cloudy is a set of constructs for the AWS Cloud Development Kit that aim to improve the DX by providing a faster and type-safe code environment.

cloudy-ts These packages aren't yet published on npm. This is still highly experimental. Need to figure out a few things before releasing the first ve

Nov 3, 2022

Transpile TypeScript to Espruino flavor of JavaScript for ESP8266/ESP32 microcontrollers template project. Writing safe, maintainable, and testable code is the projects goal.

Transpile TypeScript to Espruino flavor of JavaScript for ESP8266/ESP32 microcontrollers template project. Writing safe, maintainable, and testable code is the projects goal.

ESP-TypeScript Transpile TypeScript to Espruino flavor of JavaScript for ESP8266/ESP32 microcontrollers template project. Writing safe, maintainable,

Dec 20, 2022

Denail of service system for the Dentistimo system. Used to improve the tolerance and testing fail safe functionality.

 Denail of service system for the Dentistimo system. Used to improve the tolerance and testing fail safe functionality.

Distributed Systems - Dos Testing DoS (Denail of Service) System for Testing and Practical demonstration of systems capability to handle a basic DDoS

Nov 8, 2022

A simple and safe template engine.

A simple and safe template engine.

TagScript A simple and safe template engine. Description TagScript is a drop in easy to use string interpreter that lets you provide users with ways o

Dec 31, 2022

A fast, safe and easy caching mechanism similar to Redis written in typescript

Viper Viper is a memory based caching mechanism which is aimed towards ease of use and speed. It's in a very early stage right now and not meant to us

Jan 24, 2022

A script that combines a folder of SVG files into a single sprites file and generates type definitions for safe usage.

remix-sprites-example A script that combines a folder of .svg files into a single sprites.svg file and type definitions for safe usage. Technical Over

Nov 9, 2022
Owner
Hue
Hue
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till mÀnniskor pÄ flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Framework agnostic CLI tool for routes parsing and generation of a type-safe helper for safe route usage. đŸ—ș Remix driver included. đŸ€Ÿ

About routes-gen is a framework agnostic CLI tool for routes parsing and generation of a type-safe helper for safe route usage. Think of it as Prisma,

Stratulat Alexandru 192 Jan 2, 2023
yet another 2048, but this time it's controlled by GPT

2048 About a few years ago, I built 2048.wasm This is yet another 2048 from me, but this time it's controlled by GPT. Demo 2048-short.mov How GPT crus

Nishchith Shetty 43 Jul 17, 2023
A hackable C# based scripting environment for 3D modeling running in the web browser.

A hackable C# based scripting environment for 3D modeling running in the web browser. Background Script based 3D modeling software running in the web

Emil Poulsen 49 Nov 28, 2022
A program that makes scripting videos easier.

QuickScript A program that makes scripting videos easier. Scripts can be written using only the keyboard. Installation Clone/fork the repository Insta

Samuel Albert 18 Jun 22, 2022
i18n-language.js is Simple i18n language with Vanilla Javascript

i18n-language.js i18n-language.js is Simple i18n language with Vanilla Javascript Write by Hyun SHIN Demo Page: http://i18n-language.s3-website.ap-nor

Shin Hyun 21 Jul 12, 2022
When a person that doesn't know how to create a programming language tries to create a programming language

Kochanowski Online SprĂłbuj Kochanowskiego bez konfiguracji projektu! https://mmusielik.xyz/projects/kochanowski Instalacja StwĂłrz nowy projekt przez n

Maciej Musielik 18 Dec 4, 2022
Write "hello world" in your native language, code "hello world" in your favorite programming language!

Hello World, All languages! ?? ?? Write "hello world" in your native language, code "hello world" in your favorite language! #hacktoberfest2022 How to

Carolina Calixto 6 Dec 13, 2022