path-here
This micro-lib will take your code from this:
var path = ;var srcDirectory = path;
to this:
var here = ;var srcDirectory = ;
Note: This is actually not all that useful. Originally when I made this I thought it was doing something it wasn't. However, something more useful that it allows you to do (and the reason I haven't deprecated it) is this:
var here = ;var there = heredir'~/Developer/starwars-names';var starWarsNamesSrc = ;
Examples
var here = ;var srcDir = ;var somePath = ;var somePathWithMultipleParams = ; // <-- same result as previousvar withTrailingSlash = ; // <-- result has a trailing slashvar withPrefixSlash = ; // <-- same as here('src'); // specify a different root other than process.cwd()var there = heredir'/usr';var bin = ;
Other info
LICENSE -> MIT