File: chat-websocket/node_modules/express/node_modules/fresh/package.json

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   chat-websocket/node_modules/express/node_modules/fresh/package.json   Download  
File: chat-websocket/node_modules/express/node_modules/fresh/package.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 2 years ago
Size: 1,037 bytes
 

Contents

Class file image Download
{ "name": "fresh", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "description": "HTTP response freshness testing", "version": "0.1.0", "main": "index.js", "dependencies": {}, "devDependencies": { "mocha": "*", "should": "*" }, "readme": "\n# node-fresh\n\n HTTP response freshness testing\n\n## fresh(req, res)\n\n Check freshness of `req` and `res` headers.\n\n When the cache is \"fresh\" __true__ is returned,\n otherwise __false__ is returned to indicate that\n the cache is now stale.\n\n## Example:\n\n```js\nvar req = { 'if-none-match': 'tobi' };\nvar res = { 'etag': 'luna' };\nfresh(req, res);\n// => false\n\nvar req = { 'if-none-match': 'tobi' };\nvar res = { 'etag': 'tobi' };\nfresh(req, res);\n// => true\n```\n\n## Installation\n\n```\n$ npm install fresh\n```", "readmeFilename": "Readme.md", "_id": "fresh@0.1.0", "dist": { "shasum": "d041dd57f08dd17d6a1b9c1fffe72aad131acfeb" }, "_from": "fresh@0.1.0" }