snapshotjs

1.0.3 • Public • Published

dante

一、简介

基于phantomjs的截屏工具

二、安装

npm install snapshotjs --g

或者本地使用

npm install snapshotjs --save    

三、用例

全局模式: snapshot -u=https://www.baidu.com -o=c:/snapshot/baidu.png

本地模式:

        var snapshot  = require('snapshot');

        snapshot.capture('https://www.baidu.com','c:/snapshot/baidu.png',{});    

四、开源许可

基于 MIT License 开源,使用代码只需说明来源,或者引用 license.txt 即可。

Readme

Keywords

none

Package Sidebar

Install

npm i snapshotjs

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • beven