libreccm-legacy/tools-ng/tinymce/plugins/ccm-cms-images/node_modules/popsicle-status
baka 50ec8b6c4e [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core.
git-svn-id: https://svn.libreccm.org/ccm/trunk@5740 8810af33-2d31-482b-a856-94f89814c4df
2018-11-21 10:20:00 +00:00
..
LICENSE [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
README.md [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
package.json [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
popsicle-status.d.ts [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
popsicle-status.js [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00

README.md

Popsicle Status

Greenkeeper badge

NPM version NPM downloads Build status Test coverage

Reject responses on HTTP failure status codes (404, 500, etc).

Installation

npm install popsicle-status --save

Usage

var request = require('popsicle')
var status = require('popsicle-status')

request('/users.json')
  .use(status())
  .catch(function (error) {
    console.log(error.type) //=> "EINVALIDSTATUS"
    console.log(error.message) //=> "Invalid HTTP status, 404, should be between 200 and 399"
    console.log(error.status) //=> 404
    console.log(error.popsicle) //=> Popsicle#Request
  })
  • status() Use default status codes (min: 200, max: 399)
  • status(number) Set the only valid HTTP status code
  • status(number, number) Set both the minimum and maximum HTTP status codes

TypeScript

Includes a type definition for TypeScript.

License

MIT