{"id":17419887,"url":"https://github.com/bendrucker/map-times","last_synced_at":"2025-08-07T04:44:36.215Z","repository":{"id":35579182,"uuid":"39851585","full_name":"bendrucker/map-times","owner":"bendrucker","description":"Iterate through a count collecting results for each index","archived":false,"fork":false,"pushed_at":"2019-08-19T21:46:14.000Z","size":7,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T07:05:13.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bendrucker.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":"2015-07-28T18:42:27.000Z","updated_at":"2023-09-08T17:00:02.000Z","dependencies_parsed_at":"2022-08-04T03:45:22.972Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/map-times","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bendrucker/map-times","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fmap-times","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fmap-times/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fmap-times/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fmap-times/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/map-times/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fmap-times/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269201179,"owners_count":24377451,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-17T02:35:22.042Z","updated_at":"2025-08-07T04:44:36.135Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# map-times [![Build Status](https://travis-ci.org/bendrucker/map-times.svg?branch=master)](https://travis-ci.org/bendrucker/map-times) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/map-times.svg)](https://greenkeeper.io/)\n\n\u003e Iterate through a count collecting results for each index\n\n\n## Install\n\n```\n$ npm install --save map-times\n```\n\n\n## Usage\n\n```js\nvar times = require('map-times')\n\ntimes(3, function (index) {\n  return index * 2  \n})\n//=\u003e [0, 2, 4]\n```\n\n## API\n\n#### `times(count, callback)` -\u003e `array`\n\n##### count\n\n*Required*  \nType: `number`\n\nThe number of times to call the callback.\n\n##### callback\n\n*Required*  \nType: `function`  \nArguments: `index`\n\nA function that will be called the specified number of times with the index of the call.\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fmap-times","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fmap-times","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fmap-times/lists"}