demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/express-4.18.2/lib/express.js

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/express-4.18.2/lib/express.js
Status
scanned
Type
file
Name
express.js
Extension
.js
Programming language
JavaScript
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
2409 (2.4 KB)
MD5
d467bc485eddf6d38278bc6b1dc16389
SHA1
e233882de62eb095b3cae0b2956e8776e6af3d6a
SHA256
2f25585c03c3050779c8f5f00597f8653f4fb8a97448ef8ef8cb21e65ba4d15d
SHA512

      
    
SHA1_git
d188a16db70387967e0f913c2ee7c0bf9f7ffb09
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
express.js | 2.4 KB |

/*! * express * Copyright(c) 2009-2013 TJ Holowaychuk * Copyright(c) 2013 Roman Shtylman * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict'; /** * Module dependencies. */ var bodyParser = require('body-parser') var EventEmitter = require('events').EventEmitter; var mixin = require('merge-descriptors'); var proto = require('./application'); var Route = require('./router/route'); var Router = require('./router'); var req = require('./request'); var res = require('./response'); /** * Expose `createApplication()`. */ exports = module.exports = createApplication; /** * Create an express application. * * @return {Function} * @api public */ function createApplication() { var app = function(req, res, next) { app.handle(req, res, next); }; mixin(app, EventEmitter.prototype, false); mixin(app, proto, false); // expose the prototype that will get set on requests app.request = Object.create(req, { app: { configurable: true, enumerable: true, writable: true, value: app } }) // expose the prototype that will get set on responses app.response = Object.create(res, { app: { configurable: true, enumerable: true, writable: true, value: app } }) app.init(); return app; } /** * Expose the prototypes. */ exports.application = proto; exports.request = req; exports.response = res; /** * Expose constructors. */ exports.Route = Route; exports.Router = Router; /** * Expose middleware */ exports.json = bodyParser.json exports.query = require('./middleware/query'); exports.raw = bodyParser.raw exports.static = require('serve-static'); exports.text = bodyParser.text exports.urlencoded = bodyParser.urlencoded /** * Replace removed middleware with an appropriate error message. */ var removedMiddlewares = [ 'bodyParser', 'compress', 'cookieSession', 'session', 'logger', 'cookieParser', 'favicon', 'responseTime', 'errorHandler', 'timeout', 'methodOverride', 'vhost', 'csrf', 'directory', 'limit', 'multipart', 'staticCache' ] removedMiddlewares.forEach(function (name) { Object.defineProperty(exports, name, { get: function () { throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.'); }, configurable: true }); });
Detected license expression
mit
Detected license expression (SPDX)
MIT
Percentage of license text
0.77
Copyrights
- end_line: 3
  copyright: Copyright (c) 2009-2013 TJ Holowaychuk
  start_line: 3
- end_line: 4
  copyright: Copyright (c) 2013 Roman Shtylman
  start_line: 4
- end_line: 5
  copyright: Copyright (c) 2014-2015 Douglas Christopher Wilson
  start_line: 5
Holders
- holder: TJ Holowaychuk
  end_line: 3
  start_line: 3
- holder: Roman Shtylman
  end_line: 4
  start_line: 4
- holder: Douglas Christopher Wilson
  end_line: 5
  start_line: 5
Authors

      
    
License detections License expression License expression SPDX
mit-4e7803e6-e54b-c9ca-bcd2-bee9755c0dd7 mit MIT
URL Start line End line
https://github.com/senchalabs/connect#middleware 112 112
Package URL License Primary language
pkg:npm/express@4.18.2 mit JavaScript
pkg:npm/acme-demo-app@1.0.0 JavaScript