Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
firebase-import
Advanced tools
Firebase-import is a helper utility for importing large JSON files into your Firebase Realtime Database. It breaks the JSON into smaller chunks and uploads them individually through the Firebase API.
This utility is designed and tested for imports of files up to 400MB.
Install the firebase-import module globally:
$ npm install -g firebase-import
or install it locally and add it to your path:
$ npm install firebase-import
$ export PATH=$PATH:`npm bin`
Using your Google account, login to Firebase console: https://console.firebase.google.com/
See Example below
$ firebase-import
Usage: firebase-import
Options:
--database_url Firebase database URL (e.g. https://databaseName.firebaseio.com). [required]
--path Database path (e.g. /products). [required]
--json The JSON file to import. [required]
--merge Write the top-level children without overwriting the whole parent.
--force Don't prompt before overwriting data.
--service_account Path to a JSON file with your service account credentials.
$ firebase-import --database_url https://test.firebaseio-demo.com --path / --json test.json --service_account /path/to/your/service_account.json
All data at https://test.firebaseio-demo.com/ will be overwritten.
Press <enter> to proceed, Ctrl-C to abort.
Reading /Users/michael/tmp/test.json... (may take a minute)
Preparing JSON for import... (may take a minute)
Importing [=================================================] 100% (9431/9431)
Import completed.
Or an example of merging the contents of test.json with what's already in Firebase:
$ firebase-import --database_url https://test.firebaseio-demo.com --path / --json test.json --merge --service_account /path/to/your/service_account.json
Each top-level child in test.json will be written under https://test.firebaseio-demo.com/.
If a child already exists, it will be overwritten.
Press <enter> to proceed, Ctrl-C to abort.
Reading /Users/michael/tmp/test.json... (may take a minute)
Preparing JSON for import... (may take a minute)
Importing [=================================================] 100% (9431/9431)
Import completed.
FAQs
npm config for Firebase Import
The npm package firebase-import receives a total of 4 weekly downloads. As such, firebase-import popularity was classified as not popular.
We found that firebase-import demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.