copying npm init feature