Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120796938
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
Mon, Jul 7, 04:01
Size
501 B
Mime Type
text/x-c++
Expires
Wed, Jul 9, 04:01 (2 d)
Engine
blob
Format
Raw Data
Handle
27251018
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