richardbutler/node-spritesheet — pull request #10 by ljharb (2012-11-26 02:17:36+00:00)
Title: Adding outputDirectory option

Without the outputDirectory option, running your example code complained that "charAt" couldn't be called on undefined.