strings-parser-path

0.1.3 • Public • Published

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.

Package Sidebar

Install

npm i strings-parser-path

Weekly Downloads

2

Version

0.1.3

License

none

Last publish

Collaborators

  • jonschlinkert
  • doowb