npm init will create the package.json file with certain values like the package name, version, description, entry point etc. you can specify these values before creating package.json.
But to set all the values as default you can use the y flag to create package.json
npm init -y