html meta tags(opengraph/twittercard) fetch/parse/cache server.
as you wish ;)
$ git clone [email protected]:iolo/methuss.git
$ cd methuss
$ npm install
run with npm:
$ npm start
or run with your favorite process manager such as nodemon or pm2 or forever or else:
$ nodemon index.js
To see verbose debug log:
$ export DEBUG='*'
before run.
$ npm install -g methuss
$ methuss-server
get meta tags as json/html/xml and image with Accept
header:
$ curl 'localhost:3000/metas?url=http://ppss.kr' -H 'Accept:application/json'
or format
in url:
$ curl 'localhost:3000/metas.json?url=http://ppss.kr'
$ curl 'localhost:3000/metas.html?url=http://ppss.kr'
$ curl 'localhost:3000/metas.xml?url=http://ppss.kr'
$ curl 'localhost:3000/metas.png?url=http://ppss.kr'
or else...
may the source be with you...