Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120532433
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, Jul 5, 01:35
Size
501 B
Mime Type
text/x-c++
Expires
Mon, Jul 7, 01:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27203288
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