image-size-parser
1.0.0 • Public • Published image-size-parser
Parse the size of an image from a string. '120x20@2x' → {width: 240, height: 40}
Install
npm install image-size-parser
Usage
var parseImageSize = require('image-size-parser').parse;
parseImageSize('10x10');
parseImageSize('120x20@2x');
parseImageSize('10x20@5x');
License
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.0
3
Version History
- VersionDownloads (Last 7 Days)
- 1.0.0
3
Package Sidebar
Install
Weekly Downloads