
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
Простая абстракция для легкого управление S3 хранилищем timeweb.cloud в Next.js приложениях
$ npm i easyload
// hooks/useEasyLoad.ts или любая другая папка
import {create} from "easyload";
// Конфигурация вашего хранилища
const s3Config = {
accessKeyId: "ct29404",
secretAccessKey: "2114a246c3132624487e430cece76025",
endpoint: "https://s3.timeweb.com",
s3ForcePathStyle: true,
region: "ru-1",
apiVersion: "latest",
};
// Теперь этот хук можно использовать в любом месте приложения
export const useEasyLoad = create(s3Config);
import {useEasyLoad} from '@/hooks/useEasyLoad.ts'
...
export default function ClientComponent() {
const {easyLoad} = useEasyLoad();
return <div>Базовый клиентский компонент</div>;
}
// Любой файл
const file = null;
// Имя бакета
const bucket = "my-backet";
// 1. Добавить файл в бакет
easyLoad.upload(file, bucket);
// 2. Удалить файл из бакета
easyLoad.delete("ссылка на файл", bucket);
// 3. Файлы в бакете
const filesInBucket = easyLoad.getFiles(bucket);
// 4. Создать новый бакет
easyLoad.createBucket(bucket);
// 5. Список всех бакетов в вашем хранилище
const buckets = easyLoad.getBuckets();
// 6. Удалить бакет
easyLoad.deleteBucket(bucket);
// Посмотреть текущую конфигурацию
easyLoad.configuration;
// Все методы возращают response от S3
// Вернет инфо о загруженном файле
// const res = easyLoad.upload(file, bucket);
FAQs
Абстракция для легкого управления S3 хранилищем timeweb.cloud
The npm package easyload receives a total of 0 weekly downloads. As such, easyload popularity was classified as not popular.
We found that easyload 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.