Skip to content

Node url.parse updated to support versioned dat URLs.

Notifications You must be signed in to change notification settings

pfrazee/parse-dat-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parse-dat-url

Node url.parse updated to support versioned dat URLs.

var parse = require('parse-dat-url')

parse('dat://584faa05d394190ab1a3f0240607f9bf2b7e2bd9968830a11cf77db0cea36a21+v1.0.0/path/to/file.txt')
/* => {
  protocol: 'dat:',
  slashes: true,
  auth: null,
  host: '584faa05d394190ab1a3f0240607f9bf2b7e2bd9968830a11cf77db0cea36a21',
  port: null,
  hostname: '584faa05d394190ab1a3f0240607f9bf2b7e2bd9968830a11cf77db0cea36a21',
  hash: null,
  search: null,
  query: null,
  pathname: '/path/to/file.txt',
  path: '/path/to/file.txt',
  href: 'dat://584faa05d394190ab1a3f0240607f9bf2b7e2bd9968830a11cf77db0cea36a21+v1.0.0/path/to/file.txt',
  version: 'v1.0.0'
}*/

About

Node url.parse updated to support versioned dat URLs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published