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"
        ]
    }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    1

Package Sidebar

Install

npm i tstl-log-lua

Weekly Downloads

1

Version

0.0.0

License

ISC

Unpacked Size

3.01 kB

Total Files

3

Last publish

Collaborators

  • maxiy01