Noosphere Possibilities Maximized

npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

spirit-errors

1.0.1 • Public • Published

Spirit Errors

Summary

the Spirit Errors middleware attaches and error event listener to log errors as part of the Spirit Core static file generator.

Syntax

 
var err = new Error( "Oops something went wrong." ) ;
spiritCore.emit( spiritCore.ERROR_EVENT, err ) ;
 

parameters

err
A valid javascript Error Object .

Examples

install Spirit Core

npm install spirit-core
 
var spirit = require( 'spirit-core' ) ;
var err = new Error( "Uh oh." ) ;
spirit.emit( spirit.ERROR_EVENT, err ) ;
 

Handmade in San Francisco California by Alex Ray

Keywords

install

npm i spirit-errors

Downloadsweekly downloads

18

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability