{"id":15296081,"url":"https://github.com/afeiship/next-sample","last_synced_at":"2026-01-27T10:01:54.759Z","repository":{"id":57122849,"uuid":"243951870","full_name":"afeiship/next-sample","owner":"afeiship","description":"Get an/some element from array like target.","archived":false,"fork":false,"pushed_at":"2024-10-23T03:14:09.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-18T21:56:25.338Z","etag":null,"topics":["next","rand","random","sample"],"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-02-29T10:55:13.000Z","updated_at":"2024-10-23T03:14:12.000Z","dependencies_parsed_at":"2024-12-02T20:42:32.128Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-sample","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28811495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["next","rand","random","sample"],"created_at":"2024-09-30T18:09:15.468Z","updated_at":"2026-01-27T10:01:54.721Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","readme":"# next-sample\n\u003e Get an/some element from array like target.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-sample\n```\n\n## usage\n```js\nimport '@jswork/next-sample';\n\nconst arr = [1,2,3,4,5,6,7];\n\nnx.sample(arr); // 2\nnx.sample(arr); // 5\n\nnx.sample(arr, 1); // [5]\nnx.sample(arr, 2); // [1, 2]\nnx.sample(arr, 2); // [3, 6]\nnx.sample(arr, 2); // [5, 6]\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-sample/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-sample\n[version-url]: https://npmjs.org/package/@jswork/next-sample\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-sample\n[license-url]: https://github.com/afeiship/next-sample/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-sample\n[size-url]: https://github.com/afeiship/next-sample/blob/master/dist/next-sample.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-sample\n[download-url]: https://www.npmjs.com/package/@jswork/next-sample\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-sample/lists"}