generate package.json from javascript code example Example: create package json //create a custom one npm init //create a default one npm init --yes