Skip to content
StandardHentaPluginsPublic

About

Лёгкое создание временных файлов

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

HENTA Плагин: common/temp

Codacy Badge

С помощью этого плагина можно легко манипулировать временными файлами.

const tempPlugin = henta.getPlugin('common/temp');

Установка

Используйте консоль HENTA

p-install StandartHentaPlugins/temp

API

Получение пути для файла

tempPlugin.get(extension); // => tempPath
Параметр Тип Описание
extension string Расширение файла

Освобождение пути

tempPath.free();

Пример

  const tempPlugin = henta.getPlugin('common/temp');
  const myPath = tempPlugin.get('txt');

  fs.writeFileSync(myPath, 'somebody once told me...');
  // Делаем что-нибудь с этим файлом.

  myPath.free();

About

Лёгкое создание временных файлов

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages