git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 49c6e5459b68f2a30bcecf7727b8c9a99cfe4e79

Files: 49c6e5459b68f2a30bcecf7727b8c9a99cfe4e79 / lib / pathModule.js

298 bytesRaw
1const { join, basename, dirname, extname, sep } = require('path')
2const assign = require('object-assign')
3
4module.exports = (definition, { filename }) => {
5 const path = join(
6 dirname(filename),
7 basename(filename, extname(filename))
8 ).split(sep)
9
10 return assign({ path }, definition)
11}
12

Built with git-ssb-web