srcset-parser
This is a tiny node.js wrapper around sindresorhus/srcset.
Usage
srcset-parser 'banner-HD.jpg 2x, banner-phone.jpg 100w'
[{"url":"banner-HD.jpg","density":2},{"url":"banner-phone.jpg","width":100}]
parse srcsets with the command line
This is a tiny node.js wrapper around sindresorhus/srcset.
srcset-parser 'banner-HD.jpg 2x, banner-phone.jpg 100w'
[{"url":"banner-HD.jpg","density":2},{"url":"banner-phone.jpg","width":100}]
parse srcsets with the command line
GNU General Public License v3.0