You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .README.md
+84-3Lines changed: 84 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,91 @@ ${badge('devDependencies')}
13
13
14
14
`npm install --save ${pkg.name}`
15
15
16
-
## Usage & Examples
16
+
## Documentation
17
17
18
18
Head on over to the [documentation](https://oaklabsinc.github.io/oak-tools/) page!
19
19
20
+
## Usage
21
+
22
+
`oak-tools` consists of a few helpful utility methods. Everything exposed from the module is a `Class` and needs to be constructed using `new`
23
+
24
+
**logger()**
25
+
26
+
The logger is based off [pino](https://github.com/pinojs/pino) and has nearly the same same option parameters. The following example are the default options.
27
+
28
+
```javascript
29
+
constLogger=require('oak-tools').logger
30
+
let log =newLogger({
31
+
level:'info',
32
+
stream:process.stdout,
33
+
pretty:true
34
+
})
35
+
36
+
```
37
+
38
+
39
+
40
+
**server(_type_)**
41
+
42
+
The server is extended from a plain 'ol [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter). Head [here](https://oaklabsinc.github.io/oak-tools/WebSocketServer.html) for full documentation on the `server` class
Copy file name to clipboardExpand all lines: README.md
+84-3Lines changed: 84 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,91 @@ Helpful utilities for developing oak applications
13
13
14
14
`npm install --save oak-tools`
15
15
16
-
## Usage & Examples
16
+
## Documentation
17
17
18
18
Head on over to the [documentation](https://oaklabsinc.github.io/oak-tools/) page!
19
19
20
+
## Usage
21
+
22
+
`oak-tools` consists of a few helpful utility methods. Everything exposed from the module is a `Class` and needs to be constructed using `new`
23
+
24
+
**logger()**
25
+
26
+
The logger is based off [pino](https://github.com/pinojs/pino) and has nearly the same same option parameters. The following example are the default options.
27
+
28
+
```javascript
29
+
constLogger=require('oak-tools').logger
30
+
let log =newLogger({
31
+
level:'info',
32
+
stream:process.stdout,
33
+
pretty:true
34
+
})
35
+
36
+
```
37
+
38
+
39
+
40
+
**server(_type_)**
41
+
42
+
The server is extended from a plain 'ol [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter). Head [here](https://oaklabsinc.github.io/oak-tools/WebSocketServer.html) for full documentation on the `server` class
Copy file name to clipboardExpand all lines: docs/Logger.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -378,7 +378,7 @@ <h5>Returns:</h5>
378
378
<brclass="clear">
379
379
380
380
<footer>
381
-
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 21:46:11 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
381
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 22:32:08 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Copy file name to clipboardExpand all lines: docs/Message.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1309,7 +1309,7 @@ <h5>Returns:</h5>
1309
1309
<brclass="clear">
1310
1310
1311
1311
<footer>
1312
-
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 21:46:11 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
1312
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 22:32:08 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 21:46:11 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
1495
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 22:32:08 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 21:46:11 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
1215
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 22:32:08 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Copy file name to clipboardExpand all lines: docs/global.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -512,7 +512,7 @@ <h5>Type:</h5>
512
512
<brclass="clear">
513
513
514
514
<footer>
515
-
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 21:46:11 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
515
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 22:32:08 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 21:46:11 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
58
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 22:32:08 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 21:46:11 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
97
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 22:32:08 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 21:46:11 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
88
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Jan 19 2017 22:32:08 GMT-0800 (PST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
0 commit comments