🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

css-longhand

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-longhand

Expand CSS shorthands.

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

css-longhand Build Status

Expand CSS shorthands.

Why?

For HTML E-maliers.

Install

$ npm install --save css-longhand

Supported CSS properties:

  • margin

  • padding

  • border

Usage

var cssLonghand = require('css-longhand');
cssLonghand('/path/to/css');

Example:

.classname {
	margin: 0;
}

Pass to cssLonghand will result in:

.classname {
		margin-top: 0;
		margin-right: 0;
		margin-bottom: 0;
		margin-left: 0;
}

TODO:

  • Re-implement with streams (find the comment in the code)

  • Support more CSS properties.

License

MIT © hemanth.hm

Keywords

css

FAQs

Package last updated on 07 Nov 2016

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