{"_id":"fasterror","_rev":"324230","name":"fasterror","description":"Quickly create custom error objects.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"jrpruit1","email":"jake@jakepruitt.com"},{"name":"rclark","email":"ryan.clark.j@gmail.com"},{"name":"willwhite","email":"will@mapbox.com"}],"time":{"modified":"2021-06-04T01:55:03.000Z","created":"2014-01-27T03:17:36.072Z","1.1.0":"2016-10-25T20:35:53.443Z","1.0.0":"2016-01-12T14:31:06.956Z","0.0.0":"2014-01-27T03:17:36.072Z"},"users":{},"author":{"name":"Will White","email":"will@mapbox.com"},"repository":"","versions":{"1.1.0":{"name":"fasterror","version":"1.1.0","description":"Quickly create custom error objects.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nyc tape test/*.js"},"repository":"","author":{"name":"Will White","email":"will@mapbox.com"},"license":"BSD","devDependencies":{"nyc":"^3.2.2","tape":"^4.2.2"},"gitHead":"750ec18542915bae32c90f1ae37bc2df681c036c","_id":"fasterror@1.1.0","_shasum":"0bc11c02117a9ae7b3e9ea57db606eb09f8523ac","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"jrpruit1","email":"jake@jakepruitt.com"},"dist":{"shasum":"0bc11c02117a9ae7b3e9ea57db606eb09f8523ac","size":1795,"noattachment":false,"key":"/fasterror/-/fasterror-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fasterror/download/fasterror-1.1.0.tgz"},"maintainers":[{"name":"jrpruit1","email":"jake@jakepruitt.com"},{"name":"rclark","email":"ryan.clark.j@gmail.com"},{"name":"willwhite","email":"will@mapbox.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fasterror-1.1.0.tgz_1477427751718_0.5270640314556658"},"publish_time":1477427753443,"_cnpm_publish_time":1477427753443,"_hasShrinkwrap":false},"1.0.0":{"name":"fasterror","version":"1.0.0","description":"Quickly create custom error objects.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nyc tape test/*.js"},"repository":"","author":{"name":"Will White","email":"will@mapbox.com"},"license":"BSD","devDependencies":{"nyc":"^3.2.2","tape":"^4.2.2"},"gitHead":"2f56e61fbe8e448b1fe23b5a6e669cde86bd5ed3","_id":"fasterror@1.0.0","_shasum":"1318669348d64b081708892ed3942bb4ee35b41d","_from":".","_npmVersion":"3.5.3","_nodeVersion":"0.10.38","_npmUser":{"name":"willwhite","email":"will@mapbox.com"},"dist":{"shasum":"1318669348d64b081708892ed3942bb4ee35b41d","size":1604,"noattachment":false,"key":"/fasterror/-/fasterror-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fasterror/download/fasterror-1.0.0.tgz"},"maintainers":[{"name":"jrpruit1","email":"jake@jakepruitt.com"},{"name":"rclark","email":"ryan.clark.j@gmail.com"},{"name":"willwhite","email":"will@mapbox.com"}],"publish_time":1452609066956,"_cnpm_publish_time":1452609066956,"_hasShrinkwrap":false},"0.0.0":{"name":"fasterror","version":"0.0.0","description":"Quickly create custom error objects.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":"","author":{"name":"Will White","email":"will@mapbox.com"},"license":"BSD","devDependencies":{"mocha":"~1.17.1"},"dependencies":{"underscore":"~1.5.2"},"_id":"fasterror@0.0.0","dist":{"shasum":"0a6d9193d714c05091b45e5c5608b0d179e030e0","size":1462,"noattachment":false,"key":"/fasterror/-/fasterror-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fasterror/download/fasterror-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"willwhite","email":"will@mapbox.com"},"maintainers":[{"name":"jrpruit1","email":"jake@jakepruitt.com"},{"name":"rclark","email":"ryan.clark.j@gmail.com"},{"name":"willwhite","email":"will@mapbox.com"}],"publish_time":1390792656072,"_cnpm_publish_time":1390792656072,"_hasShrinkwrap":false}},"readme":"fasterror\n=========\nQuickly create custom error objects.\n\n[![Build Status](https://travis-ci.org/willwhite/fasterror.png?branch=master)](https://travis-ci.org/willwhite/fasterror)\n\n```\nvar fasterror = require('fasterror');\nvar MyError = fasterror('MyError', {code: 'ENOENT'});\n```\n\n`fasterror()` is the factory for creating custom error objects. The first\nargument is the name of the desired custom error object. The second is an object\ncontaining keys that will decorate any errors created with the resulting object.\n\n```\nvar username = 'jsmith';\nvar err = new MyError('Failed to load user %s', username);\n```\n\nCreate new errors with the resulting class. The error created will perform string\ninterpolation on the arguments passed and set the resulting value as `err.message`.\nSee [node.js documentation](https://nodejs.org/docs/v0.10.40/api/util.html#util_util_format_format)\nfor interpolation details.\n","_attachments":{},"license":"BSD"}