Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

envato_optimiser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envato_optimiser

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Envato Optimiser

A gem to make it easier to identify potential issues on your Envato item pages.

Installation

Add this line to your application's Gemfile:

gem 'envato_optimiser'

And then execute:

$ bundle

Or install it yourself as:

$ gem install envato_optimiser

Usage

To use this you need to first instantiate a new instance of EnvatoOptimiser::Item and pass in the full URI of the item page. For example:

item = EnvatoOptimiser::Item.new('https://themeforest.net/item/avada-responsive-multipurpose-theme/2833226')

Once you have this setup, you can run the check! method to perform the tests.

item.check!
#=> {:image_count=>73, :image_403_count=>0, :image_404_count=>0, :image_redirect_count=>2, :total_image_weight=>3895262}

This will return a hash with the results of the check. Depending on the number of images found in the item page (and the speed the origin server can process requests) this can take a minute or so to complete.

FAQs

Package last updated on 26 Jan 2017

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc