New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-autoshot

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-autoshot - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.travis.yml

3

Gruntfile.js

@@ -38,3 +38,3 @@ /*

type: 'jpg',
remote: 'http://www.google.com',
remote: 'http://github.com/',
local: {

@@ -45,2 +45,3 @@ path: './test/src',

viewport: [
'1920x1080',
'1024x768',

@@ -47,0 +48,0 @@ '640x960'

{
"name": "grunt-autoshot",
"version": "0.0.1",
"version": "0.0.2",
"description": "Create a quick screenshot for your site which could help for document or testing.",
"homepage": "https://github.com//grunt-autoshot",
"bugs": "https://github.com//grunt-autoshot/issues",
"homepage": "https://github.com/Ferrari/grunt-autoshot",
"bugs": "https://github.com/Ferrari/grunt-autoshot/issues",
"author": {

@@ -18,3 +18,3 @@ "name": "Ferrari Lee",

"type": "git",
"url": "https://github.com//grunt-autoshot"
"url": "https://github.com/Ferrari/grunt-autoshot"
},

@@ -21,0 +21,0 @@ "licenses": [

@@ -1,5 +0,5 @@

# grunt-autoshot
# grunt-autoshot [![Build Status](https://travis-ci.org/Ferrari/grunt-autoshot.png?branch=master)](https://travis-ci.org/Ferrari/grunt-autoshot)
> Create a quick screenshot for your site which could help for document or testing.
> Inspired by [Testing your responsive design with PhantomJS](http://daker.me/2013/07/testing-your-responsive-design-with-phantomjs.html), also suport different resolution base on your viewport, it's useful to responsive design.
Create a quick screenshot for your site which could help for document or testing.
Inspired by [Testing your responsive design with PhantomJS](http://daker.me/2013/07/testing-your-responsive-design-with-phantomjs.html), also suport different resolution base on your viewport, it's useful to responsive design.

@@ -21,2 +21,4 @@ ## Getting Started

Final and the most important thing, please make sure [**phantomjs**](http://phantomjs.org/) are in your PATH, cause this plugin use it to generate screenshot, so remember [install](http://phantomjs.org/download.html) first.
## The "autoshot" task

@@ -32,3 +34,10 @@

options: {
// Task-specific options go here.
// necessary config
path: '',
filename: '',
type: '',
// optional config, must set either remote or local
remote: '',
local: '',
viewport: []
},

@@ -90,7 +99,3 @@ },

## Release History
* v0.0.1 - Plugin Initial
## License
Copyright (c) 2013 Ferrari Lee. Licensed under the MIT license.

@@ -73,3 +73,3 @@ /*

var hasLocal = false;
var hasRemote = false;
if (options.remote) {

@@ -92,3 +92,3 @@ hasRemote = true;

var hasRemote = false;
var hasLocal = false;
if (options.local) {

@@ -95,0 +95,0 @@ hasLocal = true;

@@ -26,11 +26,11 @@ 'use strict';

exports.autoshot = {
setUp: function(done) {
// setup here if necessary
done();
},
default_options: function(test) {
//TODO
test.expect(1);
var actual = grunt.file.read('test/screenshot/remote-screenshot-1920x1080.jpg');
var expected = grunt.file.read('test/expected/screenshot.jpg');
test.equal(actual, expected, 'should generate screenshot of sample site');
test.done();
},
};
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