https://github.com/hacktoolkit/htk.js
https://github.com/hacktoolkit/htk.js
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hacktoolkit/htk.js
- Owner: hacktoolkit
- License: mit
- Created: 2023-06-09T17:51:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-14T02:06:10.000Z (over 2 years ago)
- Last Synced: 2025-03-11T18:01:37.863Z (11 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](//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`