# htk.js

> [![npm version](https://badge.fury.io/js/htk.js.svg)](//npmjs.com/package/htk.js)

Latest version **1.5.0** (published 2023-06-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install htk.js
pnpm add htk.js
yarn add htk.js
bun add htk.js
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2023-06-13 |
| First published | 2023-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hacktoolkit |
| Maintainers | jontsai |

## Links

- npm: https://www.npmjs.com/package/htk.js
- Repository: https://github.com/hacktoolkit/htk.js
- Homepage: https://github.com/hacktoolkit/htk.js#readme
- Issues: https://github.com/hacktoolkit/htk.js/issues
- npm.io page: https://npm.io/package/htk.js

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^3.3.1

## Recent versions

- 1.5.0 (latest) — 2023-06-13
- 1.4.0 — 2023-06-13
- 1.3.1 — 2023-06-13
- 1.3.0 — 2023-06-13
- 1.2.0 — 2023-06-13
- 1.1.0 — 2023-06-13
- 1.0.2 — 2023-06-13
- 1.0.1 — 2023-06-13
- 1.0.0 — 2023-06-12

## README

[![npm version](https://badge.fury.io/js/htk.js.svg)](//npmjs.com/package/htk.js)

# htk.js

A set of convenience utils for JavaScript. An inspired, close-to-feature-parity port of [`python-htk-lite`](https://github.com/hacktoolkit/python-htk-lite).

# Features

1. Debug via writing to local file using `fdb` (`fdb('some debugging message')`). Certifiably awesome, fast, and secure.

# How to Use This Awesome?

## Installation

1. Install via npm: `npm install htk.js`
1. For `slackDebug`, create a `.env` file and add your [Slack incoming webhook](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks) as `SLACK_WEBHOOK_URL`.

## FDebug (FDB)

1. (**Recommended**) Create a BASH alias or similar: `alias fdb='touch /tmp/fdebug.log; tail -f /tmp/fdebug.log'`
    1. In a separate window used for debugging, run `fdb` to watch the logs roll in.
1. `import { fdb } from 'htk.js/fdebug';`
1. `fdb('Not all heroes wear capes')`

## Slack Debug (`slack_debug`)

```
import { slackDebug } from 'htk.js/';

slackDebug('Not all heroes wear capes');
```

# See Also

- C# - https://github.com/hacktoolkit/csharp-htk
- JavaScript - https://github.com/hacktoolkit/htk.js
- PHP - https://github.com/hacktoolkit/php-htk
- Python (full) - https://github.com/hacktoolkit/python-htk
- Python (lite) - https://github.com/hacktoolkit/python-htk-lite
- Ruby - https://github.com/hacktoolkit/htk-rb

# Authors and Maintainers

- [Hacktoolkit](https://github.com/hacktoolkit)
- [Jonathan Tsai](https://github.com/jontsai)

# License

MIT. See `LICENSE.md`

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