Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91469619
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, Nov 11, 10:49
Size
569 B
Mime Type
text/x-c++
Expires
Wed, Nov 13, 10:49 (2 d)
Engine
blob
Format
Raw Data
Handle
22265538
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