{"repo":"pillarjs/send","free":true,"listed":false,"github":"https://github.com/pillarjs/send","clone":"git clone https://github.com/pillarjs/send.git","description":"Streaming static file server with Range and conditional-GET support","language":"JavaScript","stars":811,"topics":["javascript","nodejs","send","file"],"license":"MIT","category":"dev-tools","readme_excerpt":"send [![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] [![CI][github-actions-ci-image]][github-actions-ci-url] [![Test Coverage][coveralls-image]][coveralls-url] Send is a library for streaming files from the file system as a http response supporting partial responses (Ranges), conditional-GET negotiation (If-Match, If-Unmodified-Since, If-None-Match, If-Modified-Since), high test coverage, and granular events which may be leveraged to take appropriate actions in your application or framework. Looking to serve up entire folders mapped to URLs? Try serve-static. Installation This is a Node.js module available through the npm registry. Installation is done using the npm install command: API send(req, path, [options]) Create a new SendStream for the given path to send to a res . The req is the Node.js HTTP request and the path is a urlencoded path to send (urlencoded, not the actual file-system path). Options acceptRanges Enable or disable accepting ranged requests, defaults to true. Disabling this will not send Accept-Ranges and ignore the contents of the Range request header. cacheControl Enable or disable setting Cache-Control response header, defaults to true. Disabling this will ignore the immutable and maxAge options. dotfiles Set how \"dotfiles\" are treated when encountered. A dotfile is a file or directory that begins with a dot (\".\"). Note this check is done on the path itself without checking if the path actually exists on the","default_branch":null,"files":null,"tree":[],"storefront":"/r/pillarjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pillarjs/send/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}