{"id":16125541,"url":"https://github.com/semibran/n-gon","last_synced_at":"2025-08-28T17:36:17.130Z","repository":{"id":57307264,"uuid":"93794303","full_name":"semibran/n-gon","owner":"semibran","description":":stop_sign: create regular polygons with n sides","archived":false,"fork":false,"pushed_at":"2018-03-08T20:00:00.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T23:24:27.680Z","etag":null,"topics":["geometry","math","n-gon","polygon"],"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/semibran.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":"2017-06-08T21:44:13.000Z","updated_at":"2018-03-12T16:19:41.000Z","dependencies_parsed_at":"2022-09-20T22:02:07.825Z","dependency_job_id":null,"html_url":"https://github.com/semibran/n-gon","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/semibran%2Fn-gon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fn-gon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fn-gon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fn-gon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semibran","download_url":"https://codeload.github.com/semibran/n-gon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485291,"owners_count":20946398,"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":["geometry","math","n-gon","polygon"],"created_at":"2024-10-09T21:29:57.177Z","updated_at":"2025-04-06T13:12:43.773Z","avatar_url":"https://github.com/semibran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# n-gon\n\u003e create regular polygons with `n` sides\n\n![stop sign](stop.png \"hmmm\")\n\n## usage\n[![npm badge]][npm package]\n\nA \"polygon\" is just an array of `[ x, y ]` points, which allows you to map it to a new size and position.\n```js\nconst gon = require('n-gon')\n\nlet polygon = gon(7)\n  .map(([ x, y ]) =\u003e [\n    x * size + offset[0],\n    y * size + offset[1]\n  ])\n```\n\n[npm badge]:      https://nodei.co/npm/n-gon.png?mini\n[npm package]:    https://www.npmjs.com/package/n-gon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fn-gon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemibran%2Fn-gon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fn-gon/lists"}