Skip to content

StandardHentaPlugins/temp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors