{"id":16125740,"url":"https://github.com/dy/aligner","last_synced_at":"2025-04-06T13:13:15.300Z","repository":{"id":57176122,"uuid":"26598572","full_name":"dy/aligner","owner":"dy","description":"Align DOM elements as Photoshop/Illustrator does","archived":false,"fork":false,"pushed_at":"2017-04-14T16:42:10.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T08:41:39.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dy.github.io/aligner","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dy.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-11-13T17:12:41.000Z","updated_at":"2022-02-06T01:36:16.000Z","dependencies_parsed_at":"2022-09-04T01:21:46.289Z","dependency_job_id":null,"html_url":"https://github.com/dy/aligner","commit_stats":null,"previous_names":["dfcreative/aligner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Faligner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Faligner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Faligner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Faligner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/aligner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485290,"owners_count":20946398,"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-10-09T21:31:22.566Z","updated_at":"2025-04-06T13:13:15.283Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aligner\n\nAlign DOM elements just like photoshop/illustrator aligner does. [Demo](http://dfcreative.github.io/aligner).\n\n```js\nnpm install aligner\n```\n\n```js\nvar align = require('aligner');\n\nvar els = document.querySelectorAll('div');\n\n//align all elements by the left edge.\nalign(els, 'left');\n```\n\n\n## API\n\n`align(elements, alignment?, alignTarget?)` - align element according to the params passed.\n\n* `elements` - a set of elements to align\n* `alignment` values: `'top'`, `'bottom'`, `'left'`, `'right'`, `'center'` (centered align by x), `'middle'` (centered align by y), a number [0..1] to align by x, or array [xAlign?, yAlign?], where alignment is a number [0..1]. Default is 0 (align left).\n* `alignTarget` is an element to perform alignment relative to, by default it’s the first element in elements.\n\n\n\n\n\n[![NPM](https://nodei.co/npm/aligner.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/aligner/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Faligner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Faligner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Faligner/lists"}