{"_id":"@aoitelegram/util","_rev":"1-80ba759ab63288190d21b6745d0359f1","name":"@aoitelegram/util","description":"Utils package for aoitelegram","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@aoitelegram/util","version":"1.0.0","keywords":["javascript","typescript","telegram","library","telegramapi","bot","aoi","aoitelegram","bds.js","@aoitelegram","aoi.js"],"author":{"name":"Sempai","email":"zadmanthegreat@gmail.com"},"license":"MIT","_id":"@aoitelegram/util@1.0.0","homepage":"https://aoitelegram.vercel.app","bugs":{"url":"https://github.com/aoitelegram/util/issues"},"dist":{"shasum":"aabdb7cd2c9e5a1c1941d80deee356757b2b0ee0","tarball":"https://registry.npmjs.org/@aoitelegram/util/-/util-1.0.0.tgz","fileCount":17,"integrity":"sha512-MYioFca4rsW/tx2/uOtjyie+N6bF57zIBgI3SholKsheYMm7grH+6nFYqHBjDM+ET435GY4wJenZ9t1FBpU0Gw==","signatures":[{"sig":"MEYCIQCOIpimdvIKFsI1r9vE72DbWXGjznmxjDAQNrCNxbITjAIhAJAszpizbMZ9LXvmsY6bHwlWCEJ1yiItIk5DDl1LWS3a","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29354},"main":"./dist/index.js","types":"./dist/index.d.ts","typing":"./dist/index.d.ts","engines":{"node":">=16"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"_npmUser":{"name":"crazy-sempai07","email":"suhozadvova7@gmail.com"},"repository":{"url":"git+https://github.com/aoitelegram/util.git","type":"git"},"_npmVersion":"10.7.0","description":"Utils package for aoitelegram","directories":{},"_nodeVersion":"20.14.0","dependencies":{"chalk":"^4.1.2","tslib":"^2.6.2","node-fetch":"^2.7.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^18.19.26","@types/node-fetch":"^2.6.11"},"_npmOperationalInternal":{"tmp":"tmp/util_1.0.0_1719829347187_0.34567120270610396","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@aoitelegram/util","description":"Utils package for aoitelegram","main":"./dist/index.js","typing":"./dist/index.d.ts","version":"1.0.1","exports":{".":{"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}}},"engines":{"node":">=16"},"license":"MIT","author":{"name":"Sempai","email":"zadmanthegreat@gmail.com"},"homepage":"https://aoitelegram.vercel.app","repository":{"type":"git","url":"git+https://github.com/aoitelegram/util.git"},"bugs":{"url":"https://github.com/aoitelegram/util/issues"},"keywords":["javascript","typescript","telegram","library","telegramapi","bot","aoi","aoitelegram","bds.js","@aoitelegram","aoi.js"],"dependencies":{"chalk":"^4.1.2","node-fetch":"^2.7.0","tslib":"^2.6.2"},"devDependencies":{"@types/node":"^18.19.26","@types/node-fetch":"^2.6.11"},"_id":"@aoitelegram/util@1.0.1","gitHead":"c7ebd23c55f73ce8ad82d6c92ac469871e8495c4","types":"./dist/index.d.ts","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-fY+tzEeAkkDyB0Swv3tXnUjgkUl5MAEUlzbghE9vcBZ9MQfwoSDQTPfq3fap9Kk5T6YAIHmAoBl7N5xat45zZQ==","shasum":"74fa259cf823fcc053f3b44dcb017a89ebb24df0","tarball":"https://registry.npmjs.org/@aoitelegram/util/-/util-1.0.1.tgz","fileCount":17,"unpackedSize":38061,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxmUbXk/wK301FZDW05rGH1RiZkcmmunnDRsE+KOxODQIhAJCaUpYXldS96TUHUe1qTb++kVxkqujVsK0n+aLNl5re"}]},"_npmUser":{"name":"crazy-sempai07","email":"suhozadvova7@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/util_1.0.1_1719922240519_0.39431703907142723"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-01T10:22:27.099Z","modified":"2024-07-02T12:10:40.872Z","1.0.0":"2024-07-01T10:22:27.357Z","1.0.1":"2024-07-02T12:10:40.713Z"},"maintainers":[{"name":"crazy-sempai07","email":"suhozadvova7@gmail.com"}],"author":{"name":"Sempai","email":"zadmanthegreat@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aoitelegram/util.git"},"keywords":["javascript","typescript","telegram","library","telegramapi","bot","aoi","aoitelegram","bds.js","@aoitelegram","aoi.js"],"license":"MIT","homepage":"https://aoitelegram.vercel.app","bugs":{"url":"https://github.com/aoitelegram/util/issues"},"readme":"# @aoitelegram/util\n\n[![NPM Version](https://img.shields.io/npm/v/@aoitelegram/util)](https://www.npmjs.com/package/@aoitelegram/util)\n[![NPM Downloads](https://img.shields.io/npm/dt/@aoitelegram/util.svg?maxAge=3600)](https://www.npmjs.com/package/@aoitelegram/util)\n[![License](https://img.shields.io/npm/l/@aoitelegram/util)](https://github.com/aoitelegram/util/blob/main/LICENSE)\n\nA utility library for the aoitelegram project.\n\n## Installation\n\nTo use `@aoitelegram/util` in your project, you can install it via npm:\n\n```shell\nnpm install @aoitelegram/util\n```\n\n## Usage\n\n```ts\n// Esm/TypeScript\nimport { Logger } from \"@aoitelegram/util\";\n// CommonJS\nconst { Logger } = require(\"@aoitelegram/util\");\n\nLogger.info(\"This is an info message\");\nLogger.warn(\"This is a warning message\");\nLogger.error(\"This is an error message\");\n\nLogger.custom({\n  title: {\n    text: \"[ AoiClient ]:\",\n    color: \"red\",\n    bold: true,\n  },\n  args: [\n    {\n      text: \"Initialized on\",\n      color: \"yellow\",\n      bold: true,\n    },\n    {\n      text: \"aoitelegram\",\n      color: \"cyan\",\n      bold: true,\n    },\n    {\n      text: `v${version}`,\n      color: \"blue\",\n      bold: true,\n    },\n    {\n      text: \"|\",\n      color: \"yellow\",\n      bold: true,\n    },\n    {\n      text: username,\n      color: \"green\",\n      bold: true,\n    },\n    {\n      text: \"|\",\n      color: \"yellow\",\n      bold: true,\n    },\n    {\n      text: \"Sempai Development\",\n      color: \"cyan\",\n      bold: true,\n    },\n  ],\n});\n```\n\n```ts\n// Esm/TypeScript\nimport { ConditionChecker, getObjectKey } from \"@aoitelegram/util\";\n// CommonJS\nconst { ConditionChecker, getObjectKey } = require(\"@aoitelegram/util\");\n\nconsole.log(ConditionChecker.checkCondition(\"1==1\")); // true\nconsole.log(ConditionChecker.checkCondition(\"1!=1\")); // false\nconsole.log(\n  ConditionChecker.checkCondition(\"{key:3, key2: 3}=={key2:3, key:3}\"),\n); // true\n\nconst newObj = { key: { key2: true } };\nconsole.log(getObjectKey(newObj, \"key\")); // { key2: true }\nconsole.log(getObjectKey(newObj, \"key.key2\")); // true\n```\n\n## Documentation\n\nFor detailed documentation and usage instructions, please refer to the [aoitelegram Wiki](https://aoitelegram.vercel.app/).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/aoitelegram/util/blob/main/LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please create a `GitHub` issue or submit a pull request. Additionally, feel free to reach out to me on Telegram via my group [AoiTelegram](https://t.me/aoitegram) or on Discord using my username `sempaika_chess`.\n","readmeFilename":"README.md"}