Giter Site home page Giter Site logo

hours's Introduction

hours

This is the script that I use for generating my timesheets. Maybe you'll find it useful. But probably not because it does only what I need.

features

  • sanity checks on the data (ex: "is the JSON formatted correctly?", "does the work end after it begins?")
  • uses a mustache template to compose the output, so the format is easily customized
  • generates PDF output from HTML using wkhtmltopdf

usage

Run node hours.js time.json to generate a timesheet.pdf from the time.json file.

format

{
    "name": "Bob Bob",
    "rate": 10.50,
    "days": [
        {
            "date": "1/1/2015",
            "sessions": [
                {
                    "start": "9:00 AM",
                    "end": "11:30 PM",
                    "less": 30,
                    "description": "Did some stuff."
                }
        }
    ]
}

fields

  • name: your name
  • rate: your hourly rate
  • sessions: time segments when you are working
  • start: the time when you started working
  • end: the time when you stopped working
  • less: the number of minutes you wasted (for breaks)
  • description: what you worked on

hours's People

Watchers

Owen Trueblood avatar  avatar

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.