🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
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.

Source
npmnpm
Version
0.1.2
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

Usage

Add as a strings parser:

var Strings = require('strings');
var path = require('strings-parser-path');

var strings = new Strings();
strings.parser('path', path());

var context = {
  filepath: 'path/to/file.html'
};
var template = ':basename/index:ext';
var dest = strings.template(template, 'path', context);

// expected: 'file/index.html'
console.log(dest);

Author

Jon Schlinkert

Brian Woodward

License

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

This file was generated by verb-cli on May 15, 2014.

Keywords

docs

FAQs

Package last updated on 16 May 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