NPM library best practices? - Theo's Typesafe Cult