@servable/tools
Version:
Servable tools is a utility that builds a protocol's manifest and documents it.
21 lines (17 loc) • 548 B
JavaScript
import { ProtocolEnum } from "../../../../../manifest/data/1.0.0/enums.js"
import access from '../../../../../manifest/access/index.js'
export default async props => {
const { path, extraction } = props
const payload = []
const target = await access({
item: ProtocolEnum.System,
path,
extraction
})
if (target && target.data) {
const { astAdapted } = target.data
if (astAdapted) {
}
}
return { payload, name: 'System', id: 'system', auxiliary: (target && target.data) ? target.data.documentation : null }
}