{"id":17797459,"url":"https://github.com/wolfadex/questing","last_synced_at":"2025-04-02T03:21:23.180Z","repository":{"id":106162569,"uuid":"115803071","full_name":"wolfadex/questing","owner":"wolfadex","description":null,"archived":false,"fork":false,"pushed_at":"2017-12-31T00:45:48.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T19:50:41.115Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wolfadex.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-30T14:48:04.000Z","updated_at":"2017-12-30T23:37:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb8e898a-56aa-4d64-8194-76c2de80c977","html_url":"https://github.com/wolfadex/questing","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"b642898b293b32975df2b18947affa95108859c4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfadex%2Fquesting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfadex%2Fquesting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfadex%2Fquesting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfadex%2Fquesting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolfadex","download_url":"https://codeload.github.com/wolfadex/questing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246747968,"owners_count":20827241,"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-27T11:56:00.797Z","updated_at":"2025-04-02T03:21:23.155Z","avatar_url":"https://github.com/wolfadex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# questing\n\n\n### Install:\n`yarn add questing` or `npm install --save questing`\n\n### Use:\n`gameData.json`\n```JSON\n{\n  \"title\": \"Brief\",\n  \"author\": \"Wolfgang Schuster\",\n  \"inventory\": [],\n  \"location\": \"start\",\n  \"items\": {\n    \"pebble\": \"A tiny stone, not sure it could be used for anything\"\n  },\n  \"spaces\": {\n    \"start\": {\n      \"description\": \"A small white room with a red door and a steel gate.\",\n      \"exits\": {\n        \"red_door\": {\n          \"destination\": \"end\",\n          \"locked\": \"pebble\"\n        },\n        \"steel_gate\": {\n          \"destination\": \"other\",\n          \"locked\": false\n        }\n      },\n      \"items\": []\n    },\n    \"other\": {\n      \"description\": \"A circular room with a steel gate.\",\n      \"exits\": {\n        \"steel_gate\": {\n          \"destination\": \"start\",\n          \"locked\": false\n        }\n      },\n      \"items\": [\n        \"pebble\"\n      ]\n    },\n    \"end\": {\n      \"description\": \"A large open field, you've won the game!\",\n      \"exits\": {\n        \"red_door\": {\n          \"destination\": \"start\",\n          \"locked\": false\n        }\n      },\n      \"items\": []\n    }\n  }\n}\n\n```\n`myGame.js`\n```JavaScript\nconst questing = require('./index');\nconst gameData = require('./gameData.json');\n\nquesting(gameData);\n\n```\n\nThen just `node ./myGame` from a terminal!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfadex%2Fquesting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolfadex%2Fquesting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfadex%2Fquesting/lists"}