{"id":15391938,"url":"https://github.com/scrum/postcss-map-get","last_synced_at":"2025-04-15T23:26:39.753Z","repository":{"id":35916038,"uuid":"122968630","full_name":"Scrum/postcss-map-get","owner":"Scrum","description":"PostCSS plugin for sass-like map function map-get","archived":false,"fork":false,"pushed_at":"2023-03-04T02:35:40.000Z","size":708,"stargazers_count":6,"open_issues_count":9,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T09:57:37.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://sass-lang.com/documentation/Sass/Script/Functions.html#map_get-instance_method","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/Scrum.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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":"2018-02-26T12:44:34.000Z","updated_at":"2023-03-04T04:56:31.000Z","dependencies_parsed_at":"2024-06-18T21:32:22.539Z","dependency_job_id":"52dfc18b-1a6d-4044-8afa-6d5f7b7de4d4","html_url":"https://github.com/Scrum/postcss-map-get","commit_stats":{"total_commits":76,"total_committers":5,"mean_commits":15.2,"dds":0.6842105263157895,"last_synced_commit":"ccf5f303490f27cd0dd20e2d650092b4e61ae2c3"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fpostcss-map-get","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fpostcss-map-get/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fpostcss-map-get/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fpostcss-map-get/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Scrum","download_url":"https://codeload.github.com/Scrum/postcss-map-get/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240351274,"owners_count":19787805,"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-01T15:13:32.958Z","updated_at":"2025-02-28T19:30:30.619Z","avatar_url":"https://github.com/Scrum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-map-get \u003ca href=\"https://github.com/postcss/postcss\"\u003e\u003cimg align=\"left\" height=\"49\" title=\"PostCSS\" src=\"http://postcss.github.io/postcss/logo.svg\"\u003e\u003c/a\u003e\n\n\u003e [PostCSS](https://github.com/postcss/postcss) plugin to transform SASS Function [map-get](http://sass-lang.com/documentation/Sass/Script/Functions.html#map_get-instance_method).  \n\n[![Travis Build Status](https://img.shields.io/travis/Scrum/postcss-map-get/master.svg?style=flat-square\u0026label=unix)](https://travis-ci.org/Scrum/postcss-map-get)[![node](https://img.shields.io/node/v/postcss-map-get.svg?maxAge=2592000\u0026style=flat-square)]()[![npm version](https://img.shields.io/npm/v/postcss-map-get.svg?style=flat-square)](https://www.npmjs.com/package/postcss-map-get)[![Dependency Status](https://david-dm.org/scrum/postcss-map-get.svg?style=flat-square)](https://david-dm.org/scrum/postcss-map-get)[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/sindresorhus/xo)[![Coveralls status](https://img.shields.io/coveralls/Scrum/postcss-map-get.svg?style=flat-square)](https://coveralls.io/r/Scrum/postcss-map-get)\n\n[![npm downloads](https://img.shields.io/npm/dm/postcss-map-get.svg?style=flat-square)](https://www.npmjs.com/package/postcss-map-get)[![npm](https://img.shields.io/npm/dt/postcss-map-get.svg?style=flat-square)](https://www.npmjs.com/package/postcss-map-get)\n\n## Why?\n\nAdds the ability to use sass like Map Function [map-get](http://sass-lang.com/documentation/Sass/Script/Functions.html#map_get-instance_method).  \n\n## Install\n\n```bash\n$ npm install postcss postcss-map-get\n```\n\n\u003e **Note:** This project is compatible with node v8+\n\n## Usage\n\n```js\n// Dependencies\nimport fs from 'fs';\nimport postcss from 'postcss';\nimport mapGet from 'postcss-map-get';\n\n// CSS to be processed\nvar css = fs.readFileSync('css/input.css', 'utf8');\n\n// Process CSS\nvar output = postcss()\n  .use(mapGet())\n  .process(css, {\n    from: 'css/input.css'\n  })\n  .css;\n\nconsole.log(output);\n```\n\n\u003e Returns the value in a map associated with the given key. If the map doesn't have such a key, returns null.\n\n## Example\n\n*input.css*\n\n```css\nbody {\n  background: map-get((\n    body: #fff,\n    main-red: #c53831,\n    link-blue: #0592fb\n  ) !default, body);\n\n  min-width: map-get((\n    xxs: 0,\n    xs: 576px,\n    sm: 768px,\n    md: 992px,\n    lg: 1280px,\n    xl: 1360px,\n    xxl: 1600px\n  ) !default, lg);\n\n  max-width: 100%;\n}\n```\n\n*output.css*\n\n```css\nbody {\n  background: #fff;\n\n  min-width: 1280px;\n\n  max-width: 100%;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrum%2Fpostcss-map-get","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrum%2Fpostcss-map-get","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrum%2Fpostcss-map-get/lists"}