1.0.0 • Published 3 years ago

print-frame-hendry v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

WIP Notes

NPM

NPM Commands

  • npm init --yes create new package.json file
  • npm install -g npm to update NPM
  • npm install -g <package> install npm tool globally
    • It's installed under /usr/local/lib/node_modules
  • npm -v
  • npm install <package> install NPM package which also track it in package.json
  • npm install -D <package> install NPM package into devDependencies (eq. test framework, formatting, etc. only use for dev not prod)
    • look under node_modules folder

NPM Useful libraries

  • lodash
  • request

Package.json vs Package-lock.json

  • package.json contains metadata of the projects as well as all its dependencies
  • package-lock.json will ensure exact same versions for entire dependencies (including sub-dependencies tree)

NPM semantic versioning (SemVer)

  • go to https://semver.npmjs.com
  • X.Y.Z X = major, Y = minor (backward compatible), Z = patch (bug fixes)
  • ~1.2.3 update can install most recent patch (eq. 1.2.X , where X >=3 )
  • ^1.2.3 update can install most recent minor (eq. 1.X.Y , where X >=2, Y can be anything)
  • 4.x update can install most recent minor/patch under major version 4

VSCode

To enable auto sugesstion for markdown file. update settings.json with this:

"[markdown]": {
        "editor.wordWrap": "on",
        "editor.quickSuggestions": true
    },
1.0.0

3 years ago