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: 6 days 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-12T15:14:38.000Z (about 5 years ago)
- Last Synced: 2024-12-05T22:47:02.477Z (24 days ago)
- Language: TypeScript
- Size: 65.4 KB
- Stars: 1
- 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
}
```