@sylo-digital/action-transpiler
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@sylo-digital/action-transpiler

Convert scripts from legacy formats into the new format. This can never be perfect but it should be good enough for >99% of actions.

import { convert } from "@sylo-digital/action-transpiler";
const script = `{note;This does something interesting}\n{user.mention;{note;example}}`;
const converted = convert(script);
console.log(converted);
// This does something interesting
{user.mention;{void;example}}

/@sylo-digital/action-transpiler/

    Package Sidebar

    Install

    npm i @sylo-digital/action-transpiler

    Weekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    340 kB

    Total Files

    7

    Last publish

    Collaborators

    • cykreet
    • ryanke