Socket
Socket
Sign inDemoInstall

rethrow

Package Overview
Dependencies
12
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rethrow

Re-throw an error to get better error reporting for templates.


Version published
Maintainers
1
Install size
99.2 kB
Created

Readme

Source

rethrow NPM version

Re-throw an error to get better error reporting for templates.

Based on rethrow in Jade.

Example

screen shot 2015-05-24 at 6 29 35 am

Install

Install with npm

$ npm i rethrow --save

Usage

var rethrow = require('rethrow');

See template-error for usage examples.

API

rethrow

Re-throw the given err in context to the offending template expression in filename at the given lineno.

Params

  • err {Error}: Error object
  • filename {String}: The file path of the template
  • lineno {String}: The line number of the expression causing the error.
  • str {String}: Template string
  • assemble: Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… more
  • template-error: Make template errors easy to understand and fix.
  • template: Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… more
  • verb: Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… more

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on August 11, 2015.

Keywords

FAQs

Last updated on 21 Aug 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc