0.1.3 • Published 10 years ago

strings-parser-path v0.1.3

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

strings-parser-path NPM version

Parser for strings to handle file path parsing.

Install

Install with npm:

npm i strings-parser-path --save-dev

Usage

Use path as a Strings parser:

var Strings = require('strings');
var strings = new Strings({
  dirname: 'a/b/c',
  basename: 'file',
  ext: '.html'
});

strings.parser('path', require('strings-parser-path'));
var propstring = ':dirname/:basename:ext';

console.log(strings.template(propstring, 'path'));
//=> 'a/b/c/index.html'

Author

Brian Woodward

Jon Schlinkert

License

Copyright (c) 2014 Brian Woodward, contributors.
Released under the MIT license


This file was generated by verb-cli on June 28, 2014.