🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

docker-parse-image

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-parse-image

Parse docker image urls

3.0.1
latest
Source
npm
Version published
Weekly downloads
1.5K
50.4%
Maintainers
1
Weekly downloads
 
Created
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

docker

FAQs

Package last updated on 24 Sep 2014

Did you know?

Socket

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