Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Saving dependencies in your node package.json syntax

/*
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"
  }
}
Source by docs.npmjs.com #
 
PREVIOUS NEXT
Tagged: #Saving #dependencies #node #syntax
ADD COMMENT
Topic
Name
3+6 =