Node.js
Documentation
パッケージマネージャー
Node.jsのバージョン管理
- nodebrew
- nvm
Modules
util
https://nodejs.org/api/util.html
util.format
https://nodejs.org/api/util.html#util_util_format_format_args
printfみたいなやつ。
console.logなどが内部的に利用しているそうだ。
参考:
package.json
プロジェクトで使うNode.js modulesを管理するためのファイル。
バージョン記法
参考:
チルダ表記 ~
明記したところ以下のバージョンがあがることのみ許容
~1.1.2=1.1.2 <= version < 1.2.0~1.1=1.1.x~1=1.x
オリジナルの定義は、
Allows patch-level changes if a minor version is specified on the comparator. Allows minor-level changes if not.
キャレット表記 ^
一番左側にある、ゼロでないバージョニングは変えない (それ以下があがることは許容)
^1.2.3:=1.2.3 <= version < 2.0.0^0.2.3:=0.2.3 <= version < 0.3.0^0.0.3:=0.0.3 <= version < 0.0.4
オリジナルの定義は
Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple.
最終更新 2020-06-03: [program] Omit "lang/" subsection (a39ae753e)