1.0.14 • Published 4 years ago

ghost-detect v1.0.14

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ghost-detect Build Status

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

Install

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

Usage

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 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 - A minimal service to check whether a site has been generator by the Ghost publishing platform.

License

MIT © Nikolaos Kamarinakis

1.0.14

4 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago