フォルダー構成
フォルダー構成を参考に以下構成で実施
FunctionsProject
  │
  ├─ HttpTrigger1/
  │   ├─ function.json
  │   ├─ index.js
  │   └─ sample.dat
  │
  ├─ SharedCode/
  │   └─ util.js
  │
  ├─ node_modules/
  ├─ .funcignore
  ├─ .gitignore
  ├─ host.json
  ├─ local.settings.json
  ├─ package.json
  └─ package-lock.json
共通コードの実装
SharedCode/util.js
module.exports = {
  testFunction: (context, param) => {
    context.log(param);
  },
};
共通コードの使用
HttpTrigger1/index.js
const util = require('../SharedCode/util');
module.exports = async function (context, req) {
  util.testFunction(context, 'hello world');
};
