{"id":20485437,"url":"https://github.com/dlustre/babel-plugin-thy-script","last_synced_at":"2025-10-13T14:33:27.777Z","repository":{"id":199546948,"uuid":"702336046","full_name":"dlustre/babel-plugin-thy-script","owner":"dlustre","description":"🎭 thy most belov'd plugin","archived":false,"fork":false,"pushed_at":"2023-10-11T06:42:30.000Z","size":372,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T03:51:16.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/dlustre.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":"2023-10-09T06:00:22.000Z","updated_at":"2025-03-17T00:24:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"08250480-5a82-4c25-94a8-b5765fff588b","html_url":"https://github.com/dlustre/babel-plugin-thy-script","commit_stats":null,"previous_names":["dlustre/babel-plugin-thy-script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dlustre/babel-plugin-thy-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlustre%2Fbabel-plugin-thy-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlustre%2Fbabel-plugin-thy-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlustre%2Fbabel-plugin-thy-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlustre%2Fbabel-plugin-thy-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlustre","download_url":"https://codeload.github.com/dlustre/babel-plugin-thy-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlustre%2Fbabel-plugin-thy-script/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267513926,"owners_count":24099848,"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-07-28T02:00:09.689Z","response_time":68,"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-11-15T16:30:25.745Z","updated_at":"2025-10-13T14:33:22.750Z","avatar_url":"https://github.com/dlustre.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎭 Thy Script 🎭\n\n## Thy most belov'd plugin\n\nThe Shakespearean/Medieval version of [✨Glowup Vibes✨](https://github.com/christina-de-martinez/babel-plugin-glowup-vibes) by @christina-de-martinez\n\n\n![Thy Script Example](thyScriptCropped.png)\n\n(I used the [Almendra](https://fonts.google.com/specimen/Almendra) font)\n\nBig thanks to Christina for giving me the greenlight!\n\nCheck out Christina's Instagram Vid: https://www.instagram.com/reel/Cxvwz76vBus/\n\n## What does it do?\n\nIt transpiles Shakespearean English into valid JavaScript.\n\n## How to use it\n\n* Install `npm install babel-plugin-thy-script --save`\n* Set up babel and add `babel-plugin-thy-script` to your list of plugins\n* Become Shakespeare -- bring forth your poetic side as you code. Use the options outlined in [Options](#options). Then run your build command to make your poetry readable for the commonfolk. Look for the compiled scripture (regular javascript) wherever you set the output to go (in our example below, it'll be in `lib/compiled.js`)\n\nIn case you need more detailed instructions than that:\n\nTo set up babel, create a `babel.config.json` file and add the following to it:\n\n```json\n{\n    \"presets\": [\n        [\n            \"@babel/preset-env\",\n            {\n                \"targets\": {\n                    \"edge\": \"17\",\n                    \"firefox\": \"60\",\n                    \"chrome\": \"67\",\n                    \"safari\": \"11.1\"\n                },\n                \"useBuiltIns\": \"usage\",\n                \"corejs\": \"3.6.5\"\n            }\n        ]\n    ],\n    \"plugins\": [\"babel-plugin-thy-script\"]\n}\n```\n\nAdd something like this to your `package.json` file:\n\n```json\n\"scripts\": {\n    \"build\": \"babel ./src/script.js --out-file ./lib/compiled.js\"\n},\n```\n\nNote: Like Glowup Vibes, this was made using Babel 7 and untested on anything else. No guarantees that this is totally flawless.\n\n## Options\n\nYour Code | JS\n--- | ---\nunbeknownst | undefined\nforsake | reject\nnaught | null\nbestow(\"thingToReturn\") | return(\"thingToReturn\")\nyea | true\nnay | false\ncease | break\nreconcile | resolve\nsummon | require\nscribe.mishap(\"message\") | console.error(\"message\")\nscribe.forewarn(\"message\") | console.warn(\"message\")\nscribe.tidings(\"message\") | console.info(\"message\")\nscribe.proclaim(\"message\") | console.log(\"message\")\nscribe.inscribe(\"message\") | console.log(\"message\")\nMishap | Error\nVow | Promise\nbeckon | require\nattest | assert\nexpel | throw\n\n## Terms I *would* want to add\n\nYour Code | JS\n--- | ---\nwhilst | while\ndoth | do\nperchance | if\nunyielding | const\nalloweth | let\nendeavor | try\notherwise | else\nentrap | catch\n\nIf it was possible I would add these :P\n\n## Contributing\n\nI ask thee to bring forth PRs ✍️\n\nIf you want to contribute, but you don't know where to start, that's great! Watch this YouTube video to learn more about Babel plugins: \u003chttps://www.youtube.com/watch?v=aK6n0pYcOe8\u003e\n\nAST explorer is also a great tool to learn about ASTs and test some of your ideas. \u003chttps://astexplorer.net/\u003e\n\nWhen you submit a PR, don't forget to update the table in the README along with the appropriate code in example.js.\n\n## Does this exist in (insert coding language)?\n\nAlas, there is none yet!\n\n## License\n\nYou're free to use this according to the MIT license.\n\nCopyright (c) 2023, Dennis Lustre\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlustre%2Fbabel-plugin-thy-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlustre%2Fbabel-plugin-thy-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlustre%2Fbabel-plugin-thy-script/lists"}