demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/methods-1.1.2/index.js

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

      
    
Rootfs path

      
    
Size
1040 (1.0 KB)
MD5
17d4a4ba378c1fd10dcfd061439f7ea0
SHA1
82eb55245f510e6cbc580f5ced1dc9d64d664d2a
SHA256
670576bfe96eb9e4fecd1e8c19f491a68b9bfd7da0e7564cd0a3c2ebd3839180
SHA512

      
    
SHA1_git
667a50bde7d852359b1ebd9fa8ea8b8582bc64ac
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
index.js | 1.0 KB |

/*! * methods * Copyright(c) 2013-2014 TJ Holowaychuk * Copyright(c) 2015-2016 Douglas Christopher Wilson * MIT Licensed */ 'use strict'; /** * Module dependencies. * @private */ var http = require('http'); /** * Module exports. * @public */ module.exports = getCurrentNodeMethods() || getBasicNodeMethods(); /** * Get the current Node.js methods. * @private */ function getCurrentNodeMethods() { return http.METHODS && http.METHODS.map(function lowerCaseMethod(method) { return method.toLowerCase(); }); } /** * Get the "basic" Node.js methods, a snapshot from Node.js 0.10. * @private */ function getBasicNodeMethods() { return [ 'get', 'post', 'put', 'head', 'delete', 'options', 'trace', 'copy', 'lock', 'mkcol', 'move', 'purge', 'propfind', 'proppatch', 'unlock', 'report', 'mkactivity', 'checkout', 'merge', 'm-search', 'notify', 'subscribe', 'unsubscribe', 'patch', 'search', 'connect' ]; }
Detected license expression
mit
Detected license expression (SPDX)
MIT
Percentage of license text
2.08
Copyrights
- end_line: 3
  copyright: Copyright (c) 2013-2014 TJ Holowaychuk
  start_line: 3
- end_line: 4
  copyright: Copyright (c) 2015-2016 Douglas Christopher Wilson
  start_line: 4
Holders
- holder: TJ Holowaychuk
  end_line: 3
  start_line: 3
- holder: Douglas Christopher Wilson
  end_line: 4
  start_line: 4
Authors

      
    
License detections License expression License expression SPDX
mit-4e7803e6-e54b-c9ca-bcd2-bee9755c0dd7 mit MIT
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/methods@1.1.2 mit JavaScript