presidium 3.7.1 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Presidium
|
|
2
2
|

|
|
3
3
|
|
|
4
|
+
A library for creating web services.
|
|
5
|
+
|
|
4
6
|
Source code: [GitHub](https://github.com/richytong/presidium) |
|
|
5
7
|
License: [CFOSS](https://cloutsworld.com/en-us/legal/license/cfoss)
|
|
6
8
|
|
|
@@ -8,7 +10,23 @@ License: [CFOSS](https://cloutsworld.com/en-us/legal/license/cfoss)
|
|
|
8
10
|
[](https://codecov.io/gh/richytong/presidium)
|
|
9
11
|
[](https://www.npmjs.com/package/presidium)
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
### Presidium WebSocket
|
|
14
|
+
|
|
15
|
+
Source code: [GitHub](https://github.com/richytong/presidium-websocket) |
|
|
16
|
+
License: [CFOSS](https://cloutsworld.com/en-us/legal/license/cfoss)
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
[](https://codecov.io/gh/richytong/presidium-websocket)
|
|
20
|
+
[](https://www.npmjs.com/package/presidium-websocket)
|
|
21
|
+
|
|
22
|
+
### Presidium DB
|
|
23
|
+
|
|
24
|
+
Source code: [GitHub](https://github.com/richytong/presidium-db) |
|
|
25
|
+
License: [CFOSS](https://cloutsworld.com/en-us/legal/license/cfoss)
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
[](https://codecov.io/gh/richytong/presidium-db)
|
|
29
|
+
[](https://www.npmjs.com/package/presidium-db)
|
|
12
30
|
|
|
13
31
|
## Installation
|
|
14
32
|
with [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm):
|
|
@@ -358,8 +376,8 @@ const data = await googleChromeDevTools.Page.navigate({
|
|
|
358
376
|
const DiskHashTable = require('presidium-db/DiskHashTable')
|
|
359
377
|
|
|
360
378
|
const ht = new DiskHashTable({
|
|
361
|
-
storageFilepath: '/path/to/storage-file',
|
|
362
|
-
headerFilepath: '/path/to/header-file',
|
|
379
|
+
storageFilepath: '/path/to/ht-storage-file',
|
|
380
|
+
headerFilepath: '/path/to/ht-header-file',
|
|
363
381
|
initialLength: 1024,
|
|
364
382
|
})
|
|
365
383
|
await ht.init()
|
|
@@ -377,8 +395,8 @@ await ht.delete('my-key')
|
|
|
377
395
|
const DiskSortedHashTable = require('presidium-db/DiskSortedHashTable')
|
|
378
396
|
|
|
379
397
|
const sortedHt = new DiskSortedHashTable({
|
|
380
|
-
storageFilepath: '/path/to/storage-file',
|
|
381
|
-
headerFilepath: '/path/to/header-file',
|
|
398
|
+
storageFilepath: '/path/to/sortedHt-storage-file',
|
|
399
|
+
headerFilepath: '/path/to/sortedHt-header-file',
|
|
382
400
|
initialLength: 1024,
|
|
383
401
|
})
|
|
384
402
|
await sortedHt.init()
|