Converted lib to an npm module.