Giter Club home page Giter Club logo

tlapse's Introduction

tlapse Build Status npm

Create a timelapse of your web development 📷

A tiny utility that takes periodic screenshots of your site while you develop. Uses Puppeteer for creating beautiful high resolution screenshots 🌸.

Usage

npm install npm-run-all tlapse --save-dev
{
  "scripts": {
    "dev": "run-p server tlapse",
    "server": "node server",
    "tlapse": "tlapse localhost:3000"
  }
}
npm run dev

Note npm-run-all lets you run scripts in parallel and makes sure that both tlapse and server are started.

Options tlapse can be configured to use different screenshot resolution, interval, etc... to view available options run

tlapse --help

Articles

License

MIT - Typicode 🌵 - Patreon

tlapse's People

Contributors

gasp avatar jakubrohleder avatar jkulak avatar kevinkace avatar marcus-alsterfjord-visma avatar marionebl avatar typicode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tlapse's Issues

tlapse does not take/save screenshots

Hi, great idea, I would love to use it, but:

/app # tlapse -- localhost:3000

results in:

Screenshots directory: ./tlapse
Interval: 1m
01:21:14
01:22:15

but the content of the directory stays empty.

I run wget localhost:3000 and it returns an index.html that I also see in the browser.

Changing the directory, resolution, interval didn't change anything.

I'm using it inside a Docker container FROM mhart/alpine-node:7.4.

I am running it as root, and did the npm install -g tlapse as root.

Blank images on https localhost

Running tlapse --every 45s --directory ./screens -- https://localhost:8080 gives:

Screenshots directory: ./screens
Interval: 45s
10:42:32 ✔ Generated 1 screenshot from 1 url and 1 size

And a 6kb blank image:
1514950948121

Default format doesn't work on Windows

The default tlapse file format of 'hh:MM:ss` makes invalid filenames on windows, so no screenshots are ever written.

Something like hh-MM-ss might be more cross-platform friendly.

Seems a bit strange that the day isn't part of the filename as well, since development may often stretch out over multiple days.

Startup failure

Trying to run tlapse for the first time and I'm getting an error.

$ tlapse -- localhost:3000

Screenshots directory: ./tlapse
Interval: 1m
C:\Users\Patrick\Documents\Code\gw2api-explorer\node_modules\tlapse\index.js:67
    if (latestFile.indexOf('.png.') !== -1) {
                  ^

TypeError: Cannot read property 'indexOf' of undefined
    at run (C:\Users\Patrick\Documents\Code\gw2api-explorer\node_modules\tlapse\index.js:67:19)
    at Object.<anonymous> (C:\Users\Patrick\Documents\Code\gw2api-explorer\node_modules\tlapse\index.js:85:1)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:420:7)
    at startup (bootstrap_node.js:139:9)

The tlapse directory is created successfully, but it seems like it's barfing when trying to find a previous screenshot when one doesn't exist. I guess I'll try and make one manually?

Feat Request: Ability to Set Height to "Auto"

I know that you can set the width and height by specifying them as options, but if you don't already know the height of the page, it would be nice to add an option to have that calculated for you.

Something like tlapse localhost:3000 -v 1300 x auto or similar.

const childProcess = require('child_process');

Hi there,

I can't start tlapse, here is console output:

tlapse --every 30s -- localhost:8080

/usr/local/lib/node_modules/tlapse/node_modules/execa/index.js:2
const childProcess = require('child_process');
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/tlapse/index.js:5:13)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

Ubuntu 14.04.5 LTS

nodejs --version
v0.10.25

npm --version
1.3.10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.