{"id":15041641,"url":"https://github.com/jackw/eyeglass-image-dimensions","last_synced_at":"2025-04-14T20:23:02.120Z","repository":{"id":35053679,"uuid":"39185043","full_name":"jackw/eyeglass-image-dimensions","owner":"jackw","description":"An eyeglass module giving node-sass the same image dimension functionality found in ruby compass.","archived":false,"fork":false,"pushed_at":"2023-12-15T05:23:55.000Z","size":47,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T13:22:16.769Z","etag":null,"topics":["eyeglass","eyeglass-image-dimensions","image-dimensions","images","node-sass","sass"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackw.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":"2015-07-16T08:13:39.000Z","updated_at":"2022-10-05T03:11:38.000Z","dependencies_parsed_at":"2024-09-20T18:22:03.360Z","dependency_job_id":null,"html_url":"https://github.com/jackw/eyeglass-image-dimensions","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/jackw%2Feyeglass-image-dimensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackw%2Feyeglass-image-dimensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackw%2Feyeglass-image-dimensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackw%2Feyeglass-image-dimensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackw","download_url":"https://codeload.github.com/jackw/eyeglass-image-dimensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952940,"owners_count":21188526,"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":["eyeglass","eyeglass-image-dimensions","image-dimensions","images","node-sass","sass"],"created_at":"2024-09-24T20:46:19.279Z","updated_at":"2025-04-14T20:23:02.095Z","avatar_url":"https://github.com/jackw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/jackw/eyeglass-image-dimensions.svg?branch=master)](https://travis-ci.org/jackw/eyeglass-image-dimensions)\n[![NPM Downloads](https://img.shields.io/npm/dm/eyeglass-image-dimensions.svg)](http://npm-stat.com/charts.html?package=eyeglass-image-dimensions\u0026author=\u0026from=\u0026to=)\n[![devDependency Status](https://david-dm.org/jackw/eyeglass-image-dimensions/dev-status.svg)](https://david-dm.org/jackw/eyeglass-image-dimensions#info=devDependencies)\n# eyeglass-image-dimensions\nAn eyeglass module to give node-sass the same image dimension functionality found in ruby compass.\n\n## Setup\n\nTo use image dimensions first install eyeglass then eyeglass-image-dimensions:\n\n\n\tnpm install eyeglass eyeglass-image-dimensions --save-dev\n\n\nThen add the following to your sass file/s:\n\n```\n@import 'image-dimensions';\n```\n\n## Usage\n\n### image-width\nreturns the width of the image in pixels.\n\n```\nwidth: image-width($image);\n```\n\n### image-height\nreturns the height of the image in pixels.\n\n```\nheight: image-height($image);\n```\n\n\n### image-dimensions\nreturns a space separated list consisting of the width and height of an image in pixels.\n\n```\nbackground-size: image-dimensions($image);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackw%2Feyeglass-image-dimensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackw%2Feyeglass-image-dimensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackw%2Feyeglass-image-dimensions/lists"}