common-path-suffix
Reverse of common-path-prefix
const paths = ['templates/main.handlebars', 'templates/_partial.handlebars']
commonPathSuffix(paths, '/') // returns '.handlebars'
Reverse of common-path-prefix
const paths = ['templates/main.handlebars', 'templates/_partial.handlebars']
commonPathSuffix(paths, '/') // returns '.handlebars'
npm i common-path-suffix
3
0.1.0
none
712 B
3