{"id":20770376,"url":"https://github.com/david-fernando/noloopfor","last_synced_at":"2025-04-30T13:43:57.622Z","repository":{"id":53778447,"uuid":"275944807","full_name":"david-fernando/noLoopFor","owner":"david-fernando","description":"JavaScript library for making functional loops","archived":false,"fork":false,"pushed_at":"2021-05-02T02:26:58.000Z","size":2370,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T21:45:41.996Z","etag":null,"topics":["for-loop","for-loop-in-javascripts","for-loops","function-loop","functional","functional-js","functional-programming","javascript","javascript-library","js-funcional","js-lib","loop","node-js","nodejs","npm-module","npm-package","recursive","recursive-functions"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/noloopfor","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/david-fernando.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-29T23:03:42.000Z","updated_at":"2021-07-25T20:51:22.000Z","dependencies_parsed_at":"2022-09-10T23:40:20.100Z","dependency_job_id":null,"html_url":"https://github.com/david-fernando/noLoopFor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-fernando%2FnoLoopFor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-fernando%2FnoLoopFor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-fernando%2FnoLoopFor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-fernando%2FnoLoopFor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/david-fernando","download_url":"https://codeload.github.com/david-fernando/noLoopFor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225034584,"owners_count":17410528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["for-loop","for-loop-in-javascripts","for-loops","function-loop","functional","functional-js","functional-programming","javascript","javascript-library","js-funcional","js-lib","loop","node-js","nodejs","npm-module","npm-package","recursive","recursive-functions"],"created_at":"2024-11-17T12:09:01.866Z","updated_at":"2024-11-17T12:09:02.858Z","avatar_url":"https://github.com/david-fernando.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"\" rel=\"noopener\"\u003e\r\n \u003cimg width=200px height=200px src=\"https://images2.imgbox.com/23/40/erCGj2jK_o.png\" alt=\"No loop for\"\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003ch1 align=\"center\"\u003eNo loop for\u003c/h1\u003e\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n  \r\n![GitHub top language](https://img.shields.io/github/languages/top/david-fernando/noLoopFor) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/f39ced0748b84cf181d948c33dd510e2)](https://www.codacy.com/manual/david-fernando/noLoopFor?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=david-fernando/noLoopFor\u0026amp;utm_campaign=Badge_Grade) [![GitHub license](https://img.shields.io/github/license/david-fernando/noLoopFor)](https://github.com/david-fernando/noLoopFor/blob/master/LICENSE)\r\n\r\n\u003c/li\u003e\r\n\u003c/div\u003e\r\n\r\n---\r\n\r\n\r\n### Languages\r\n\u003cul style=\"display:inline; list-style-type:none\"\u003e\r\n  \u003cli style=\"list-style-type:none\"\u003e\u003ca href=\"https://github.com/david-fernando/noLoopFor/blob/master/LEIAME.md\"\u003ePortuguese\u003c/li\u003e\r\n  \u003cli style=\"list-style-type:none\"\u003e\u003ca href=\"#\"\u003eEnglish\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\r\n### About\r\nJavaScript library for making functional loops\r\n\r\n### Get Started\r\n\r\n  - \u003ch4\u003eOn the Node JS\u003c/h4\u003e\r\n  To install on the node, just execute the command below on the terminal\r\n  ```\r\n  npm install noloopfor\r\n  ```\r\n  To import the the desired function use destructuring assignment, for example, the bellow code is importing the function loop.\r\n  ```javascript\r\n  const { loop } = require('noloopfor')\r\n  ```\r\n  If using React JS, or some other JS library that allows you to use the ESM syntax, you can use it with destructuring assignment, as in the example below\r\n  ```javascript\r\n  import { loop } from 'noloopfor'\r\n  ```\r\n - \u003ch4\u003eOn the browser\u003c/h4\u003e\r\n  If you're out of Node JS you don't need to install anything, just import the desired function using ESM syntax, for example, the below code is importing the function loop, and then is implementing the same.\r\n  \r\n  ```html\r\n  \u003cscript type=\"module\"\u003e\r\n  import { loop } from 'https://cdn.jsdelivr.net/gh/david-fernando/noForLoop/dist/noforloop.js'\r\n\r\n  const number = 10\r\n\r\n  loop(number, 20, (iterations)=\u003e{\r\n   console.log(iterations)\r\n  })\r\n\r\n  \u003c/script\u003e\r\n  ```\r\n\r\n  - \u003ch4\u003eWith Typscript\u003c/h4\u003e\r\n  To use it with TypeScript, just install the TypeScript declarations with one of the commands below\r\n  ```javascript\r\n  npm install @types/noloopfor\r\n\r\n  // or\r\n\r\n  yarn add @types/noloopfor\r\n\r\n  ```\r\n### Reference\r\n\r\n### loop\r\n   - \u003ch4\u003eSyntax\u003c/h4\u003e\r\n  ```javascript\r\n  loop(number, numberOfIterations, callback)\r\n  ```\r\n  - \u003ch4\u003eExample\u003c/h4\u003e\r\n  ```javascript\r\n  const number = 10\r\n  loop(number, 20, (iterations)=\u003e{\r\n   console.log(iterations)\r\n  })\r\n  ```\r\n### loopStep\r\n   - \u003ch4\u003eSyntax\u003c/h4\u003e\r\n  ```javascript\r\n  loopStep(number, numberOfIterations, numberStep, callback)\r\n  ```\r\n  - \u003ch4\u003eExample\u003c/h4\u003e\r\n  ```javascript\r\n  const number = 10\r\n  loopStep(number, 100, 10, (iterations)=\u003e{\r\n   console.log(iterations)\r\n  })\r\n  ```\r\n  \r\n\r\n### decrementLoop\r\n   - \u003ch4\u003eSyntax\u003c/h4\u003e\r\n  ```javascript\r\n  decrementLoop(number, numberTarget, callback)\r\n  ```\r\n  - \u003ch4\u003eExample\u003c/h4\u003e\r\n  ```javascript\r\n  const number = 10\r\n  decrementLoop(number, 1, (iterations)=\u003e{\r\n   console.log(iterations)\r\n  })\r\n  ```\r\n  \r\n### decrementStep\r\n   - \u003ch4\u003eSyntax\u003c/h4\u003e\r\n  ```javascript\r\n  decrementStep(number, numberTarget, numberStep, callback)\r\n  ```\r\n  - \u003ch4\u003eExample\u003c/h4\u003e\r\n  ```javascript\r\n  const number = 20\r\n  decrementStep(number, 10, 1, (iterations)=\u003e{\r\n   console.log(iterations)\r\n  })\r\n  ```\r\n\r\n### Licence:\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-fernando%2Fnoloopfor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavid-fernando%2Fnoloopfor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-fernando%2Fnoloopfor/lists"}