UNPKG

@antora/content-classifier

Version:

Organizes aggregated content into a virtual file catalog for use in an Antora documentation pipeline.

20 lines (14 loc) 296 B
'use strict' const Vinyl = require('vinyl') class File extends Vinyl { get path () { return this.history[this.history.length - 1] } set path (path_) { this.history.push(path_) } get relative () { return this.history[this.history.length - 1] } } module.exports = File