UNPKG

@servable/tools

Version:

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

18 lines (15 loc) 381 B
export default ({ instancesPathId, currentProtocolId }) => { const a = instancesPathId.map(i => { switch (i.type) { case 'class': { return `🌸 ${i.value.className}` } case 'protocol': { return `🐝 ${i.value.id}` } default: return null } }).filter(a => a).join(' ') return `${a} 🐝 ${currentProtocolId}` }