{"id":15361289,"url":"https://github.com/3imed-jaberi/arraylist-tn","last_synced_at":"2026-01-06T20:48:11.145Z","repository":{"id":57184229,"uuid":"189451024","full_name":"3imed-jaberi/arraylist-tn","owner":"3imed-jaberi","description":"This module is for use ArrayList in javascript/typescript like java dev .. ","archived":false,"fork":false,"pushed_at":"2021-11-20T00:32:06.000Z","size":96,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-01T22:42:49.438Z","etag":null,"topics":["arraylist","collections","es6","java","javascript","node-module","node-package","npm","npm-module","npm-package","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/arraylist-tn","language":"TypeScript","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/3imed-jaberi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-30T16:56:40.000Z","updated_at":"2021-11-20T00:32:09.000Z","dependencies_parsed_at":"2022-08-23T01:31:05.138Z","dependency_job_id":null,"html_url":"https://github.com/3imed-jaberi/arraylist-tn","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3imed-jaberi%2Farraylist-tn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3imed-jaberi%2Farraylist-tn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3imed-jaberi%2Farraylist-tn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3imed-jaberi%2Farraylist-tn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3imed-jaberi","download_url":"https://codeload.github.com/3imed-jaberi/arraylist-tn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245917005,"owners_count":20693444,"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":["arraylist","collections","es6","java","javascript","node-module","node-package","npm","npm-module","npm-package","typescript"],"created_at":"2024-10-01T12:54:25.768Z","updated_at":"2026-01-06T20:48:11.104Z","avatar_url":"https://github.com/3imed-jaberi.png","language":"TypeScript","readme":"# ARRAYLIST-TN\n\n---\n\n[![Build Status](https://travis-ci.org/3imed-jaberi/arraylist-tn.svg?branch=master)](https://travis-ci.org/3imed-jaberi/arraylist-tn) \u0026nbsp; [![Coverage Status](https://coveralls.io/repos/github/3imed-jaberi/arraylist-tn/badge.svg?branch=master)](https://coveralls.io/github/3imed-jaberi/arraylist-tn?branch=master)\n\n### You can now use the arraylist in your TypeScript and JavaScript code easily.\n\n## Installation\n\n---\n\n```bash\n# npm\nnpm install arraylist-tn\n# yarn\nyarn add arraylist-tn\n```\n\n## Usage\n\n---\n\n#### You can use this module like [ArrayList in the JAVA](https://www.w3schools.com/java/java_arraylist.asp) .. you don't need to change any thing ..\n\n## Support Methods\n\n---\n\nPlease see the list [here](https://github.com/3imed-jaberi/arraylist-tn/blob/master/src/ArrayList.model.ts).\n\n## Example\n\n---\n\nThis is a basic example or follow all test cases [here](https://github.com/3imed-jaberi/arraylist-tn/test/ArrayList.spec.ts):\n\n```javascript\nconst ArrayList = require(\"arraylist-tn\"); // || const { ArrayList } = require ('arraylist-tn');\n\nconst myList = new ArrayList();\nmyList.add(\"imed jaberi\");\nconsole.log(myList.getAll()); // [ 'imed jaberi' ]\nmyList.addAll([\"nodejs\", \"js-lover\", \"tunisia\", \"red\", \"CA\"]);\nconsole.log(myList.getAll()); // [ 'imed jaberi', 'nodejs', 'js-lover', 'tunisia', 'red', 'CA' ]\nmyList.remove(4);\nconsole.log(myList.getAll()); // [ 'imed jaberi', 'nodejs', 'js-lover', 'tunisia', 'CA' ]\nconsole.log(myList.size()); // 5\nconsole.log(myList.contains(\"CA\")); // true\nconsole.log(myList.isEmpty()); // false\nmyList.removeAll();\nmyList.addAll([100, 50, -50, 0, -100]);\nmyList.sort(); // you can add \"asc\" as params\nconsole.log(myList.getAll()); // [ -100, -50, 0, 50, 100 ]\nmyList.sort(\"desc\");\nconsole.log(myList.getAll()); // [ 100, 50, 0, -50, -100 ]\n```\n\n#### License\n\n---\n\n[MIT](LICENSE) \u0026copy; [Imed Jaberi](https://github.com/3imed-jaberi)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3imed-jaberi%2Farraylist-tn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3imed-jaberi%2Farraylist-tn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3imed-jaberi%2Farraylist-tn/lists"}