Using the Node path.join function in Angular or Typescript

Image by Bessi from Pixabay

Gotcha

Scenario

const p1 = '/foo/boo/';const p2 = '/pity/the/foo';
/foo/boo//pity/the/foo

Approach

Dependencies

Approach

import { join } from '@fireflysemantics/join';

Demo

Founder of Firefly Semantics Corporation