New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

css-patch

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-patch

CSS patch generator.

Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

css-patch

npm versionnode versionBuild status - Linux/OSXBuild status - WindowsCodecov

css-patch module.

Features

Install

Install via yarn:

yarn add css-patch

Install via npm:

npm i css-patch

Docs

Read the docs on GitHub pages.

Example

Import

CommonJS

const { generateCSSPatch, } = require('css-patch');

ES6

import { generateCSSPatch, } from 'css-patch';

Use

console.log(
	generateCSSPatch(
		'a{a:1;b:1;}b{b:1;}c{a:1;}d{a:1;}',
		'a{a:1;}b{b:2;}c{a:1;}'
	)
); // 'a{b:unset;}b{b:2;}d{a:unset;}'

Keywords

css

FAQs

Package last updated on 30 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts