{"id":15931831,"url":"https://github.com/kylemit/fiddle-to-pen","last_synced_at":"2025-04-03T14:26:53.368Z","repository":{"id":43931742,"uuid":"215645444","full_name":"KyleMit/fiddle-to-pen","owner":"KyleMit","description":"Convert JSFiddles to CodePens","archived":false,"fork":false,"pushed_at":"2022-02-13T16:59:50.000Z","size":33,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T20:11:30.435Z","etag":null,"topics":["codepen","jsfiddle","node"],"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/KyleMit.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":"2019-10-16T21:12:21.000Z","updated_at":"2021-11-26T20:22:43.000Z","dependencies_parsed_at":"2022-09-08T05:51:48.440Z","dependency_job_id":null,"html_url":"https://github.com/KyleMit/fiddle-to-pen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyleMit%2Ffiddle-to-pen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyleMit%2Ffiddle-to-pen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyleMit%2Ffiddle-to-pen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyleMit%2Ffiddle-to-pen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KyleMit","download_url":"https://codeload.github.com/KyleMit/fiddle-to-pen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247017081,"owners_count":20869759,"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":["codepen","jsfiddle","node"],"created_at":"2024-10-07T01:40:29.687Z","updated_at":"2025-04-03T14:26:53.344Z","avatar_url":"https://github.com/KyleMit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fiddle To Pen\n\nA migration told in two steps\n\n1. Export [jsFiddle](https://jsfiddle.net/) to Files\n2. Import code into [CodePen.io](https://codepen.io/)\n\n## Create lookups.json\n\nRun this following in the console on jsFiddle.net to generate the lookup list for `option` elements\n\n```js\nlet settingSelects = document.querySelectorAll(\".windowSettings select\")\nlet settingLookups = [...settingSelects].map(sel =\u003e {\n    let lookup = { name: sel.name\n    let opts = sel.querySelectorAll(\"option\")\n\n    lookup.items = [...opts].map(opt =\u003e {\n        return {\n            name: opt.innerText,\n            value: opt.value\n        }\n\n    return lookup\n})\n```\n\n## Resources\n\n### JavaScript\n\n* [js - get characters between slashes](https://stackoverflow.com/q/8519734/1366033)\n* [js - get the second to last item of an array](https://stackoverflow.com/a/24331358/1366033)\n* [js - Async and Await with Array.map()](https://flaviocopes.com/javascript-async-await-array-map/)\n\n### Node\n\n* [node - Using filesystem in node.js with async / await](https://stackoverflow.com/a/58332163/1366033)\n* [node - how to create a directory if doesn't exist?](https://stackoverflow.com/q/21194934/1366033)\n* [node - skip internal modules](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_skipping-uninteresting-code-node-chrome)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylemit%2Ffiddle-to-pen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkylemit%2Ffiddle-to-pen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylemit%2Ffiddle-to-pen/lists"}