1.0.6 • Published 4 years ago

ghost-version v1.0.6

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

ghost-version Build Status

Retrieve which version of the Ghost publishing platform a site is using.

Install

~ ❯❯❯ npm install --save ghost-version

Usage

const ghostVersion = require('ghost-version');

ghostVersion('nikolaskama.me').then(ghost_version => {
	console.log(ghost_version);
	//=> '1.19'
});

ghostVersion('google.com').then(ghost_version => {
	console.log(ghost_version);
	//=> 'Target doesn\'t seem to be using Ghost'
});

API

ghostVersion(targets, options)

Returns a Promise for the version of Ghost of the targets.

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.

License

MIT © Nikolaos Kamarinakis

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago