How to download a PIXI.Texture as png with javascript

How can I trigger the download of a PIXI.Texture as png in javascript?