From 4904830cbba8005db05ad07d8f05d4f0f6befd9f Mon Sep 17 00:00:00 2001 From: Timur Sevimli Date: Fri, 6 Sep 2024 00:20:16 +0300 Subject: [PATCH] Rename module --- README.md | 22 +++++++++++----------- package-lock.json | 8 ++++---- package.json | 12 ++++++------ 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index feb2e9b..f35cb85 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ -# Conqueue +# kuyruk
-[![ci Status](https://github.com/timursevimli/conqueue/workflows/Testing%20CI/badge.svg)](https://github.com/timursevimli/conqueue/actions?query=workflow%3A%22Testing+CI%22+branch%3Amaster) -[![snyk](https://snyk.io/test/github/timursevimli/conqueue/badge.svg)](https://snyk.io/test/github/timursevimli/conqueue) -[![npm downloads/month](https://img.shields.io/npm/dm/conqueue.svg)](https://www.npmjs.com/package/conqueue) -[![npm downloads](https://img.shields.io/npm/dt/conqueue.svg)](https://www.npmjs.com/package/conqueue) -[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/timursevimli/conqueue/blob/master/LICENSE) +[![ci Status](https://github.com/timursevimli/kuyruk/workflows/Testing%20CI/badge.svg)](https://github.com/timursevimli/kuyruk/actions?query=workflow%3A%22Testing+CI%22+branch%3Amaster) +[![snyk](https://snyk.io/test/github/timursevimli/kuyruk/badge.svg)](https://snyk.io/test/github/timursevimli/kuyruk) +[![npm downloads/month](https://img.shields.io/npm/dm/kuyruk.svg)](https://www.npmjs.com/package/kuyruk) +[![npm downloads](https://img.shields.io/npm/dt/kuyruk.svg)](https://www.npmjs.com/package/kuyruk) +[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/timursevimli/kuyruk/blob/master/LICENSE)
## Description -**Conqueue** is a simple yet powerful asynchronous queue implementation for managing concurrency and controlling the flow of asynchronous tasks. It supports various modes, such as callbacks, promises, FIFO, LIFO, priority, factor and round-robin, providing flexibility for different use cases. +**kuyruk** is a powerful asynchronous queue implementation for managing concurrency and controlling the flow of asynchronous tasks. It supports various modes, such as callbacks, promises, FIFO, LIFO, priority, factor and round-robin, providing flexibility for different use cases. ## Features @@ -26,15 +26,15 @@ ## Installation ```bash -npm install conqueue +npm install kuyruk ``` ## Usage ```javascript -const Queue = require('conqueue'); +const Queue = require('kuyruk'); -const job = (taskId, cb) => { +const someAsyncTask = (taskId, cb) => { setTimeout(() => { if (taskId === 4) { cb(new Error('Biggest error!!!')); @@ -46,7 +46,7 @@ const job = (taskId, cb) => { // Create a queue with a concurrency limit of 3 const queue = new Queue(3) - .process(job) + .process(someAsyncTask) .done((err, res) => { if (err) console.error(err); else console.log(res); diff --git a/package-lock.json b/package-lock.json index ef727bc..0591188 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "conqueue", - "version": "0.0.2", + "name": "kuyruk", + "version": "0.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "conqueue", - "version": "0.0.2", + "name": "kuyruk", + "version": "0.0.3", "license": "MIT", "devDependencies": { "eslint": "^8.56.0", diff --git a/package.json b/package.json index eaa0b3f..d1e41fd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "conqueue", - "version": "0.0.2", - "description": "Multifunctional Concurrent Queue", + "name": "kuyruk", + "version": "0.0.3", + "description": "Multifunctional Asynchronous Concurrent Queue", "main": "queue.js", "types": "queue.d.ts", "engines": { @@ -10,7 +10,7 @@ "readmeFilename": "README.md", "repository": { "type": "git", - "url": "git+https://github.com/timursevimli/conqueue.git" + "url": "git+https://github.com/timursevimli/kuyruk.git" }, "keywords": [ "queue", @@ -37,10 +37,10 @@ "author": "Timur Sevimli ", "license": "MIT", "bugs": { - "url": "https://github.com/timursevimli/conqueue/issues", + "url": "https://github.com/timursevimli/kuyruk/issues", "email": "svmlitimur+github@gmail.com" }, - "homepage": "https://github.com/timursevimli/conqueue#readme", + "homepage": "https://github.com/timursevimli/kuyruk#readme", "scripts": { "test": "npm run lint && npm run types && tap --disable-coverage run", "types": "tsc -p tsconfig.json",