dpr
Trying to make life easier in a world with too many device pixel ratios.
Install
install dpr
Use
// Return the current device pixel ratio. The reason this is not a constant is// it can change between monitors!; // Update the config. The defaults are shown.; // Get a dpr-appropriate file name.// returns 'foo-bar.png' for dpr=1, 'foo-bar@2.png' for dpr=2, etc...;