{"id":17975650,"url":"https://github.com/rafaelrinaldi/bookmarkletify","last_synced_at":"2025-03-25T15:30:39.061Z","repository":{"id":138511949,"uuid":"51631848","full_name":"rafaelrinaldi/bookmarkletify","owner":"rafaelrinaldi","description":":bookmark: Convert JavaScript files to bookmarklets","archived":false,"fork":false,"pushed_at":"2020-05-09T00:47:33.000Z","size":88,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T12:54:38.980Z","etag":null,"topics":["bookmarklet","cli"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafaelrinaldi.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":"2016-02-13T04:20:26.000Z","updated_at":"2025-02-20T23:12:58.000Z","dependencies_parsed_at":"2023-03-16T19:15:13.565Z","dependency_job_id":null,"html_url":"https://github.com/rafaelrinaldi/bookmarkletify","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrinaldi%2Fbookmarkletify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrinaldi%2Fbookmarkletify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrinaldi%2Fbookmarkletify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrinaldi%2Fbookmarkletify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaelrinaldi","download_url":"https://codeload.github.com/rafaelrinaldi/bookmarkletify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245489754,"owners_count":20623789,"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","cli"],"created_at":"2024-10-29T17:20:29.269Z","updated_at":"2025-03-25T15:30:39.055Z","avatar_url":"https://github.com/rafaelrinaldi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bookmarkletify [![Build Status](https://semaphoreci.com/api/v1/rafaelrinaldi/bookmarkletify/branches/master/badge.svg)](https://semaphoreci.com/rafaelrinaldi/bookmarkletify)\n\n\u003e Convert JavaScript files to bookmarklets\n\n## Install\n\nDownload it to `/usr/local/bin` via [cURL](https://curl.haxx.se):\n\n```sh\n$ curl https://raw.githubusercontent.com/rafaelrinaldi/bookmarkletify/master/bookmarkletify \u003e /usr/local/bin/bookmarkletify\n```\n\nCompile the binary:\n\n```sh\n$ chmod +x /usr/local/bin/bookmarkletify\n```\n\n## Requirements\n\n[Node.js](https://nodejs.org) (`\u003e=8`)\n\n## Usage\n\n```\nUsage: bookmarkletify \u003cFILE\u003e\n\n  Convert JavaScript files to bookmarklets\n\nExample:\n  $ bookmarkletify script.js\n\nVia stdin:\n  $ cat script.js | bookmarkletify\n\nOptions:\n  -h --help                Display software usage\n```\n\n### Creating a bookmarklet\n\nTo generate a simple bookmarklet for Google Chrome that displays `42` on screen:\n\n```sh\n$ # Generate the output and pipe it the system clipboard\n$ echo \"alert(42);\" | bookmarkletify | pbcopy\n```\n\n\u003ckbd\u003eCmd\u003c/kbd\u003e \u003ckbd\u003eShift\u003c/kbd\u003e \u003ckbd\u003eb\u003c/kbd\u003e to show the bookmarks bar, then right click on it and select \"Add Page\":\n\n![add-page](./media/01-add-page.png)\n\nGive your bookmarklet a name and, on the URL field, paste the code we previously generated from the command line:\n\n![create-bookmarklet](./media/02-create-bookmarklet.png)\n\nNow if you click on the bookmarklet you should see the expected result:\n\n![expected-result](./media/03-expected-result.png)\n\n## License\n\nMIT © [Rafael Rinaldi](http://rinaldi.io)\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://buymeacoff.ee/rinaldi\" title=\"Buy me a coffee\"\u003eBuy me a ☕\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelrinaldi%2Fbookmarkletify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelrinaldi%2Fbookmarkletify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelrinaldi%2Fbookmarkletify/lists"}