UNPKG

@servable/tools

Version:

Servable tools is a utility that builds a protocol's manifest and documents it.

22 lines (17 loc) 540 B
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.Lib, path, extraction }) if (target && target.data) { const { astAdapted } = target.data if (astAdapted) { } } return { payload, name: 'Lib', id: 'lib', auxiliary: (target && target.data) ? target.data.documentation : null } }