Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tinyhttp/etag

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/etag - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "@tinyhttp/etag",
"version": "1.1.0",
"version": "1.1.1",
"type": "module",

@@ -5,0 +5,0 @@ "description": "entity tag module",

@@ -18,6 +18,6 @@ # @tinyhttp/etag

```ts
import etag from '@tinyhttp/etag'
import { eTag } from '@tinyhttp/etag'
```
`etag(entity, [options])`
`eTag(entity, [options])`

@@ -27,3 +27,3 @@ Generate a strong ETag for the given entity. This should be the complete body of the entity. Strings, `Buffer`s, and `fs.Stats` are accepted. By default, a strong ETag is generated except for `fs.Stats`, which will generate a weak ETag (this can be overwritten by options.weak).

```ts
res.setHeader('ETag', etag(body))
res.setHeader('ETag', eTag(body))
```

@@ -33,3 +33,3 @@

`etag` accepts these properties in the options object.
`eTag` accepts these properties in the options object.

@@ -36,0 +36,0 @@ #### `weak`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc