azure-functions-core
This repository contains a TypeScript module with utilities and helpers for creating Azure Function Apps. These include things like Function base classes and Function pipeline management utilities.
Usage
To install this package in your project, simply use NPM:
npm install --save @quantum-sec/azure-functions-core
Note: You may also need to install peer dependencies. These will be listed in the output of the
npm install
command.
Once the package is installed in your project, you can import the classes or types you want to use:
import { FunctionBase } from '@quantum-sec/azure-functions-core';
export class MyNewFunction extends FunctionBase<MyReturnType> {
// ...
}
Development
To add additional resources to this module, simply add the code files desired and ensure that they're
exported from index.ts
in the root of the src
directory. If you are using sub-modules, ensure that
they're exported from that module's index.ts
and then subsequently from the root index.ts
.
Once you've added your code, make sure it builds and passes ESLint rules and unit tests:
npm run build
npm run lint
npm run test