Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crop-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crop-loader

Image cropping loader for webpack (for using sprites etc.)

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

crop-loader

Webpack loader for separating a spritesheet into multiple different assets

const sprites = {
  background: require('file!crop!../assets/sprite.png?x=0&y=0&w=144&h=256'),
  ground: require('file!crop!../assets/sprite.png?x=146&y=0&w=154&h=56'),
  score: require('file!crop!../assets/sprite.png?x=146&y=58&w=113&h=58'),
  bird: require('file!crop!../assets/sprite.png?x=223&y=124&w=17&h=12'),
  pipe: require('file!crop!../assets/sprite.png?x=330&y=0&w=26&h=121'),
}

Keywords

FAQs

Package last updated on 11 Jun 2015

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc