array-path-join

like path.join but with an array

Usage no npm install needed!

<script type="module">
  import arrayPathJoin from 'https://cdn.skypack.dev/array-path-join';
</script>

README

Array path join

Like path.join but with an array

Usage

const join = require('array-path-join');

const obj = [__dirname, 'test', 'file.md'];

console.log(join(obj));

License

MIT