Skip to content

chunpu/lua-min-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

min-url.lua

Install

use opm

opm install lua-url

Usage

local Url = require 'min-url'

test('Url.parse', function(t)
	local url = Url.parse('http://user:pass@host.com:8080/p/a/t/h?query=string#hash')
	t.deepEqual(url, {
		protocol = 'http:',
		auth = 'user:pass',
		hostname = 'host.com',
		port = 8080,
		pathname = '/p/a/t/h',
		query = 'query=string',
		hash = '#hash'
	})
end)

TODO

  • Url.format
  • shouldParseQuery

About

simple url parse like min-url.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages