Socket
Socket
Sign inDemoInstall

sprity-customless

Package Overview
Dependencies
17
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sprity-customless

less custom style processor for sprity - copy and modify of Alexander Slansky module - alexander@slansky.net - alexander@slansky.net


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

sprity-customless

NPM version Build Status Dependencies

A less custom style processor for sprity sprity This is a copy and modify of Alexander Slansky module - alexander@slansky.net - alexander@slansky.net

Requirements

  • sprity version >= 1.0

Install

Install with npm

npm install sprity sprity-customless --save

If you want to use sprity-less with the command line interface of sprity install it globally.

npm install sprity sprity-customless -g

Usage

On commandline:

sprity out/ src/*.png -s style.less -p less

In JavaScript:

var sprite = require('sprity');
sprite.create({
  ...
  style: 'style.less',
  processor: 'customless'
  ...
}, function () {
  console.log('done');
});
less usage example
@import 'sprite'; // the generated style file (sprite.less)

// camera icon (camera.png in src directory)
.icon-camera {
  .sprite(@camera);
}

// cart icon (cart.png in src directory)
.icon-cart {
  .sprite(@cart);
}

More

See sprity documentation


Gitter

Keywords

FAQs

Last updated on 04 Apr 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc