# tstl-log-lua

> Declarations for [log.lua](https://github.com/rxi/log.lua), A tiny logging module for Lua.

Latest version **0.0.0** (published 2021-12-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install tstl-log-lua
pnpm add tstl-log-lua
yarn add tstl-log-lua
bun add tstl-log-lua
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2021-12-09 |
| First published | 2021-12-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | maxiy01 |
| Maintainers | maxiy01 |
| Keywords | tstl, typescript, typescript-to-lua, lua, logging, log |

## Links

- npm: https://www.npmjs.com/package/tstl-log-lua
- Repository: https://github.com/maxiy01/tstl-log-lua
- Homepage: https://github.com/maxiy01/tstl-log-lua#readme
- Issues: https://github.com/maxiy01/tstl-log-lua/issues
- npm.io page: https://npm.io/package/tstl-log-lua

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads

## Recent versions

- 0.0.0 (latest) — 2021-12-09

## README

# TSTL json.lua

Declarations for [log.lua](https://github.com/rxi/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.

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

And used within any _.ts_ file.

```ts
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.

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

Also you need to add `"typescript-to-lua/language-extensions"` to _tsconfig.json_ file.
```json
{
    "compilerOptions": {
        "types": [
            "typescript-to-lua/language-extensions"
        ]
    }
}
```

---
_Source: https://npm.io/package/tstl-log-lua · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
