{"id":17033508,"url":"https://github.com/morgul/qtjs","last_synced_at":"2026-04-15T20:03:02.598Z","repository":{"id":142042711,"uuid":"10676540","full_name":"Morgul/qtjs","owner":"Morgul","description":"An implementation of QList, QString and QHash ontop of Javascript's Array, String, and Object.","archived":false,"fork":false,"pushed_at":"2013-07-11T18:59:03.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T21:34:23.762Z","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/Morgul.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":"2013-06-13T21:38:16.000Z","updated_at":"2014-01-10T19:20:28.000Z","dependencies_parsed_at":"2023-03-12T11:30:27.177Z","dependency_job_id":null,"html_url":"https://github.com/Morgul/qtjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Morgul/qtjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fqtjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fqtjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fqtjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fqtjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Morgul","download_url":"https://codeload.github.com/Morgul/qtjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fqtjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272186219,"owners_count":24888333,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-14T08:35:02.476Z","updated_at":"2026-04-15T20:03:02.550Z","avatar_url":"https://github.com/Morgul.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qtjs\n\nThis is an implementation of some of Qt's core types, ontop of Javascript's core types. This project modifies the\nprototypes of Array, String, and Object to adhere closer to QList, QString, and QMap. This makes Javascript much easier\nto work with from inside QML.\n\n## But, isn't modifying prototypes bad?\n\nGenerally, yes. Modifying the prototypes of the core types is like changing the language's API. Anything you code against\nit will only work with your changes, and things coded against the default api might break. In practice, I've found that\nmodifying the prototype is acceptible when you're adding a small number of functions you need globally. Still, in general,\nI don't recommend it.\n\nSo why do it? Simple. This is targeted at a _bare-bones QML Environment_. When writing QML, I don't want to have to fight\nwith Javascript, or change mental gears and use something like [lodash](http://lodash.com/). I'd rather use Qt's types,\nor at the very least, Qt's API.\n\nThat's what this is for.\n\n## Why not make QList, QString and QMap work-alikes?\n\nGreat question. Mostly, because I'm a bit lazy, it's slightly more work, and you'll be wrapping values returned from Qt\nin these custom types constantly.\n\nI have considered having a version of this library that does exactly that. So the developer can choose which method he'd\nprefer. That's not what it does currently, but I'm open to it.\n\n## Unit tests\n\nFirst, install node.js. Then, simply:\n\n```bash\n$ npm install\n```\n\nOnce that completes, you can run the unit tests with:\n\n```bash\n$ npm test\n```\n\nThis will run Karma, and try to launch Google Chrome. You can change what browser it launched in the config. Also, I\nhave it set to continuous integration mode, since that's the easiest for me while developing.\n\n## License\n\nLicensed under the MIT license. See LICENSE for details.\n\n## Inclusion in Qt\n\nOne of the goals for this project is to get this code included in Qt, as a nice extra. We'll see how that goes.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorgul%2Fqtjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorgul%2Fqtjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorgul%2Fqtjs/lists"}