官术网_书友最值得收藏!

Finding and loading CommonJS and JSON modules using require

We have talked about several types of modules: CommonJS, JSON, ES2015, and native code modules. All but the ES2015 modules are loaded using the require function. That function has a very powerful and flexible algorithm for locating modules within a directory hierarchy. This algorithm, coupled with the npm package management system, gives the Node.js platform a lot of power and flexibility.

主站蜘蛛池模板: 石门县| 双江| 平武县| 府谷县| 从江县| 南漳县| 壶关县| 华蓥市| 高青县| 灵石县| 冕宁县| 宁德市| 天祝| 铜山县| 安西县| 信阳市| 阿巴嘎旗| 东兴市| 壶关县| 纳雍县| 迁安市| 乃东县| 陇南市| 昆山市| 兰西县| 太和县| 班戈县| 原平市| 吉木萨尔县| 海林市| 德清县| 大田县| 东源县| 锦屏县| 克拉玛依市| 清涧县| 赤壁市| 炎陵县| 武义县| 习水县| 杭锦旗|