alien-body

0.0.14 • Public • Published

Divsense Alien Body

Usage:

var alienId = "my-cool-divsense-alien";
var alienBody = require("alien-body")( alienId );
 
alienBody.on("head", handleHeadEvent );
 
function handleHeadEvent( req, res, next ){
 
    if( req.method === "init" ){
        res.content.head = {
          icon: "fa-star",
          text: "AnotherAlien"
        }
    }
  
    next( res );
 
}
 
 

Readme

Keywords

Package Sidebar

Install

npm i alien-body

Weekly Downloads

1

Version

0.0.14

License

ISC

Last publish

Collaborators

  • divsense