Skip to content

doowb/strings-parser-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strings-parser-url NPM version

Parser for strings to handle url parsing.

Install

Install with npm:

npm i strings-parser-url --save

Usage

Add as a strings parser:

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

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

var context = {
  url: 'https://github.com/assemble/strings.git?sortby=name'
};
var template = ':protocol';
var dest = strings.template(template, 'url', context);

// expected: 'https:'
console.log(dest);

Author

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.

About

Parser for strings to handle url parsing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  
  •  

Packages

No packages published