Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (19 sloc) 0.487 kB
module Sprinkle
module Verifiers
# = Npm package Verifier
#
# Contains a verifier to check the existence of a npm module.
#
# == Example Usage
#
# verify { has_npm 'grunt' }
#
module Npm
Sprinkle::Verify.register(Sprinkle::Verifiers::Npm)
# Checks to make sure the npm <tt>module</tt> exists on the remote server.
def has_npm(package)
@commands << "npm --global list | grep \"#{package}@\""
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.