@servable/tools
Version:
Servable tools is a utility that builds a protocol's manifest and documents it.
21 lines (17 loc) • 574 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, includeAuxiliary = true } = props
const payload = []
const target = await access({
item: ProtocolEnum.Class.Index,
path,
extraction
})
if (target && target.data) {
const { astAdapted } = target.data
if (astAdapted) {
}
}
return { payload, name: 'Seed', id: 'seed', auxiliary: (target && target.data) ? target.data.documentation : null }
}