Catalog npm
Back to packageRELEASE DETAILS

1.0.4

npm

404-pagelet

Default 404 Pagelet used if the router cannot dispatch to any route

404bigpipedefaultfoundnotpagelet
Published2 Apr 2015
Direct dependencies8
Transitive dependenciesNot calculated

README

Current package documentation

404 Pagelet

Version npmBuild StatusDependenciesCoverage Status

This Pagelet is responsible for displaying server errors. By default the 404 Pagelet is provided with BigPipe. However, if you need a custom 404 you can extend this Pagelet. For example to change the default view.

Installation

The 404 Pagelet is distributed through the node package manager (npm).

npm install --save 404-pagelet

Support

Got stuck? Or can't wrap your head around a concept or just want some feedback, we got a dedicated IRC channel for that on Freenode:

  • IRC Server: irc.freenode.net
  • IRC Room: #bigpipe

Still stuck? Create an issue. Every question you have is a bug in our documentation and that should be corrected. So please, don't hesitate to create issues, many of them.

Example

In this example the 404 Pagelet is extended with a custom view. BigPipe will automatically discover this extended version if it is provided to BigPipe alongside the other pagelets.

'use strict';

//
// Extend the 404 Pagelet with a custom view.
//
var Fourofour = require('404-pagelet').extend({
  view: '/path/to/my/custom-view.html'
});

//
// Initialise BigPipe server.
//
var pipe = require('bigpipe').createServer(2000, {
  pagelets: [ Fourofour, ... ]
});

Debugging

The library makes use the diagnostics module from Pagelet. To display the 404 Pagelet specific debug messages, supply the following before running the program or

DEBUG=pagelet:404 node ...

Testing

Tests are automatically run on Travis CI to ensure that everything is functioning as intended. For local development we automatically install a pre-commit hook that runs the npm test command every time you commit changes. This ensures that we don't push any broken code in to this project.

To run tests locally, make sure the development dependencies are installed.

npm test
npm run coverage

License

404-pagelet is released under MIT.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 8

Native requirements
8 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
pagelet
Environment
{
  "local_name": "pagelet",
  "alias": false,
  "peer_metadata": null
}
1.0.xruntime
diagnostics-pagelet
Environment
{
  "local_name": "diagnostics-pagelet",
  "alias": false,
  "peer_metadata": null
}
1.0.xruntime
assume
Environment
{
  "local_name": "assume",
  "alias": false,
  "peer_metadata": null
}
0.0.xdevelopment
istanbul
Environment
{
  "local_name": "istanbul",
  "alias": false,
  "peer_metadata": null
}
0.3.xdevelopment
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
2.1.xdevelopment
pre-commit
Environment
{
  "local_name": "pre-commit",
  "alias": false,
  "peer_metadata": null
}
0.0.xdevelopment
routable
Environment
{
  "local_name": "routable",
  "alias": false,
  "peer_metadata": null
}
0.0.xdevelopment
temper
Environment
{
  "local_name": "temper",
  "alias": false,
  "peer_metadata": null
}
0.2.xdevelopment

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a91932256e9722f316b6c810c430cc5a77b7bf56",
  "tarball": "https://registry.npmjs.org/404-pagelet/-/404-pagelet-1.0.4.tgz",
  "integrity": "sha512-mfZimmKXvvSPEnrMsbJIIzmoJWibUZL87Zy7bXPvmf9dzq6WbvJkhJHg2LI/VNtNrRe+LwkM6D2qyax4fP5eZg==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCID59DcB/1aA7jFn/ZaTgFJALWhL5ALzCt4lBn+dTFl6/AiEAuVrsKzLaAb1tqa9eHLggtiJy/S9K/c25nZolE+UF9rg="
    }
  ]
}

Repository

PENDING
bigpipe/404-pagelet

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:58 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:54256017d83ff147bd4e6f5743a807d79cefee52396f587604fcc9e5ba73164c

Other collected versions

1.0.53 Apr1.0.224 Feb1.0.112 Jan1.0.024 DecView all collected versions →