Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91961579
section.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
Sat, Nov 16, 04:13
Size
501 B
Mime Type
text/x-c++
Expires
Mon, Nov 18, 04:13 (2 d)
Engine
blob
Format
Raw Data
Handle
22353459
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
section.js
View Options
class Section {
constructor () {
this.lines = []
}
add (lines) {
if (lines) {
const arrayify = require('array-back')
arrayify(lines).forEach(line => this.lines.push(line))
} else {
this.lines.push('')
}
}
toString () {
const os = require('os')
return this.lines.join(os.EOL)
}
header (text) {
const chalk = require('chalk')
if (text) {
this.add(chalk.underline.bold(text))
this.add()
}
}
}
module.exports = Section
Event Timeline
Log In to Comment