extract urldata to npm module