@abai/hastebin 中文文档教程
@abai/hastebin
@abai/hastebin 是一个用于创建 hastebins 的异步模块 https://yarn.pm/@ abai/hastebin
Installation
yarn add @abai/hastebin
Usage
import hastebin from '@abai/hastebin';
hastebin('your code here', { extension: 'txt' /* not required */ })
.then((haste) => {
console.log(haste); // https://hastebin.com/example.txt
})
.catch((error) => {
console.error(error);
});
(c) 2019 年至今 Aiden Bai
@abai/hastebin
@abai/hastebin is an asynchronous module for creating hastebins https://yarn.pm/@abai/hastebin
Installation
yarn add @abai/hastebin
Usage
import hastebin from '@abai/hastebin';
hastebin('your code here', { extension: 'txt' /* not required */ })
.then((haste) => {
console.log(haste); // https://hastebin.com/example.txt
})
.catch((error) => {
console.error(error);
});
(c) 2019-present Aiden Bai