site-detector

0.1.1 • Public • Published

Introduction

Usage

npm i --save site-detector

Command Line Interface

npm i -g site-detector
site-detector whitehouse.gov

You will get the result

{ Drupal: '7' }

ES6

import siteDetector from 'site-detector'
siteDetector('https://your-site.com/').then((app) => console.log(app))

ES5 Promise Style

var siteDetector = require('site-detector')
siteDetector('https://your-site.com/').then(function(app) {
  console.log(app)
})

ES5 Callback Style

var siteDetector = require('site-detector')
siteDetector('https://your-site.com/', function(app) {
  console.log(app)
})

TODO

  • Clean up (remove redundant files)
  • Add command line tool
  • Add more tests
  • Add more features (platform, script)

Credit

https://github.com/nqbao/chromesniffer

Package Sidebar

Install

npm i site-detector

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • joehua