instance method
get_package
Ruby on Rails 1.1.6
Since v1.1.6 Last seen in v2.2.3 PrivateSignature
get_package(package)
No documentation comment.
Parameters
-
packagereq
Source
# File lib/importmap/npm.rb, line 63
def get_package(package)
uri = self.class.base_uri.dup
uri.path = "/" + package
response = get_json(uri)
JSON.parse(response)
rescue JSON::ParserError
nil
end
Defined in lib/importmap/npm.rb line 63
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Npm