UNPKG

orbit-db-access-controllers

Version:
10 lines (8 loc) 252 B
import path from 'path' // Make sure the given address has '/_access' as the last part export default address => { const suffix = address.toString().split('/').pop() return suffix === '_access' ? address : path.join(address, '/_access') }