txiki-utils
v0.0.10
Published
all txiki.js stuff that is not in its' std yet needed in project you make.
Readme
txiki-utils
all txiki.js stuff that is not in its' std yet needed in project you make. idea is to gradually add node-compatible stuff here.
recommended usage:
install
npm i -S txiki-utilscreate js/ts, let it be test.ts:
import { crypto, fs } from "txiki-utils"
console.log(crypto.randomBytes(10))run
tjs bundle test.ts
tjs run test.bundle.jsavailable stuff at the moment (feel free to fill an issue if need smth else):
- crypto
- scryptSync
- createCipheriv (for chacha)
- createDecipheriv (for chacha)
- randomBytes (it exists in WebCrypto that is native to txiki and available globally, and this is a wrapper around.)
- fs
- sync
- openSync
- closeSync
- rmSync
- readFileSync
- writeFileSync
- sync
