@heroku/project-descriptor
v0.0.6
Published
Project Descriptor specification and validator
Downloads
3,163
Maintainers
Keywords
Readme
project-descriptor
Project Descriptor specification and validation for Salesforce Functions
Usage
import {ProjectDescriptor} from '@heroku/project-descriptor';
const parser = new ProjectDescriptor();
parser.parseFile('project.toml').then((data) => {
console.dir(data)
});
parser.parseData({
_: {
'schema-version': '0.2'
},
com: {
salesforce: {
'schema-version': '0.1',
id: 'foo',
type: 'function'
}
}
}).then((data) => {
console.dir(data)
});