Skip to content

Instantly share code, notes, and snippets.

@whyvez
Created June 24, 2015 12:51
Show Gist options
  • Select an option

  • Save whyvez/1ff951b281457386e438 to your computer and use it in GitHub Desktop.

Select an option

Save whyvez/1ff951b281457386e438 to your computer and use it in GitHub Desktop.
node url.parse(s3key)
url.parse('s3://tesera.datathemes/tesera.afgo.pgyi/uploads/[email protected]/aply/e11cb037-1b1d-432a-ab33-c41025b41cde/stage/datapackage.zip')
{
"protocol": "s3:",
"slashes": true,
"auth": null,
"host": "tesera.datathemes",
"port": null,
"hostname": "tesera.datathemes",
"hash": null,
"search": null,
"query": null,
"pathname": "/tesera.afgo.pgyi/uploads/[email protected]/aply/e11cb037-1b1d-432a-ab33-c41025b41cde/stage/datapackage.zip",
"path": "/tesera.afgo.pgyi/uploads/[email protected]/aply/e11cb037-1b1d-432a-ab33-c41025b41cde/stage/datapackage.zip",
"href": "s3://tesera.datathemes/tesera.afgo.pgyi/uploads/[email protected]/aply/e11cb037-1b1d-432a-ab33-c41025b41cde/stage/datapackage.zip"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment