{"id":15503065,"url":"https://github.com/johno/deleted","last_synced_at":"2026-03-10T11:06:12.098Z","repository":{"id":24658109,"uuid":"28068298","full_name":"johno/deleted","owner":"johno","description":"A slightly different user experience for hard deletes.","archived":false,"fork":false,"pushed_at":"2015-12-15T01:32:26.000Z","size":25,"stargazers_count":58,"open_issues_count":5,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-27T01:34:43.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://johnotander.com/deleted","language":"JavaScript","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/johno.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}},"created_at":"2014-12-16T03:18:35.000Z","updated_at":"2020-12-28T16:16:23.000Z","dependencies_parsed_at":"2022-08-23T04:11:13.530Z","dependency_job_id":null,"html_url":"https://github.com/johno/deleted","commit_stats":null,"previous_names":["johnotander/deleted"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/johno/deleted","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fdeleted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fdeleted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fdeleted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fdeleted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/deleted/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fdeleted/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30331657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-02T09:12:03.280Z","updated_at":"2026-03-10T11:06:12.078Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deleted\n\nDeleted provides a slightly different experience for hard deletes. Clicking a delete button\ncreates a dropdown with a confirmation and cancel button. This requires two click actions from\nthe user, helping to prevent accidental deletions.\n\nIt's dependency-free and delightfully lightweight:\n\n```\ndeleted.min.js 711 B (gzipped)\ndeleted.min.css 490 B (gzipped)\n```\n\nSee it in action: \u003chttp://johnotander.com/deleted\u003e.\n\n## Installation\n\n```\nnpm install --save deleted\n```\n\nOr with git\n\n```\ngit clone https://github.com/johnotander/deleted.git\n```\n\n## Usage\n\nLink the javascript and CSS files:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n  \u003c!-- ... --\u003e\n  \u003clink rel=\"stylesheet\" href=\"/path/to/deleted/css/deleted.min.css\"\u003e\n  \u003c!-- ... --\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003c!-- ... --\u003e\n  \u003cscript src=\"/path/to/deleted/js/deleted.min.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nThen, you can use deleted with the following link and data attributes:\n\n```html\n\u003ca href=\"/some-link/for/deletion\"\n   class=\"btn--red\"\n   data-deleted=true\n   data-deleted-prompt=\"Are you sure you want to delete this?\"\n   data-deleted-text=\"Confirm\"\n   data-cancel-text=\"Cancel\"\u003e\n  Delete\n\u003c/a\u003e\n```\n\n#### A custom example\n\n```html\n\u003ca href=\"javascript:alert('custom deleted!')\"\n   class=\"btn--red\"\n   data-deleted=true\n   data-deleted-prompt=\"Look out, there be dragons.\"\n   data-deleted-text=\"Go ahead, delete it\"\n   data-cancel-text=\"Nevermind\"\u003e\n  Custom Delete\n\u003c/a\u003e\n```\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n***\n\n\u003e Crafted with \u003c3 by [John Otander](http://johnotander.com) ([@4lpine](https://twitter.com/4lpine)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fdeleted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fdeleted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fdeleted/lists"}