{"id":18774333,"url":"https://github.com/leny/atom-wrap-and-pad","last_synced_at":"2025-12-14T08:30:25.610Z","repository":{"id":72963824,"uuid":"45680999","full_name":"leny/atom-wrap-and-pad","owner":"leny","description":"Wrap and pad selection.","archived":false,"fork":false,"pushed_at":"2015-12-29T23:05:14.000Z","size":1181,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T08:42:54.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/leny.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":"2015-11-06T12:33:14.000Z","updated_at":"2015-12-29T23:05:04.000Z","dependencies_parsed_at":"2023-02-25T10:00:17.907Z","dependency_job_id":null,"html_url":"https://github.com/leny/atom-wrap-and-pad","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fatom-wrap-and-pad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fatom-wrap-and-pad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fatom-wrap-and-pad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fatom-wrap-and-pad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leny","download_url":"https://codeload.github.com/leny/atom-wrap-and-pad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239680988,"owners_count":19679509,"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":[],"created_at":"2024-11-07T19:38:00.379Z","updated_at":"2025-12-14T08:30:20.284Z","avatar_url":"https://github.com/leny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `Wrap and pad` package\n\n\u003e Wrap and pad selection.\n\nThis package is inspired by [gepoch/vim-surround](https://github.com/gepoch/vim-surround).\n\n* * *\n\n![quick demo of Wrap and pad package](https://raw.githubusercontent.com/leny/atom-wrap-and-pad/master/images/atom-wrap-and-pad.gif)\n\n## How it works ?\n\n**wrap-and-pad** use the configuration object to store pairs of characters, so you can add your own. Default values are :\n\n    \"wrap-and-pad\":\n        pairs: [\n                name: \"parenthesis\"\n                start: \"(\"\n                pad: \" \"\n                end: \")\"\n            ,\n                name: \"brackets\"\n                start: \"[\"\n                pad: \" \"\n                end: \"]\"\n            ,\n                name: \"curly-brackets\"\n                start: \"{\"\n                pad: \" \"\n                end: \"}\"\n        ]\n\nFor each property in the `pairs` object, **wrap-and-pad** will generate a command named : `wrap-and-pad:wrap-and-pad-with-[name]`, which you can bind to any keys within your keymap file.  \nBy default, **wrap-and-pad** is shipped with three commands :\n\n- `wrap-and-pad:wrap-and-pad-with-parenthesis`\n- `wrap-and-pad:wrap-and-pad-with-brackets`\n- `wrap-and-pad:wrap-and-pad-with-curly-brackets`\n\n### Trim selection before wrapping\n\nYou can also trim the selection before wrapping \u0026 padding, with the `trim-before` configuration key.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fatom-wrap-and-pad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleny%2Fatom-wrap-and-pad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fatom-wrap-and-pad/lists"}