{"id":17474139,"url":"https://github.com/ghostffcode/toggl-walter","last_synced_at":"2026-01-07T14:06:19.338Z","repository":{"id":81390206,"uuid":"81977457","full_name":"ghostffcode/toggl-walter","owner":"ghostffcode","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-16T01:09:55.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T20:48:36.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostffcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-14T18:43:11.000Z","updated_at":"2017-03-29T22:00:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"42c012a4-d81f-47ed-b008-c7140b2a6b5f","html_url":"https://github.com/ghostffcode/toggl-walter","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"cddbf718dfd4f03393afb2b349b097de7f609d43"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostffcode%2Ftoggl-walter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostffcode%2Ftoggl-walter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostffcode%2Ftoggl-walter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostffcode%2Ftoggl-walter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostffcode","download_url":"https://codeload.github.com/ghostffcode/toggl-walter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246015069,"owners_count":20709918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-18T18:08:32.794Z","updated_at":"2026-01-07T14:06:19.325Z","avatar_url":"https://github.com/ghostffcode.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toggl-walter\n\n## Installation\n\nTo install from source, clone this repo and install dependencies.\n\nwith yarn:\n\n```bash\n$ yarn\n```\n\nOr npm:\n```bash\n$ npm install\n```\n## Usage\nThe output is built with a umd library target, you can use in browser:\n```html\n\u003cscript src=\"link/to/bundle.js\" charset=\"utf-8\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n  // WalterCalculator class is available here\n  var money = 30;\n  new WalterCalculator(money);\n\u003c/script\u003e\n```\n or node:\n ```javascript\nconst calc = require('./build/bundle.js');\nconst money = 30;\nnew calc(money);\n ```\n### Concept\nThe `WalterCalculator` method can accept a callback function as a second argument, like so:\n```javascript\n//...\nnew WalterCalculator(money, function (data) {\n  // you have array of iterations\n});\n```\nThe array returned contains objects which include details (cycle, walter and leftOver) of each iteration, example data:\n```javascript\n{\n  cycle: 1,\n  walter: 26,\n  leftOver: 2.3\n}\n```\n\n## Build\nBuild using webpack:\n```bash\n# with yarn\n$ yarn run build\n\n# with npm\n$ npm run build\n```\n\n## Test\nTo run sample test case:\n```bash\n# with npm\n$ npm run test\n\n# with yarn\n$ yarn run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostffcode%2Ftoggl-walter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostffcode%2Ftoggl-walter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostffcode%2Ftoggl-walter/lists"}