Socket
Socket
Sign inDemoInstall

docker-parse-image

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    docker-parse-image

Parse docker image urls


Version published
Weekly downloads
1.1K
decreased by-10.9%
Maintainers
1
Install size
6.26 kB
Created
Weekly downloads
 

Readme

Source

docker-parse-image

Parse docker image urls

npm install docker-parse-image

build status

Usage

var parse = require('docker-parse-image')

console.log(parse('mafintosh/test'))
// --> {namespace:'mafintosh', repository:'test', tag:null}

console.log(parse('ubuntu'))
// --> {namespace:null, repository:'ubuntu', tag:null}

console.log(parse('mafintosh/test:14.04'))
// --> {namespace:'mafintosh', repository:'test', tag:'14.04'}

console.log(parse('ubuntu:14.04'))
// --> {namespace:null, repository:'ubuntu', tag:'14.04'}

console.log(parse('registry.com/ubuntu:14.04'))
// --> {registry:'registry.com', namespace:null, tag:'14.04'}

License

MIT

Keywords

FAQs

Last updated on 24 Sep 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc