ETag

Introduced in 4.1.0

Stability: 2 - Stable

const ETag = require('kado/lib/ETag')

Produce an ETag compatible header variable for browser cache usages.

Example:

const ETag = require('kado/lib/ETag')
const fs = require('kado/lib/FileSystem')
const tag = ETag.getTag('some content')
const fileTag = ETag.getTag(fs.statSync('./someFile'))

Class: ETag

static ETag.getTag(input, options)

Available Settings: