strings-parser-url
Parser for strings to handle url parsing.
Last updated 12 years ago by doowb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install strings-parser-url 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.0                                ...           latest (12 years ago)

1 Versions

  • 0.1.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |