
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
node-annonfiles
Advanced tools
Annonfiles is unofficial API for uploading and downloading files.
if you are using NPM :
npm install node-annonfiles
or YARN :
yarn add node-annonfiles
const { upload, getInfo, download } = require("node-annonfiles");
(async () => {
try {
// If you have not keyAcess let it empty
const uploadFile = await upload("./file.txt", { key: "PUT_KEYACCESS" });
console.log(uploadFile); // you will get same result on the top
// functions download,getInfo = (id: string) => result json
} catch (e) {
console.log(e);
}
})();
node-annonfiles --upload file.txt
with keyaccess original from Annonfiles website
node-annonfiles --upload file.txt@{keyaccess}
Output
Wait for uploading file.txt
{
"status": true,
"data": {
"file": {
"url": {
"full": "https://anonfiles.com/D9KbB411u2/file_txt",
"short": "https://anonfiles.com/D9KbB411u2"
},
"metadata": {
"id": "D9KbB411u2",
"name": "file.txt",
"size": {
"bytes": 5,
"readable": "5 B"
}
}
}
}
}
You should use ID of the file you already uploaded it, I used D9KbB411u2 just for an example.
NOTE: you should use proxy for passing cloudflare detector.
Normal usage :
node-annonfiles --download D9KbB411u2
With proxy usage :
node-annonfiles --download D9KbB411u2@proxy
Output
Fetching direct link...
https://cdn-140.anonfiles.com/D9KbB411u2/d0db8fb0-1623874914/file.txt
Use ID for get the info of files.
node-annonfiles --get D9KbB411u2
Output
Fetching File Metadata...
{
"url": {
"short": "https://anonfiles.com/D9KbB411u2",
"full": "https://anonfiles.com/D9KbB411u2/file_txt"
},
"metadata": {
"size": { "bytes": 5, "readable": "5 B" },
"name": "file_txt",
"id": "D9KbB411u2"
}
}
Copyright (c) 2021 CA1R71 Licensed under the Apcahe 2.0 license.
FAQs
Annonfiles is an unofficial API for uploading files also downloading.
The npm package node-annonfiles receives a total of 5 weekly downloads. As such, node-annonfiles popularity was classified as not popular.
We found that node-annonfiles 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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.