{"id":18709129,"url":"https://github.com/jojoee/cyclicaljs","last_synced_at":"2025-11-09T11:30:23.692Z","repository":{"id":191014540,"uuid":"683720837","full_name":"jojoee/cyclicaljs","owner":"jojoee","description":"Encode item list into \"cyclical\"","archived":false,"fork":false,"pushed_at":"2023-08-28T01:41:34.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T08:46:36.246Z","etag":null,"topics":["cyclic","cyclical","normalization","normalize"],"latest_commit_sha":null,"homepage":"https://jojoee.github.io/cyclicaljs/","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/jojoee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-27T13:49:48.000Z","updated_at":"2023-08-28T03:10:12.000Z","dependencies_parsed_at":"2024-11-07T12:32:16.797Z","dependency_job_id":"d3e3f235-da72-4c71-bea3-0d0d8ec177aa","html_url":"https://github.com/jojoee/cyclicaljs","commit_stats":null,"previous_names":["jojoee/cyclicaljs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fcyclicaljs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fcyclicaljs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fcyclicaljs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fcyclicaljs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jojoee","download_url":"https://codeload.github.com/jojoee/cyclicaljs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239571579,"owners_count":19661165,"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":["cyclic","cyclical","normalization","normalize"],"created_at":"2024-11-07T12:26:23.937Z","updated_at":"2025-11-09T11:30:23.641Z","avatar_url":"https://github.com/jojoee.png","language":"JavaScript","readme":"# cyclicaljs\n\n[![Version - npm](https://img.shields.io/npm/v/cyclicaljs.svg)](https://www.npmjs.com/package/cyclicaljs)\n[![License - npm](https://img.shields.io/npm/l/cyclicaljs.svg)](http://opensource.org/licenses/MIT)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n[![Greenkeeper badge](https://badges.greenkeeper.io/jojoee/cyclicaljs.svg)](https://greenkeeper.io/)\n[![Codecov](https://img.shields.io/codecov/c/github/jojoee/cyclicaljs.svg)](https://codecov.io/github/jojoee/cyclicaljs)\n[![Mutation testing badge](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fjojoee%2Fcyclicaljs%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/jojoee/cyclicaljs/master)\n[![continuous integration](https://github.com/jojoee/cyclicaljs/workflows/continuous%20integration/badge.svg?branch=master)](https://github.com/jojoee/cyclicaljs/actions/workflows/continuous-integration.yml)\n[![release](https://github.com/jojoee/cyclicaljs/workflows/release/badge.svg?branch=master)](https://github.com/jojoee/cyclicaljs/actions/workflows/release.yml)\n[![runnable](https://github.com/jojoee/cyclicaljs/workflows/runnable/badge.svg?branch=master)](https://github.com/jojoee/cyclicaljs/actions/workflows/runnable.yml)\n\nEncode item list into \"cyclical\"\n\n## Installation\n\n```\n// CommonJS\nnpm install cyclicaljs\nconst { encode } = require('cyclicaljs')\n\n// githack\n\u003cscript src=\"https://raw.githack.com/jojoee/cyclicaljs/master/src/index.js\"\u003e\u003c/script\u003e\n\n// ES6\nnpm install cyclicaljs\nimport { encode } from \"cyclicaljs\"\n```\n\n## Example usage\n\n```javascript\nconst { encode } = require('cyclicaljs')\n\n// example2\nconst nItems2 = 52\nconst items2 = Array.from({ length: 60 }, (_, i) =\u003e i).map(item =\u003e item % nItems2)\nconst encodedItems2 = encode(items2, nItems2)\nconsole.log('encodedItems2', encodedItems2)\n```\n\n![example2](https://raw.githack.com/jojoee/cyclicaljs/master/example/example2.png)\n\n## Other languages\n\n- Python: [jojoee/cyclical](https://github.com/jojoee/cyclical)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fcyclicaljs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjojoee%2Fcyclicaljs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fcyclicaljs/lists"}