migrating away from deprecated npm dependency to nodejs dependency