Get an array of pixels from an image file using node.js

Is it possible to get an array of RGB values from a local image file using node.js? I'm trying to write a script that takes a file path as its parameter and returns an array that represents the pixel data.

function getPixelArray(filePath){
    //return an array of RGB values that correspond to the image
}

If your image is in PNG format, have a look at https://github.com/devongovett/png.js/