{"id":37599872,"url":"https://github.com/wtetsu/uniqlist","last_synced_at":"2026-01-16T10:01:34.943Z","repository":{"id":57386346,"uuid":"161418557","full_name":"wtetsu/uniqlist","owner":"wtetsu","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-18T12:24:33.000Z","size":151,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-10T23:44:23.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/wtetsu.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":"2018-12-12T01:58:49.000Z","updated_at":"2020-08-14T16:21:34.000Z","dependencies_parsed_at":"2022-09-05T03:20:27.034Z","dependency_job_id":null,"html_url":"https://github.com/wtetsu/uniqlist","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/wtetsu/uniqlist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtetsu%2Funiqlist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtetsu%2Funiqlist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtetsu%2Funiqlist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtetsu%2Funiqlist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtetsu","download_url":"https://codeload.github.com/wtetsu/uniqlist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtetsu%2Funiqlist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2026-01-16T10:01:33.950Z","updated_at":"2026-01-16T10:01:34.918Z","avatar_url":"https://github.com/wtetsu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UniqList\n\n[![Build Status](https://travis-ci.org/wtetsu/uniqlist.svg?branch=master)](https://travis-ci.org/wtetsu/uniqlist)\n[![Code Climate](https://codeclimate.com/github/wtetsu/uniqlist/badges/gpa.svg)](https://codeclimate.com/github/wtetsu/uniqlist)\n[![npm version](https://badge.fury.io/js/uniqlist.svg)](https://badge.fury.io/js/uniqlist)\n\n## Install\n\n```\nnpm install uniqlist\n```\n\n## How to use\n\n### Example 1\n\n```js\nconst UniqList = require(\"uniqlist\");\nconst ul = new UniqList();\n\nul.push(10);\nul.push(10);\nul.push(11);\nul.push(11);\nul.push(11);\n\nul.size(); // 2\nul.get(0); // 10\nul.get(1); // 11\n\nconst arr = ul.toArray(); // [10, 11]\n```\n\n### Example 2\n\n```js\nconst UniqList = require(\"uniqlist\");\nconst ul = new UniqList();\n\nul.push({ msg: \"hello!\" }, \"key10\");\nul.push({ msg: \"hello!!\" }, \"key10\");\nul.push({ msg: \"hello!!!\" }, \"key10\");\nul.push({ msg: \"hello?\" }, \"key11\");\nul.push({ msg: \"hello??\" }, \"key11\");\nul.push({ msg: \"hello???\" }, \"key11\");\n\nul.size(); // 2\nul.get(0).msg; // \"hello!\"\nul.get(1).msg; // \"hello?\"\n\nconst arr = ul.toArray(); // [{ msg:\"hello!\"}, { msg:\"hello?\"}]\n```\n\n### Example 3\n\n```js\nconst ul = new UniqList();\nul.filter = a =\u003e a % 2 == 0;\n\nul.push(1);\nul.push(3);\nul.push(5);\n\nul.size(); // 0\n\nul.push(1);\nul.push(2);\nul.push(3);\nul.push(4);\n\nul.size(); // 2\n\nconst arr = ul.toArray(); // [2, 4]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtetsu%2Funiqlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtetsu%2Funiqlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtetsu%2Funiqlist/lists"}