Menyimpan dependensi di sintaks paket node Anda

/*
Manually add dependencies to a package.json
1. add attribute "dependencies", 
2. Add dependencies name to a package.json file, 
3. references the name and semantic version of each dependency
*/
{
  "name": "my_package",
  "version": "1.0.0",
  "dependencies": {
    "my_dep": "^1.0.0",
    "another_dep": "~2.2.0"
  }
}
Michael Bruns