Skip to content
Hyro edited this page Dec 9, 2021 · 4 revisions

NodeJS

// CJS
const hyttpo = require('hyttpo').default;

// ESM, TYPESCRIPT
import hyttpo from 'hyttpo';

Example Usage:

(async() => {
   console.log(await hyttpo.default.get('url'))
})();

Browser

  1. Download hyttpo-webpack.js from https://github.com/Garlic-Team/hyttpo/releases
  2. Put to your website
  3. Import <script src='./hyttpo-webpack.js'></script>

Example Usage:

<script src='./hyttpo-webpack.js'></script>

<script>
(async() => {
   console.log(await hyttpo.default.get('url'))
})();
</script>
Clone this wiki locally