postcss-margin-helpers

3.0.0 • Public • Published

postcss-margin-helpers

NPM version npm license Travis Build Status

npm

Font helpers for PostCSS.

Installation

$ npm install postcss-margin-helpers [--save[-dev]]

Usage

var postcss = require('postcss');
var margin = require('postcss-margin-helpers');
 
var rule = postcss.parse([
    'a {',
    '  margin-top: 0;',
    '  margin: 5px 10px 20px;',
    '  margin-bottom: 40px;',
    '}'
].join('')).first;
 
margin.top(rule);    // 5px
margin.right(rule);  // 10px
margin.bottom(rule); // 40px
margin.left(rule);   // 10px

Testing

$ npm test

This will run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.

/postcss-margin-helpers/

    Package Sidebar

    Install

    npm i postcss-margin-helpers

    Weekly Downloads

    13

    Version

    3.0.0

    License

    MIT

    Last publish

    Collaborators

    • jedmao