add registry option to npm module