Socket
Book a DemoInstallSign in
Socket

strings-parser-path

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strings-parser-path

Parser for strings to handle file path parsing.

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

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.

Keywords

keys

FAQs

Package last updated on 28 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts