template-path
Resolve template string as a path
const path = const project = path`/jamen/template-path`// => /home/jamen/jamen/template-path/
Installation
$ npm install --save template-path
Usage
path
tag function
path
is a template string tag you use to normalize them as paths:
// Join paths togetherconst example1 = path`foo//baz.json` // Use functions in the middle of your pathsconst example2 = path`/my-project/.svg` // Deal with file extensionsconst example3 = path`/.`
License
MIT © Jamen Marz