# ak-tools

> AK's collections of useful things... a comprehensive utility toolbelt for JavaScript/TypeScript projects

Latest version **1.1.12** (published 2025-08-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install ak-tools
pnpm add ak-tools
yarn add ak-tools
bun add ak-tools
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.12 |
| Published | 2025-08-09 |
| First published | 2022-09-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 84.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AK |
| Maintainers | ak--47 |
| Keywords | utilities, toolbelt, functional, typescript, node.js, browser, arrays, objects, validation, files, logging, maths |

## Links

- npm: https://www.npmjs.com/package/ak-tools
- Repository: https://github.com/ak--47/ak-tools
- Homepage: https://github.com/ak--47/ak-tools#readme
- Issues: https://github.com/ak--47/ak-tools/issues
- npm.io page: https://npm.io/package/ak-tools

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.1.12 (latest) — 2025-08-09
- 1.1.1 — 2025-08-02
- 1.1.0 — 2025-06-16
- 1.0.9 — 2025-06-16
- 1.0.7 — 2025-04-28
- 1.0.696911 — 2024-12-06
- 1.0.69691 — 2024-12-06
- 1.0.6969 — 2024-11-17
- 1.0.691 — 2024-11-17
- 1.0.69 — 2024-11-17
- 1.0.68 — 2024-11-12
- 1.0.67 — 2024-11-12
- 1.0.66 — 2024-10-29
- 1.0.65 — 2024-09-22
- 1.0.64 — 2024-07-15
- … 48 more at https://npm.io/package/ak-tools/versions

## README

# ak-tools
 AK's (nearly typesafe) collections of useful things...cobbled together from various projects over the years...

install:

```bash
$ npm i ak-tools
```

use:
```javascript
const utils = require('ak-tools') 	//cjs
import {* as utils} from 'ak-tools' 	//esm
```

verify
```bash
$ npm run test
```

if using an IDE with jsdoc support you should have a good experience. 

## demo
```javascript
/**
 * make a folder, and a file
 * measure it... remove it
 * time the whole thing
**/
const u = require('ak-tools');
const timer = u.time('myProcess')
timer.start()

const newFolder = u.mkdir('./tmp')
const myData = [{foo: "bar"}, {baz: "qux"}]
const file = await u.touch('./tmp/data.json', u.dupeVals(myData, 1000), true);
const contents = await u.load(file)

const size = u.calcSize(u.json(contents))
const del = u.rm('./tmp/data.json')
timer.end(false)

const diag = { size: u.bytesHuman(size),...timer.report(false) }
u.log(diag)
```


## API

See JSDoc comments in `index.js` for detailed API documentation.

This module exports various utility functions organized into namespaces:

- **files** - File management utilities
- **validate** - Data validation utilities  
- **display** - Formatting and display utilities
- **maths** - Mathematical and crypto utilities
- **objects** - Object manipulation utilities
- **arrays** - Array processing utilities
- **functions** - Function utilities
- **logging** - Logging and diagnostic utilities

All functions are well-documented with JSDoc comments in the source code.

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