{"id":15935799,"url":"https://github.com/zephraph/postcss-remove-null","last_synced_at":"2025-04-08T09:26:08.770Z","repository":{"id":57328428,"uuid":"46625339","full_name":"zephraph/postcss-remove-null","owner":"zephraph","description":"Remove null values with PostCSS","archived":false,"fork":false,"pushed_at":"2017-06-18T13:20:00.000Z","size":19,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T18:50:04.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/zephraph.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}},"created_at":"2015-11-21T17:19:34.000Z","updated_at":"2018-10-26T09:35:27.000Z","dependencies_parsed_at":"2022-09-21T02:12:00.182Z","dependency_job_id":null,"html_url":"https://github.com/zephraph/postcss-remove-null","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fpostcss-remove-null","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fpostcss-remove-null/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fpostcss-remove-null/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fpostcss-remove-null/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephraph","download_url":"https://codeload.github.com/zephraph/postcss-remove-null/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247811234,"owners_count":21000060,"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-07T04:02:12.892Z","updated_at":"2025-04-08T09:26:08.751Z","avatar_url":"https://github.com/zephraph.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-remove-null [![Build Status](https://travis-ci.org/zephraph/postcss-remove-null.svg?branch=master)](https://travis-ci.org/zephraph/postcss-remove-null)\n\n\u003e Remove null values with PostCSS.\n\n## Functionality\n\nThe basic use case of this plugin functions very similar to `null` in Sass.\n\nGiven\n\n```css\ndiv {\n  display: null;\n}\n```\n\nThe plugin will output\n\n```css\ndiv {}\n```\n\nIt's recommended that this plugin be followed by [cssnano](https://github.com/ben-eb/cssnano) or [postcss-discard-empty](https://github.com/ben-eb/postcss-discard-empty) to ensure that the `div` in the above example is removed.\n\nThis plugin also intelligently handles nulls present in shorthand declarations.\n\nGiven\n\n```css\ndiv {\n  margin: null 1px null 2px;\n}\n```\n\nThe plugin will output\n\n```css\ndiv {\n  margin-right: 1px;\n  margin-left: 2px;\n}\n```\n\nFor more insight on what the plugin currently covers checkout the [tests](https://github.com/zephraph/postcss-remove-null/tree/master/tests);\n\n## Installation\n\n`npm install --save-dev postcss-remove-null`\n\n## Usage\n\n```javascript\nvar postcss    = require('postcss');\nvar removeNull = require('postcss-remove-null');\nvar cssNano    = require('cssnano');\n\npostcss([ removeNull, cssNano ])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephraph%2Fpostcss-remove-null","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephraph%2Fpostcss-remove-null","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephraph%2Fpostcss-remove-null/lists"}