strings-parser-path

Parser for strings to handle file path parsing.

4 个版本
安装
npm install strings-parser-path
yarn add strings-parser-path
pnpm add strings-parser-path
bun add strings-parser-path
README

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.

版本列表
0.1.3 2014-06-28
0.1.2 2014-05-16
0.1.1 2014-05-16
0.1.0 2014-05-16