Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/collaborne/tasks-scheduler
A time-based scheduler for tasks
https://github.com/collaborne/tasks-scheduler
Last synced: 1 day ago
JSON representation
A time-based scheduler for tasks
- Host: GitHub
- URL: https://github.com/collaborne/tasks-scheduler
- Owner: Collaborne
- License: apache-2.0
- Created: 2018-02-28T11:35:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-12T15:14:38.000Z (almost 5 years ago)
- Last Synced: 2024-09-16T11:55:42.612Z (about 2 months ago)
- Language: TypeScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tasks-scheduler [![Build Status](https://travis-ci.org/Collaborne/tasks-scheduler.svg?branch=master)](https://travis-ci.org/Collaborne/tasks-scheduler)
A time-based scheduler for tasks.
## Install
```bash
npm install --save collaborne-tasks-scheduler
```## Usage
```javascript
const tasksPlanner = require('collaborne-tasks-scheduler');
const scheduleResponse = tasksPlanner.schedule({
start: '2018-01-01',
end: '2018-06-30',
timeAllocation: 0.5,
tasks
});
```An example of `scheduleResponse` would then be:
```json
{
"deadlines": {
"http://collaborne.com/schema/1.0/tasks/sensing": "2018-01-16",
"http://collaborne.com/schema/1.0/tasks/visioning": "2018-01-24",
"http://collaborne.com/schema/1.0/tasks/prototyping": "2018-01-31",
"http://collaborne.com/schema/1.0/tasks/scaling": "2018-02-08"
},
"end": "2018-02-08",
"nrNormDays": 14,
"nrRealDays": 28,
"start": "2018-01-01",
"timeAllocation": 0.5
}
```