{"id":16645621,"url":"https://github.com/boolangery/d-duktape","last_synced_at":"2026-04-19T21:08:28.319Z","repository":{"id":56377923,"uuid":"155589275","full_name":"boolangery/d-duktape","owner":"boolangery","description":"Duktape high level bindings","archived":false,"fork":false,"pushed_at":"2020-11-11T10:29:55.000Z","size":929,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T20:07:53.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boolangery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-31T16:26:43.000Z","updated_at":"2020-11-11T10:29:57.000Z","dependencies_parsed_at":"2022-08-15T17:40:22.343Z","dependency_job_id":null,"html_url":"https://github.com/boolangery/d-duktape","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolangery%2Fd-duktape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolangery%2Fd-duktape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolangery%2Fd-duktape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolangery%2Fd-duktape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boolangery","download_url":"https://codeload.github.com/boolangery/d-duktape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243181227,"owners_count":20249434,"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":[],"created_at":"2024-10-12T08:24:32.320Z","updated_at":"2025-12-24T21:52:33.173Z","avatar_url":"https://github.com/boolangery.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"d-duktape\n=========\n\nHigh level duktape D bindings.\n\nQuick start with dub\n--------------------\n\n```json\n\"dependencies\": {\n\t\"duktaped\": \"*\"\n}\n```\n\nDocumentation\n-------------\n\n```bash\n$ dub build --build=ddox\n$ firefox docs/index.html\n````\n\nExample\n-------\n\n```d\n/**\n    Duktape exemples.\n*/\nimport duktape;\nimport std.stdio;\n\n\nenum Direction { up, down, left, right }\n\nstatic void print(string msg)\n{\n    writeln(msg);\n}\n\nclass Person\n{\nprivate:\n    Direction[] _moveHistory;\n\npublic:\n    this() { }\n\n\n    void move(Direction dir)\n    {\n        _moveHistory ~= dir;\n    }\n\n    @property Direction[] moveHistory()\n    {\n        return _moveHistory;\n    }\n}\n\nint main()\n{\n    auto ctx = new DukContext();\n\n    ctx.registerGlobal!print;\n\n    ctx.createNamespace(\"Game\")\n        .register!Direction\n        .register!Person\n        .finalize();\n\n    ctx.evalString(q\"{\n        p = new Game.Person();\n\n        p.move(Game.Direction.up);\n        p.move(Game.Direction.down);\n        p.move(Game.Direction.left);\n        p.move(Game.Direction.right);\n\n        print(p.moveHistory().toString());\n    }\");\n\n    return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolangery%2Fd-duktape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboolangery%2Fd-duktape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolangery%2Fd-duktape/lists"}