Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77064869
Source.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 12, 03:37
Size
569 B
Mime Type
text/x-c++
Expires
Wed, Aug 14, 03:37 (2 d)
Engine
blob
Format
Raw Data
Handle
19809709
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Source.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
class Source {
source() {
throw new Error("Abstract");
}
buffer() {
const source = this.source();
if (Buffer.isBuffer(source)) return source;
return Buffer.from(source, "utf-8");
}
size() {
return this.buffer().length;
}
map(options) {
return null;
}
sourceAndMap(options) {
return {
source: this.source(),
map: this.map(options)
};
}
updateHash(hash) {
throw new Error("Abstract");
}
}
module.exports = Source;
Event Timeline
Log In to Comment