
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
firebase-client
Advanced tools
A simple Firebase client for Node.js, based on the firebase gem, by oscardelben.
## Installation
npm install firebase-client
Then, in your project require and instantiate the Firebase client:
var FirebaseClient = require('firebase-client');
var firebase = new FirebaseClient({
url: "https://node-firebase-client.firebaseio.com/",
auth: "my-auth-token"
});
Gets the value of a resource at the specified path. Returns a promise, resolved on a successful HTTP response, or rejected on a client/server error.
firebase.get(path);
To get the "example" resource:
firebase
.get('example')
.then(function(body){
console.log(body);
})
.fail(function(err){
console.log(err);
});
To get all resources withing your Firebase instance:
firebase
.get()
.then(function(body){
console.log(body);
})
.fail(function(err){
console.log(err);
});
Set the value of a resource at the specified path. Returns a promise, resolved on a successful HTTP response, or rejected on a client/server error.
firebase.set(path, data);
firebase
.set('example', { value: true })
.then(function(body){
console.log(body); // returns { value: true }
})
.fail(function(err){
console.log(err);
});
Creates a new child resource under the specified path. Returns a promise, resolved on a successful HTTP response, or rejected on a client/server error.
firebase.push(path, data);
firebase
.push('user', { email: 'test@example.com' })
.then(function(body){
console.log(body); // returns name ref, e.g. { name: "-JR-fhuV6T3vkTNSVrBs" }, of the child resource
})
.fail(function(err){
console.log(err);
});
Updates an existing resource at the specified path. Returns a promise, resolved on a successful HTTP response, or rejected on a client/server error.
firebase.update(path, data);
firebase
.update('example', { value: true })
.then(function(body){
console.log(body); // returns { value: true }
})
.fail(function(err){
console.log(err);
});
Removes resource at specified path. Returns a promise, resolved on a successful HTTP response, or rejected on a client/server error.
firebase.delete(path);
#### Example
firebase
.delete('example')
.then(function(){
console.log(); // returns empty body, i.e. null
})
.fail(function(err){
console.log(err);
});
For more information, check out the Firebase API docs.
FAQs
A simple Node.js client for Firebase
The npm package firebase-client receives a total of 33 weekly downloads. As such, firebase-client popularity was classified as not popular.
We found that firebase-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.