Sha256: bc3b0e4f01b725f6d0a0eb39948651dcf59b60bfe9db61f7c35b2e5432d28357

Contents?: true

Size: 201 Bytes

Versions: 1

Compression:

Stored size: 201 Bytes

Contents

module NpmApi
  class Client

    def self.get(path)
      base_url = "https://api.npmjs.org/"
      url = base_url + path
      res = RestClient.get(url)
      JSON.parse(res.body)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
npm_api-0.1.0 lib/npm_api/client.rb