Napoleon's Pixelated Mugshot
    Wondering what’s next for npm?Check out our public roadmap! »

    read-png

    0.0.1 • Public • Published

    read-png

    Universal PNG File Reader. Uses read-pixels in the Browser and pngjs in NodeJS

    install

    npm install read-png

    usage in the browser / frontend

    import readPNG from 'read-png';
    
    const result = readPNG({ data: arrayBuffer });
    // result is { height: 200, width: 100, pixels: [[[]]] }

    usage in NodeJS / backend

    const readPNG = require("read-png");
    
    const result = readPNG({ data: buffer });

    Install

    npm i read-png

    DownloadsWeekly Downloads

    15

    Version

    0.0.1

    License

    CC0-1.0

    Unpacked Size

    20.6 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar