Look at [vinyl-map](https://github.com/hughsk/vinyl-map), this is already handled.