export function splitIPNSName(path) {
    const [, ns, name, ...rest] = path.trim().split('/');
    return {
        ns,
        name,
        path: rest.length > 0 ? `${rest.join('/')}` : ''
    };
}
//# sourceMappingURL=ipfs-path-to-cid.js.map