search

Home  >  Q&A  >  body text

node.js - 下面代码里面的pkg是什么呀?pkg.name又是什么?为什么pkg.name等于session里面的名字?

var pkg=require("./package");
app.listen(config.port,function(){
console.log(${pkg.name} listening on port ${config.port});
});

高洛峰高洛峰2863 days ago1166

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 16:13:35

    is the package.json file

    reply
    0
  • Cancelreply