0.2.0 • Published 4 years ago

sumoguri v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

sumoguri(素潜り)

CircleCI codecov npm.io npm.io npm.io

The CLI command for crawl static website and take screenshots.

Usage

sumoguri --help

Example: Run with external url

  • URL: http://example.com/
  • Viewports: 1680x1050, 828x1792
  • Locales: en-US, ja-JP

sumoguri http://example.com --locales en-US,ja-JP --viewports 1680x1050,828x1792

Then sumoguri will generate these screenshots:

  • __screenshots__/ja-JP/828x1792/index.png
  • __screenshots__/en-US/828x1792/index.png
  • __screenshots__/en-US/1680x1050/index.png
  • __screenshots__/ja-JP/1680x1050/index.png

Example: Run with localhost

$ ls public
index.html
$ npx serve public &
[1] 50730

npx: installed 78 in 5.382s

   ┌───────────────────────────────────────────────────┐
   │                                                   │
   │   Serving!                                        │
   │                                                   │
   │   - Local:            http://localhost:5000       │
   │   - On Your Network:  http://192.168.10.33:5000   │
   │                                                   │
   │   Copied local address to clipboard!              │
   │                                                   │
   └───────────────────────────────────────────────────┘

$ sumoguri http://localhost:5000
save __screenshots__/en-US/800x600/index.png

Contribution

  1. Fork this repository
  2. Write your code and tests
  3. Run tests
  4. Create pull request to master branch

Development

git clone git@github.com:Leko/sumoguri.git
cd sumoguri
npm i

License

This package under MIT license.

0.2.0

4 years ago

0.1.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago