Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# devcontrol-helper
## how does it work?
> the best code of devcontrol in one module
add it to your `package.json` file
```
'dependencies':{
...
'devcontrol-helper':'git+https://git.devcontrol.org/team/helperjs.git#TAG'
}
```
## Debug
see [npm package debug](https://www.npmjs.com/package/debug)
`DEBUG=helper:* node app.js`
or to only log 1 lib:
`DEBUG=helper:form node app.js`
## what can it do?
- lib
```
import {Lib} from 'devcontrol-helper'; // import * as helper from 'devcontrol-helper';
const player = new Lib('player');
player.setHook('beforeAdd',(x) => {x.name = x.name.toUpperCase();return x;});
let p1 = player.add({name:"Max Muster"});
console.log(player.getById(p1.id)); //{id:uuid}
```
- form
- math
- debug
> see [npm package debug](https://www.npmjs.com/package/debug)