
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
futurebasejs
Advanced tools
The FutureBaseJS
SDK provides a simple interface to interact with the FutureBase API for managing collections and documents.
Install the package using npm:
npm install futurebasejs
Import and initialize the FutureBase
class with your credentials:
import FutureBase from "futurebasejs";
const futureBase = new FutureBase({
username: "your-username",
password: "your-password",
projectId: "your-project-id",
});
allCollections()
Fetch all collections for the authenticated user.
const response = await futureBase.allCollections();
console.log(response);
allDocuments(collectionId: string)
Fetch all documents from a specific collection.
const response = await futureBase.allDocuments("collection-id");
console.log(response);
insertDocument(collectionId: string, data: object)
Insert a new document into a collection.
const response = await futureBase.insertDocument("collection-id", { key: "value" });
console.log(response);
updateDocument(collectionId: string, data: object)
Update an existing document in a collection.
const response = await futureBase.updateDocument("collection-id", { key: "new-value" });
console.log(response);
deleteDocument(collectionId: string, filter: object)
Delete a document from a collection based on a filter.
const response = await futureBase.deleteDocument("collection-id", { key: "value" });
console.log(response);
All methods return a FutureResponse
object:
interface FutureResponse {
status: "success" | "error";
message: string;
data?: any;
error?: string;
}
This project is licensed under the MIT License.
FAQs
A custom React hook for interacting with Futurebase
The npm package futurebasejs receives a total of 2 weekly downloads. As such, futurebasejs popularity was classified as not popular.
We found that futurebasejs demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.