node module for sanitizing an input array