1.0.6 ā€¢ Published 11 months ago

ftd.ts v1.0.6

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
11 months ago

ftd.ts

šŸŒ³ ftd.ts is a Standalone FTD Parser written in TypeScript šŸš€

Original Project: Fastn Stack

šŸ“œ Copyright

āš ļø Legal Stuff: Fastn, Fastn Stack, and FTD are Copyrights of FifthTry.com.

šŸ“š Introduction

Welcome to the world of ftd.ts! This marvelous parser is here to help you unleash the power of FTD in your TypeScript projects. Say goodbye to parsing headaches and embrace the magic of ftd.ts! šŸŽ©šŸ’«

šŸ’” Features

  • Effortlessly convert FTD code into a delightful Abstract Syntax Tree (AST) šŸŒ³
  • TypeScript all the way! Enjoy the beauty of strong typing and modern language features āœØ
  • Easy-peasy integration into your existing TypeScript projects. No mess, no fuss! šŸ§©
  • Lightning-fast parsing speed that will make you go "Wow!" āš”ļøšŸ’Ø

āš™ļø Installation

npm i ftd.ts

šŸŒ Usage

Just use the magical ftd template tag and let the parser work its charm! Here's a sneak peek:

import { createFTDParser } from '../dist/index.js';

const ftd = createFTDParser({
    containerTypes: ['ftd.column', 'ftd.row'],
});

const ast = ftd`
-- import: stuff

;; This is a comment

-- ftd.text: Hello World ;; This is an inline comment

;; Nesting

-- ftd.column:

    -- ftd.row:

        -- ftd.text:
        color: red

        This is a 
        mulitline string

        -- ftd.text: Hello Again!

    -- end: ftd.row

-- end: ftd.column
`;

console.log(ast); // Marvel at the magnificent Abstract Syntax Tree! šŸŒ³šŸ¤©

šŸ“ TODO

  • Add Component, Record, and Variable Declaration support
  • Add Renderer function to convert FTD Tree into JavaScript DOM Nodes
  • Add Asset Loader for managing assets

šŸ“ƒ License

ftd.ts is licensed under the BSD 3-Clause License. See the LICENSE file for more information.

Now, go forth and conquer the FTD realm with ftd.ts! Happy parsing! šŸš€āœØ

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago