Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99374151
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
Thu, Jan 23, 23:40
Size
501 B
Mime Type
text/x-c++
Expires
Sat, Jan 25, 23:40 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23785395
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