# web-to-dat

> Save a website to folder and share via Dat

Latest version **1.0.0** (published 2016-03-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install web-to-dat
pnpm add web-to-dat
yarn add web-to-dat
bun add web-to-dat
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-03-08 |
| First published | 2016-03-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Joe Hand |
| Maintainers | joeh |

## Links

- npm: https://www.npmjs.com/package/web-to-dat
- Repository: https://github.com/joehand/web-to-dat
- Homepage: https://github.com/joehand/web-to-dat#readme
- Issues: https://github.com/joehand/web-to-dat/issues
- npm.io page: https://npm.io/package/web-to-dat

## Dependencies (8)

- [level](https://npm.io/package/level.md) ^1.4.0
- [url-slug](https://npm.io/package/url-slug.md) ^1.1.0
- [hyperdrive](https://npm.io/package/hyperdrive.md) ^3.5.1
- [stream-each](https://npm.io/package/stream-each.md) ^1.1.2
- [folder-walker](https://npm.io/package/folder-walker.md) ^2.1.1
- [discovery-swarm](https://npm.io/package/discovery-swarm.md) ^3.1.2
- [website-scraper](https://npm.io/package/website-scraper.md) ^0.3.2
- [datland-swarm-defaults](https://npm.io/package/datland-swarm-defaults.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2016-03-08

## README

# Web2Dat

Clone a (static) website, create hash, and share via dat (optional)

## Usage

```javascript
var web2dat = require('web-to-dat')
web2dat('http://google.com', function (err, outDir, dat) {
  if (err) throw err
  console.log('Site scraped to:', outDir)
  console.log('Dat link:', dat.link)

  // Start sharing via Dat (not shared by default)
  dat.joinSwarm(function (err) {
    if (err) throw err
    console.log('Sharing Link')
  })
})
```

### Uses

* Use as a p2p CDN? 
* Make a new browser that only browses static sites via p2p
* Mirror all github pages

---
_Source: https://npm.io/package/web-to-dat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
