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
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# gitlab-db
2
-
A lightweight GitLab based JSON database with Mongo-style API. Backed by [node-gitlab](https://github.com/node-gitlab/node-gitlab) and [mingo](https://github.com/kofrasa/mingo).
2
+
A lightweight Gitlab based JSON database with Mongo-style API. Backed by [gitbreaker](https://github.com/jdalrymple/gitbeaker) and [mingo](https://github.com/kofrasa/mingo).
3
3
4
4
[![NPM version][npm-image]][npm-url]
5
5
[![Downloads][downloads-image]][npm-url]
@@ -17,10 +17,10 @@ npm i gitlab-db
17
17
## Quick Start
18
18
19
19
```js
20
-
importGitLabDBfrom'gitlab-db'
20
+
importGitlabDBfrom'gitlab-db'
21
21
22
22
// Instantiate a database
23
-
constdb=newGitLabDB('apple', {
23
+
constdb=newGitlabDB('apple', {
24
24
url:'http://gitlab.example.com',
25
25
token:'your_access_token',
26
26
repo:'group/repo',
@@ -46,13 +46,13 @@ Repository structure will be:
46
46
47
47
## API
48
48
49
-
Note: As all APIs returns a promise. I highly recommend the `yield` statement like the following:
49
+
Note: As all APIs returns a promise. I highly recommend the `async/await` statement like the following:
0 commit comments