Skip to content

Commit 3400b14

Browse files
author
Stephen Parente
committed
Create README.md
1 parent a5b6b5a commit 3400b14

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# firebase-to-csv
2+
Node.js module for creating CSV backups of firebase databases.
3+
4+
Module is pretty simple. It has a CLI version and a non CLI version, and will detect whether it's being loaded in as a module. If you use it as a module the API is pretty simple. It exports one function, fetch.
5+
6+
## Installation
7+
8+
npm install firebase-to-csv
9+
10+
## Api
11+
12+
- [$firebaseCSVService(url, next, filepath)]
13+
14+
### $firebaseCSVService
15+
url: The Firebase URL endpoint you want to export
16+
next: callback function. Parameter can either be a `ReadableStream` or the return value of whether the write was successful.
17+
filepath: Optional. The path of the file to write to
18+
19+
If you provide a callback and no filepath, the program assumes you will stream it into the file yourself. In that case, the parameter of the callback will be a ReadableStream. You can then pipe your write function.
20+
21+
## CLI
22+
23+
If you use the CLI program, the last parameter is the filepath and the second to last is the url of the firebase application. If there is no filepath, it defaults to export.csv in the current directory.

0 commit comments

Comments
 (0)