Greasy Fork is available in English.

console.save

A simple way to save objects as .json files or to save blobs as files from the console.


Установить этот скрипт?
Автор
Frederick Wang
Установок в день
0
Всего установок
46
Оценки
100
Версия
0.2.0
Создано
01.09.2018
Обновлено
12.08.2020
Размер
1,2 КБ
Лицензия
нет данных
Работает на
всех сайтах

console-save.js

A simple way to save objects as .json files or to save blobs as files from the console.

Usage

console.save(data, filename)

Data can be a string or just an object, objects are passed through json.stringify() before writing to file.

In addition, data also can be a blob.

Licence

MIT