{"_id":"@buu-js/buu-js","name":"@buu-js/buu-js","dist-tags":{"latest":"0.9.9"},"versions":{"0.9.9":{"name":"@buu-js/buu-js","version":"0.9.9","description":"Zero-dependency NPM package maximizing latest Node.js 25.2.0+ capabilities","main":"index.js","type":"module","engines":{"node":">=25.2.0"},"exports":{".":{"import":"./index.js","default":"./index.js"}},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["nodejs","performance","zero-dependency","node25","async","crypto","utilities"],"author":{"name":"HonneybuuModzDevelopmentTeam"},"license":"MIT","_id":"@buu-js/buu-js@0.9.9","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-2wp9WecxJyJFciTYWRpU1GGy4jHafdrXab3NJWuAwSmaqDQW9Wt9zc6sY4zo+JgOaZU3jTwGW6QMUiKZw7rNuw==","shasum":"4e66e6faf499077c1f459aeaf044caabf3f420c9","tarball":"https://registry.npmjs.org/@buu-js/buu-js/-/buu-js-0.9.9.tgz","fileCount":3,"unpackedSize":37144,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCIkdDri+y/HtCc0+wraZ/y2eX9rF+LGdTeDOCm+/COmgIgS1xkc+/0ewm91vLNmNVsFXdzQbLYC7BFG5z/itUF1eQ="}]},"_npmUser":{"name":"honneybuu","email":"honneybuu.modz@gmail.com"},"directories":{},"maintainers":[{"name":"honneybuu","email":"honneybuu.modz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/buu-js_0.9.9_1765321237038_0.5017803669905185"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-09T23:00:36.957Z","0.9.9":"2025-12-09T23:00:37.175Z","modified":"2025-12-09T23:00:37.491Z"},"maintainers":[{"name":"honneybuu","email":"honneybuu.modz@gmail.com"}],"description":"Zero-dependency NPM package maximizing latest Node.js 25.2.0+ capabilities","keywords":["nodejs","performance","zero-dependency","node25","async","crypto","utilities"],"author":{"name":"HonneybuuModzDevelopmentTeam"},"license":"MIT","readme":"<div align=\"center\">\r\n\r\n# 🚀 BuuJS\r\n\r\n**Honneybuu Modz Zero-dependency NPM package maximizing Node.js 25.2.0+ capabilities**\r\n\r\n[![npm version](https://img.shields.io/npm/v/@buu-js?style=flat-square&color=green)](https://npmjs.com/package/@buu-js)\r\n[![Node.js](https://img.shields.io/badge/Node.js-25.2.0%2B-green?style=flat-square)](https://nodejs.org/)\r\n[![Zero Dependencies](https://img.shields.io/badge/Dependencies-Zero-green?style=flat-square)](package.json)\r\n[![License](https://img.shields.io/badge/License-MIT-green?style=flat-square)](LICENSE)\r\n\r\n</div>\r\n\r\n## 🚀 Node.js 25.2.0+ Exclusive Features\r\n\r\n- **Scheduler API**: `scheduler.wait()`, `scheduler.yield()` for precise async control\r\n- **Event Loop Monitoring**: `monitorEventLoopDelay()` with detailed performance analysis  \r\n- **Performance Histograms**: `createHistogram()` for ultra-precise benchmarking\r\n- **Enhanced System Info**: `machine()`, `availableParallelism()`, enhanced `userInfo()`\r\n- **Advanced Crypto**: KeyObject support, scrypt optimizations, enhanced WebCrypto\r\n- **Stream Compose**: New `compose()` API for stream pipeline optimization\r\n- **MessageChannels**: `markAsUntransferable()`, `receiveMessageOnPort()`\r\n- **Util Functions**: `parseArgs()`, `styleText()`, `getSystemErrorName()`\r\n\r\n## ✨ Features\r\n\r\n🔥 **Node.js 25.2.0+ Features** - Utilizes the latest Node.js capabilities  \r\n⚡ **Zero Dependencies** - Pure Node.js, no external packages  \r\n🚀 **Ultra Performance** - Maximized for Node.js 25.2.0+ speed  \r\n🔧 **TypeScript Ready** - Complete type definitions included  \r\n🎯 **ES Modules** - Modern import/export syntax  \r\n🧪 **100% Test Coverage** - Comprehensive testing suite  \r\n📊 **Performance Monitoring** - Real-time benchmarking tools  \r\n🔐 **Advanced Crypto** - Enhanced cryptographic utilities  \r\n🌊 **Stream Processing** - High-performance stream operations\r\n\r\n## 📦 Installation\r\n\r\n```bash\r\nnpm install @buu-js\r\n```\r\n\r\n## 🚀 Quick Start\r\n\r\n```javascript\r\nimport BuuJS from '@buu-js';\r\n\r\n// Get system information\r\nconsole.log(BuuJS.info());\r\n\r\n// High-performance async iteration\r\nfor await (const num of BuuJS.AsyncIterator.range(0, 10)) {\r\n  console.log(num);\r\n}\r\n\r\n// Lightning-fast crypto operations\r\nconst hash = BuuJS.Crypto.hash('Hello World');\r\nconst uuid = BuuJS.Crypto.uuid();\r\n\r\n// Performance benchmarking\r\nconst result = await BuuJS.Perf.benchmark(() => {\r\n  // Your code here\r\n}, 1000);\r\n\r\nconsole.log(`Performance: ${result.opsPerSecond} ops/sec`);\r\n```\r\n\r\n## 🎯 API Reference\r\n\r\n### 🔄 AsyncIterator\r\n\r\n```javascript\r\n// Generate number ranges\r\nfor await (const num of BuuJS.AsyncIterator.range(0, 100, 2)) {\r\n  console.log(num); // 0, 2, 4, 6...\r\n}\r\n\r\n// Chunk async iterables\r\nfor await (const chunk of BuuJS.AsyncIterator.chunk(someAsyncIterable, 5)) {\r\n  console.log(chunk); // Arrays of 5 items\r\n}\r\n\r\n// Parallel processing with concurrency control\r\nfor await (const result of BuuJS.AsyncIterator.parallel(asyncTasks, 4)) {\r\n  console.log(result);\r\n}\r\n```\r\n\r\n### 🔐 Crypto\r\n\r\n```javascript\r\n// Hash data\r\nconst hash = BuuJS.Crypto.hash('data', 'sha256');\r\n\r\n// Stream hashing\r\nconst streamHash = await BuuJS.Crypto.hashStream(readableStream);\r\n\r\n// Generate UUIDs\r\nconst id = BuuJS.Crypto.uuid();\r\n\r\n// Secure random bytes\r\nconst bytes = BuuJS.Crypto.randomBytes(32);\r\n\r\n// Key derivation\r\nconst key = await BuuJS.Crypto.deriveKey('password', 'salt', 100000);\r\n```\r\n\r\n### ⚡ Performance\r\n\r\n```javascript\r\n// Mark performance points\r\nBuuJS.Perf.mark('start');\r\n// ... your code ...\r\nBuuJS.Perf.mark('end');\r\n\r\n// Measure performance\r\nconst measure = BuuJS.Perf.measure('operation', 'start', 'end');\r\n\r\n// Benchmark functions\r\nconst stats = await BuuJS.Perf.benchmark(myFunction, 1000);\r\nconsole.log(stats.opsPerSecond);\r\n\r\n// Memory usage\r\nconst memory = BuuJS.Perf.memoryUsage();\r\n```\r\n\r\n### 👷 Worker Threads\r\n\r\n```javascript\r\n// Run function in worker thread\r\nconst result = await BuuJS.Worker.runInWorker((data) => {\r\n  return data * 2;\r\n}, 42);\r\n\r\n// Create worker pool\r\nconst pool = BuuJS.Worker.createWorkerPool(4);\r\nconst results = await Promise.all([\r\n  pool.execute(heavyTask, data1),\r\n  pool.execute(heavyTask, data2),\r\n  pool.execute(heavyTask, data3)\r\n]);\r\npool.terminate();\r\n```\r\n\r\n### 🌊 Streams\r\n\r\n```javascript\r\n// Transform streams\r\nconst transformer = BuuJS.Stream.createTransform(data => data * 2);\r\n\r\n// Async transform streams\r\nconst asyncTransformer = BuuJS.Stream.createAsyncTransform(async data => {\r\n  return await processData(data);\r\n});\r\n\r\n// Convert async iterables to streams\r\nconst stream = BuuJS.Stream.fromAsyncIterable(asyncIterable);\r\n\r\n// Collect stream data\r\nconst data = await BuuJS.Stream.collect(stream);\r\n```\r\n\r\n### 🔄 Async Utilities\r\n\r\n```javascript\r\n// Delay execution\r\nawait BuuJS.Async.delay(1000);\r\n\r\n// Timeout promises\r\nconst result = await BuuJS.Async.timeout(longRunningPromise, 5000);\r\n\r\n// Retry with backoff\r\nconst data = await BuuJS.Async.retry(unstableFunction, 3, 1000);\r\n\r\n// Async resource tracking\r\nconst resource = BuuJS.Async.createAsyncResource('MyResource');\r\nawait BuuJS.Async.withResource(resource, () => {\r\n  // Code runs in async context\r\n});\r\n```\r\n\r\n## 🧪 Testing\r\n\r\n```bash\r\n# Run tests\r\nnpm test\r\n\r\n# Run benchmarks  \r\nnpm run benchmark\r\n\r\n# Start interactive mode\r\nnpm start\r\n```\r\n\r\n## 📊 Performance\r\n\r\nBuuJS is optimized for maximum performance with the latest Node.js features:\r\n\r\n- **Crypto operations**: 100,000+ ops/sec\r\n- **UUID generation**: 50,000+ ops/sec  \r\n- **Async iteration**: Highly optimized generators\r\n- **Memory efficient**: Minimal heap usage\r\n- **Worker threads**: Full CPU utilization\r\n\r\n## 🎯 Node.js 25.2.0 Optimization\r\n\r\nBuuJS is specifically optimized for Node.js 25.2.0 and later versions, utilizing the latest performance improvements, API enhancements, and modern JavaScript features available in the newest Node.js runtime.\r\n\r\n## 📄 Requirements\r\n\r\n- **Node.js**: 25.2.0 or higher (required for optimal performance)\r\n- **ES Modules**: Required (`\"type\": \"module\"`)\r\n- **Zero Dependencies**: Pure Node.js only\r\n\r\n## 🔧 TypeScript Support\r\n\r\nFull TypeScript definitions included:\r\n\r\n```typescript\r\nimport BuuJS, { BuuCrypto, BuuPerf } from 'buujs';\r\n\r\nconst hash: string = BuuCrypto.hash('data');\r\nconst stats: BenchmarkResult = await BuuPerf.benchmark(() => {\r\n  // Your code\r\n});\r\n```\r\n\r\n## 🌟 Examples\r\n\r\n### Parallel Data Processing\r\n```javascript\r\nimport BuuJS from 'buujs';\r\n\r\nasync function processLargeDataset(data) {\r\n  const chunks = BuuJS.AsyncIterator.chunk(data, 100);\r\n  const results = [];\r\n  \r\n  for await (const chunk of BuuJS.AsyncIterator.parallel(chunks, 4)) {\r\n    results.push(await processChunk(chunk));\r\n  }\r\n  \r\n  return results;\r\n}\r\n```\r\n\r\n### High-Performance Hashing\r\n```javascript\r\nimport BuuJS from 'buujs';\r\n\r\nconst stats = await BuuJS.Perf.benchmark(() => {\r\n  const data = BuuJS.Crypto.randomBytes(1024);\r\n  return BuuJS.Crypto.hash(data);\r\n}, 10000);\r\n\r\nconsole.log(`Hash performance: ${stats.opsPerSecond} ops/sec`);\r\n```\r\n\r\n### Worker Pool Processing\r\n```javascript\r\nimport BuuJS from 'buujs';\r\n\r\nconst pool = BuuJS.Worker.createWorkerPool(8);\r\n\r\nconst tasks = Array.from({ length: 100 }, (_, i) => \r\n  pool.execute(heavyComputation, i)\r\n);\r\n\r\nconst results = await Promise.all(tasks);\r\npool.terminate();\r\n```\r\n\r\n## 📝 License\r\n\r\nMIT © HonneybuuModzDevelopmentTeam\r\n\r\n---\r\n\r\n<div align=\"center\">\r\n  <strong>Made with ⚡ for Node.js 25.2.0+ - Maximizing modern JavaScript potential</strong>\r\n</div>","readmeFilename":"README.md","_rev":"1-54be317b17ba7e6556bdb51fe6097868"}