{"id":16694713,"url":"https://github.com/spenserblack/snippit","last_synced_at":"2025-04-05T03:42:40.019Z","repository":{"id":64747497,"uuid":"577942883","full_name":"spenserblack/snippit","owner":"spenserblack","description":"Define, store, and output your code snippets","archived":false,"fork":false,"pushed_at":"2024-04-01T01:40:38.000Z","size":71,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T13:12:15.208Z","etag":null,"topics":["code-snippet","code-snippets","snippet","snippets"],"latest_commit_sha":null,"homepage":"https://spenserblack.github.io/snippit/","language":"Ruby","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/spenserblack.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}},"created_at":"2022-12-13T22:11:47.000Z","updated_at":"2023-09-08T18:39:47.000Z","dependencies_parsed_at":"2023-12-20T20:04:06.629Z","dependency_job_id":null,"html_url":"https://github.com/spenserblack/snippit","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.1724137931034483,"last_synced_commit":"c7ada0fa7cb3617949814fb7c7da27c3eb846a79"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":"spenserblack/ruby-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Fsnippit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Fsnippit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Fsnippit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Fsnippit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spenserblack","download_url":"https://codeload.github.com/spenserblack/snippit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284914,"owners_count":20913691,"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":["code-snippet","code-snippets","snippet","snippets"],"created_at":"2024-10-12T16:47:53.579Z","updated_at":"2025-04-05T03:42:39.986Z","avatar_url":"https://github.com/spenserblack.png","language":"Ruby","readme":"# Snippit\n\n[![Gem Version](https://badge.fury.io/rb/snippit.svg)](https://badge.fury.io/rb/snippit)\n[![CI](https://github.com/spenserblack/snippit/actions/workflows/ci.yml/badge.svg)](https://github.com/spenserblack/snippit/actions/workflows/ci.yml)\n[![CodeQL](https://github.com/spenserblack/snippit/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/spenserblack/snippit/actions/workflows/github-code-scanning/codeql)\n[![codecov](https://codecov.io/gh/spenserblack/snippit/branch/main/graph/badge.svg?token=5yr1302Knn)](https://codecov.io/gh/spenserblack/snippit)\n\nDefine, store, and output your code snippets.\n\n## Usage\n\nAll uses of `snippit` can be replaced with the shortcut `snip`.\n\n```console\n# Define a snippet called \"hello-world.js\"\n$ snippit --save hello-world.js\n\n# Set the slug and descriptive name of the snippet\n$ snippit --save hello-world.js --slug hw-js --name \"JavaScript Starter\"\n\n# Output the \"JavaScript Starter\" snippet to a file called \"index.js\"\n$ snippit --get hw-js \u003e index.js\n\n# List all of your code snippets\n$ snippit --list\n```\n\n## How it works\n\nCode snippets get stored in a directory called `.snippit` in your home\ndirectory. The actual code snippet filenames are slugified versions of the\nsnippet name. `.__definitions__.yml` is a reserved filename, as it is used to\nmap snippet slugs (filenames) to their human-readable names.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspenserblack%2Fsnippit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspenserblack%2Fsnippit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspenserblack%2Fsnippit/lists"}