Artemis Kit is a libary for various utilities and functions in javascript/typescript.
Go to file
Hein d1a5c4b06d RELEASING: Releasing 1 package(s)
Releases:
  @warkypublic/artemis-kit@1.0.10

[skip ci]
2025-05-08 16:50:36 +02:00
.changeset RELEASING: Releasing 1 package(s) 2025-05-08 16:50:36 +02:00
.vscode Released 1.0.3 2025-01-13 22:03:33 +02:00
src Added stringify_json 2025-05-08 16:50:32 +02:00
.eslintignore Initial commit 2024-12-03 22:52:21 +02:00
.gitignore Initial commit 2024-12-03 19:15:32 +02:00
CHANGELOG.md RELEASING: Releasing 1 package(s) 2025-05-08 16:50:36 +02:00
eslint.config.js Initial commit 2024-12-03 22:52:21 +02:00
LICENSE Initial commit 2024-12-03 19:15:32 +02:00
package.json RELEASING: Releasing 1 package(s) 2025-05-08 16:50:36 +02:00
pnpm-lock.yaml docs(changeset): Added object retrocycle and decycle 2025-05-08 16:46:44 +02:00
README.md Split export. Added llm and better readme 2025-03-20 21:11:09 +02:00
tsconfig.json Initial commit 2024-12-03 22:52:21 +02:00
vite.config.js Split export. Added llm and better readme 2025-03-20 21:11:09 +02:00
vitest.config.ts Test cases and minor function fixes 2024-12-10 22:55:30 +02:00

artemis-kit

A comprehensive TypeScript/JavaScript utility library focused on precision and efficiency.

Features

String Tools

  • Advanced string manipulation
  • Pattern matching and validation
  • Text transformation utilities
  • Unicode handling
  • i18n support

Blob Tools

  • Blob creation and modification
  • Binary data handling
  • Stream processing
  • MIME type management

File Conversion Tools

  • Format conversions
  • File type transformations
  • Encoding/decoding utilities
  • Batch processing capabilities

Data Queue Tools

  • Efficient data processing
  • Batch operations support

DOM

  • DOM shortcuts like opening file links

LLM

  • LLM tools for text processing and generation

Installation

pnpm install @warkypublic/artemis-kit

Usage/Import examples

import { getNestedValue } from "@warkypublic/artemis-kit/object";
import { NestedQueue } from "@warkypublic/artemis-kit/dataqueue";
import { camelCase, formatPercent } from "@warkypublic/artemis-kit/strings";
import {
  b64DecodeUnicode,
  b64EncodeUnicode,
} from "@warkypublic/artemis-kit/base64";

Available Methods

Strings

  • trimLeft
  • trimRight
  • replaceStr
  • replaceStrAll
  • formatNumber
  • formatCurrency
  • formatDate
  • getPlural
  • formatPercent
  • titleCase
  • initCaps
  • camelCase
  • snakeCase
  • reverseSnakeCase
  • splitCamelCase
  • humanFileSize
  • getUUID
  • newUUID
  • blankValue
  • ...

i18n

  • createI18nManager
  • _t
  • _tt
  • ...

Base64

  • b64DecodeUnicode
  • b64EncodeUnicode
  • base64ToBlob
  • blobToBase64
  • FileToBase64
  • FileToBlob
  • BlobToString

Object

  • getNestedValue
  • setNestedValue
  • objectCompare
  • createSelectOptions

Queue

  • NestedQueue

Dom

  • openFileLink

Mime

  • getExtFromMime
  • getExtFromFilename
  • getMimeFromExt
  • isValidExtForMime
  • getAllExtensionsForMime

LLM

These are still work in progress.

Requests

Requests are welcome! Please read our contributing guidelines and send me a message on Discord or add a github issue.

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

License

MIT