Nutella with Pepperoni and Mushrooms

    tstl-log-lua
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.0 • Public • Published

    TSTL json.lua

    Declarations for log.lua, A tiny logging module for Lua.

    Command Description
    yarn add -D tstl-log-lua Install these declarations
    yarn add rxi/log.lua Install log.lua

    Upon installation these declarations can be linked to a tsconfig.json file.

    {
        "compilerOptions": {
            "types": [
                "tstl-log-lua"
            ]
        }
    }

    And used within any .ts file.

    import * as log from "log";
    
    log.usecolor = true;
    
    log.info("Hello world!");

    Make sure to append ";./node_modules/log.lua/?.lua" to your package.path in a conf.ts file (this is run first) to assist where Lua looks for modules.

    package.path += ";./node_modules/log.lua/?.lua";

    Also you need to add "typescript-to-lua/language-extensions" to tsconfig.json file.

    {
        "compilerOptions": {
            "types": [
                "typescript-to-lua/language-extensions"
            ]
        }
    }

    Install

    npm i tstl-log-lua

    DownloadsWeekly Downloads

    2

    Version

    0.0.0

    License

    ISC

    Unpacked Size

    3.01 kB

    Total Files

    3

    Last publish

    Collaborators

    • maxiy01