# ghost-detect

> Detect whether a site has been generated by the Ghost publishing platform.

Latest version **1.0.14** (published 2020-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install ghost-detect
pnpm add ghost-detect
yarn add ghost-detect
bun add ghost-detect
```

## 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.14 |
| Published | 2020-04-04 |
| First published | 2018-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 8 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Nikolaos Kamarinakis |
| Maintainers | k4m4 |
| Keywords | ghost, detect |

## Links

- npm: https://www.npmjs.com/package/ghost-detect
- Repository: https://github.com/k4m4/ghost-detect
- Homepage: https://github.com/k4m4/ghost-detect#readme
- Issues: https://github.com/k4m4/ghost-detect/issues
- npm.io page: https://npm.io/package/ghost-detect

## Dependencies (8)

- [pify](https://npm.io/package/pify.md) ^3.0.0
- [p-any](https://npm.io/package/p-any.md) ^1.1.0
- [arrify](https://npm.io/package/arrify.md) ^1.0.1
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.3
- [request](https://npm.io/package/request.md) ^2.88.2
- [p-timeout](https://npm.io/package/p-timeout.md) ^2.0.1
- [normalize-url](https://npm.io/package/normalize-url.md) ^2.0.1
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.5

## Recent versions

- 1.0.14 (latest) — 2020-04-04
- 1.0.13 — 2019-07-13
- 1.0.12 — 2019-07-13
- 1.0.11 — 2019-06-05
- 1.0.10 — 2019-02-10
- 1.0.9 — 2018-10-12
- 1.0.8 — 2018-05-11
- 1.0.7 — 2018-04-27
- 1.0.6 — 2018-03-10
- 1.0.5 — 2018-03-05
- 1.0.3 — 2018-03-04
- 1.0.1 — 2018-03-04
- 1.0.0 — 2018-03-04

## README

# ghost-detect [![Build Status](https://travis-ci.org/k4m4/ghost-detect.svg?branch=master)](https://travis-ci.org/k4m4/ghost-detect)

> Detect whether a site has been generated by the Ghost publishing platform.

## Install

```
~ ❯❯❯ npm install --save ghost-detect
```


## Usage

```js
const ghostDetect = require('ghost-detect');

ghostDetect('nikolaskama.me').then(ghost => {
	console.log(ghost);
	//=> true
});

ghostDetect('google.com').then(ghost => {
	console.log(ghost);
	//=> false
});
```


## API

### ghostDetect(targets, [options])

Returns a `Promise` for a `boolean` which is `true` if any of the `targets` have been generated using the Ghost publishing platform.

#### targets

Type: `string` `Array`

One or more targets to check. Can either be a full [URL](https://nodejs.org/api/url.html) like `https://hostname` or just `hostname`. When the protocol is missing from a target `http` is assumed.

#### options

##### timeout

Type: `number`

Timeout in milliseconds after which a request is considered failed. Default: `5000`.


## Related

- [ghost-detect.now](https://github.com/k4m4/ghost-detect.now) - A minimal service to check whether a site has been generator by the Ghost publishing platform.


## License

MIT © [Nikolaos Kamarinakis](https://nikolaskama.me/)

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