{"id":18174544,"url":"https://github.com/mkobayashime/bookmarklets-cli","last_synced_at":"2026-01-27T21:23:59.027Z","repository":{"id":65353247,"uuid":"558476871","full_name":"mkobayashime/bookmarklets-cli","owner":"mkobayashime","description":"CLI for bookmarklets development","archived":false,"fork":false,"pushed_at":"2024-12-30T05:04:30.000Z","size":1215,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T09:05:20.200Z","etag":null,"topics":["bookmarklet","bookmarklets"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/bookmarklets-cli","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkobayashime.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-27T16:13:32.000Z","updated_at":"2024-12-21T05:27:44.000Z","dependencies_parsed_at":"2024-02-28T01:38:52.996Z","dependency_job_id":"a33af836-d8ef-40e4-86ca-7cc495bd8fbd","html_url":"https://github.com/mkobayashime/bookmarklets-cli","commit_stats":{"total_commits":69,"total_committers":2,"mean_commits":34.5,"dds":"0.46376811594202894","last_synced_commit":"8507c65ffaa45a44ea4e24c94ccd13ffad9abf3d"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkobayashime%2Fbookmarklets-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkobayashime%2Fbookmarklets-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkobayashime%2Fbookmarklets-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkobayashime%2Fbookmarklets-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkobayashime","download_url":"https://codeload.github.com/mkobayashime/bookmarklets-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232494203,"owners_count":18532142,"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":["bookmarklet","bookmarklets"],"created_at":"2024-11-02T16:03:33.630Z","updated_at":"2026-01-27T21:23:53.983Z","avatar_url":"https://github.com/mkobayashime.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# bookmarklets-cli\n\nCLI for [bookmarklets](https://en.wikipedia.org/wiki/Bookmarklet) development\n\n## Installation\n\n```bash\n# you can use this cli without installing locally\nnpx bookmarklets-cli [...]\n\n# if needed\nnpm install --save bookmarklets-cli\n# or\nyarn add bookmarklets-cli\n```\n\n## Usage\n\n### Build\n\n```bash\n# transpile `script.ts` into `dist` dir\nnpx bookmarklets-cli script.ts\n\n# glob support\nnpx bookmarklets-cli 'src/*.ts'\n\n# specify dist dir\nnpx bookmarklets-cli --dist-dir 'out'\n```\n\n### Dev mode\n\nIn dev mode, every time the input script is saved, the CLI transpiles the input script and copies it to the clipboard.\n\nNote that the leading `j` is removed (e.g., `avascript:(()=\u003e{})` instead of `javascript:(()=\u003e{})`). Many browsers automatically remove the `javascript:` part from URLs pasted into the address bar to enhance security, so the leading `j` is removed to avoid this issue.\nWhen testing the copied output from dev mode in a browser, first type `j` in the address bar, then paste the copied output, and press Enter to execute it.\n\n```bash\n# watch `script.ts`\nnpx bookmarklets-cli --watch script.ts\n\n# glob support\nnpx bookmarklets-cli --watch 'src/*.ts'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkobayashime%2Fbookmarklets-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkobayashime%2Fbookmarklets-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkobayashime%2Fbookmarklets-cli/lists"}