@jsclg/parser

    1.0.3 • Public • Published

    JSCLG parser

    The official JSCLG parser.

    What is JSCLG?

    • It stands for 'Javascript Console Log'.

    • This package parses code like this ↓

      $greeting:hello everyone;
      {{greeting}}
      

      into an array like this ↓

      ["hello everyone"];

    Sample Code

    const parse = require("@jsclg/parser");
    const file = process.argv.slice(2);
    const code = require("fs").readFileSync(file[0], "utf-8");
    
    parse(code).forEach((line) => {
      console.log(line);
    });

    Install

    npm i @jsclg/parser

    DownloadsWeekly Downloads

    5

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    4.87 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar