@catbee/utils 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +27 -27
- package/build/index.cjs +2 -2
- package/build/index.d.ts +1 -1
- package/build/index.mjs +2 -2
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 Catbee Technologies. https://catbee
|
|
3
|
+
Copyright (c) 2025 Catbee Technologies. https://catbee.npm.hprasath.com/license
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -77,31 +77,31 @@ console.log(isEmail("user@example.com")); // true
|
|
|
77
77
|
|
|
78
78
|
| Module | Description |
|
|
79
79
|
| ------ | ----------- |
|
|
80
|
-
| [Express Server](https://catbee
|
|
81
|
-
| [Array Utilities](https://catbee
|
|
82
|
-
| [Async Utilities](https://catbee
|
|
83
|
-
| [Cache Utilities](https://catbee
|
|
84
|
-
| [Context Store](https://catbee
|
|
85
|
-
| [Crypto Utilities](https://catbee
|
|
86
|
-
| [Date Utilities](https://catbee
|
|
87
|
-
| [Decorators Utilities](https://catbee
|
|
88
|
-
| [Directory Utilities](https://catbee
|
|
89
|
-
| [Environment Utilities](https://catbee
|
|
90
|
-
| [Exception Utilities](https://catbee
|
|
91
|
-
| [File System Utilities](https://catbee
|
|
92
|
-
| [HTTP Status Codes](https://catbee
|
|
93
|
-
| [ID Utilities](https://catbee
|
|
94
|
-
| [Logger Utilities](https://catbee
|
|
95
|
-
| [Middleware Utilities](https://catbee
|
|
96
|
-
| [Object Utilities](https://catbee
|
|
97
|
-
| [Performance Utilities](https://catbee
|
|
98
|
-
| [Request Utilities](https://catbee
|
|
99
|
-
| [Response Utilities](https://catbee
|
|
100
|
-
| [Stream Utilities](https://catbee
|
|
101
|
-
| [String Utilities](https://catbee
|
|
102
|
-
| [Type Utilities](https://catbee
|
|
103
|
-
| [URL Utilities](https://catbee
|
|
104
|
-
| [Validate Utilities](https://catbee
|
|
80
|
+
| [Express Server](https://catbee.npm.hprasath.com/docs/@catbee/utils/express-server) | Fast, secure, and scalable server setup |
|
|
81
|
+
| [Array Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/array) | Advanced array manipulation |
|
|
82
|
+
| [Async Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/async) | Promise helpers, concurrency, timing |
|
|
83
|
+
| [Cache Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/cache) | In-memory caching with TTL |
|
|
84
|
+
| [Context Store](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/context-store) | Per-request context via AsyncLocalStorage |
|
|
85
|
+
| [Crypto Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/crypto) | Hashing, encryption, tokens |
|
|
86
|
+
| [Date Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/date) | Date/time manipulation |
|
|
87
|
+
| [Decorators Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/decorators) | TypeScript decorators for Express |
|
|
88
|
+
| [Directory Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/directory) | Directory and file system helpers |
|
|
89
|
+
| [Environment Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/environment) | Env variable management |
|
|
90
|
+
| [Exception Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/exception) | HTTP and error handling |
|
|
91
|
+
| [File System Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/file-system) | File operations |
|
|
92
|
+
| [HTTP Status Codes](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/http-status-codes) | Typed status codes |
|
|
93
|
+
| [ID Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/id) | UUID and ID generation |
|
|
94
|
+
| [Logger Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/logger) | Structured logging with Pino |
|
|
95
|
+
| [Middleware Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/middleware) | Express middleware collection |
|
|
96
|
+
| [Object Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/object) | Deep merge, flatten, pick/omit, etc. |
|
|
97
|
+
| [Performance Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/performance) | Timing, memoization, memory tracking |
|
|
98
|
+
| [Request Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/request) | HTTP request parameter parsing/validation |
|
|
99
|
+
| [Response Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/response) | Standardized API response formatting |
|
|
100
|
+
| [Stream Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/stream) | Stream conversion, batching, throttling, line splitting |
|
|
101
|
+
| [String Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/string) | Casing, masking, slugifying, formatting |
|
|
102
|
+
| [Type Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/type) | Type checking, conversion, guards |
|
|
103
|
+
| [URL Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/url) | URL parsing, query manipulation, normalization |
|
|
104
|
+
| [Validate Utilities](https://catbee.npm.hprasath.com/docs/@catbee/utils/modules/validation) | Input validation functions |
|
|
105
105
|
|
|
106
106
|
---
|
|
107
107
|
|
|
@@ -117,10 +117,10 @@ import { chunk, sleep, TTLCache, getLogger } from "@catbee/utils";
|
|
|
117
117
|
|
|
118
118
|
## 📖 Documentation
|
|
119
119
|
|
|
120
|
-
- [Full API Docs & Examples](https://catbee
|
|
120
|
+
- [Full API Docs & Examples](https://catbee.npm.hprasath.com/docs/@catbee/utils/intro)
|
|
121
121
|
|
|
122
122
|
---
|
|
123
123
|
|
|
124
124
|
## 📜 License
|
|
125
125
|
|
|
126
|
-
MIT © catbee
|
|
126
|
+
MIT © Catbee Technologies (see the [LICENSE](https://catbee.npm.hprasath.com/license/) file for the full text)
|
package/build/index.cjs
CHANGED
|
@@ -29,7 +29,7 @@ var https__default = /*#__PURE__*/_interopDefault(https);
|
|
|
29
29
|
/*
|
|
30
30
|
* The MIT License
|
|
31
31
|
*
|
|
32
|
-
* Copyright (c) 2025 Catbee Technologies. https://catbee
|
|
32
|
+
* Copyright (c) 2025 Catbee Technologies. https://catbee.npm.hprasath.com/license
|
|
33
33
|
*
|
|
34
34
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
35
35
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -6663,7 +6663,7 @@ var ExpressServer = class _ExpressServer {
|
|
|
6663
6663
|
const skip = this.config.requestLogging?.ignorePaths?.(req, res);
|
|
6664
6664
|
if (skip) return next();
|
|
6665
6665
|
} else if (Array.isArray(this.config.requestLogging?.ignorePaths)) {
|
|
6666
|
-
const skip = this.config.requestLogging?.ignorePaths?.
|
|
6666
|
+
const skip = this.config.requestLogging?.ignorePaths?.some((path3) => req.path.startsWith(path3));
|
|
6667
6667
|
if (skip) return next();
|
|
6668
6668
|
}
|
|
6669
6669
|
const logger2 = getLogger();
|
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* The MIT License
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c) 2025 Catbee Technologies. https://catbee
|
|
4
|
+
* Copyright (c) 2025 Catbee Technologies. https://catbee.npm.hprasath.com/license
|
|
5
5
|
*
|
|
6
6
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
* of this software and associated documentation files (the "Software"), to deal
|
package/build/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import https from 'https';
|
|
|
17
17
|
/*
|
|
18
18
|
* The MIT License
|
|
19
19
|
*
|
|
20
|
-
* Copyright (c) 2025 Catbee Technologies. https://catbee
|
|
20
|
+
* Copyright (c) 2025 Catbee Technologies. https://catbee.npm.hprasath.com/license
|
|
21
21
|
*
|
|
22
22
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
23
23
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -6651,7 +6651,7 @@ var ExpressServer = class _ExpressServer {
|
|
|
6651
6651
|
const skip = this.config.requestLogging?.ignorePaths?.(req, res);
|
|
6652
6652
|
if (skip) return next();
|
|
6653
6653
|
} else if (Array.isArray(this.config.requestLogging?.ignorePaths)) {
|
|
6654
|
-
const skip = this.config.requestLogging?.ignorePaths?.
|
|
6654
|
+
const skip = this.config.requestLogging?.ignorePaths?.some((path3) => req.path.startsWith(path3));
|
|
6655
6655
|
if (skip) return next();
|
|
6656
6656
|
}
|
|
6657
6657
|
const logger2 = getLogger();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@catbee/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "A modular, production-grade utility toolkit for Node.js and TypeScript, designed for robust, scalable applications (including Express-based services). All utilities are tree-shakable and can be imported independently.",
|
|
5
5
|
"main": "build/index.cjs",
|
|
6
6
|
"module": "build/index.mjs",
|