@heroku/function-toml

function.toml specification and validator

Usage no npm install needed!

<script type="module">
  import herokuFunctionToml from 'https://cdn.skypack.dev/@heroku/function-toml';
</script>

README

function-toml

function.toml specification and validation for Salesforce Functions (f.k.a. evergreen)

Usage

import { FunctionToml } from '@heroku/function-toml';

const fntoml = new FunctionToml();

fntoml.parseFile('/tmp/function.toml').then((data) => {
  console.dir(data)
});

fntoml.parseData({function: { label: 'verybestfunction'}}).then((data) => {
  console.dir(data)
});