grab-page

Grab page wrapped in a promise

Usage no npm install needed!

<script type="module">
  import grabPage from 'https://cdn.skypack.dev/grab-page';
</script>

README

grab-page

returns the contents of a webpage wrapped in a promise

Build Status

Install

$ npm install --save grab-page

Usage

import grab from 'grab-page';

grab('http://www.example.com').then(data => {
    // do something with data
    console.log(data);
});

License

MIT © Christopher Howard