UNPKG
ln-accounting
Version:
latest (10.0.1)
10.0.1
10.0.0
9.0.1
9.0.0
8.0.7
8.0.6
8.0.5
8.0.4
8.0.3
8.0.2
8.0.1
8.0.0
7.0.2
7.0.1
7.0.0
6.1.3
6.1.2
6.1.1
6.1.0
6.0.0
5.0.7
5.0.6
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.3.1
4.3.0
4.2.8
4.2.7
4.2.6
4.2.5
4.2.4
4.2.3
4.2.2
4.2.1
4.2.0
4.1.13
4.1.12
4.1.11
4.1.10
4.1.9
4.1.8
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.0
3.1.9
3.1.8
3.1.7
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.0.3
2.0.2
2.0.1
2.0.0
1.0.1
1.0.0
lnd accounting reports
github.com/alexbosworth/ln-accounting
alexbosworth/ln-accounting
ln-accounting
/
harmony
/
formatted_notes.js
19 lines
(15 loc)
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/** Notes as formatted for records { [notes]: <Notes String> }
@returns
{ notes: <Formatted Notes String> } */
module
.
exports
=
(
{notes}
) =>
{
if
(
typeof
notes ===
'string'
) {
return
{
notes
: notes.
replace
(
/[\r\n]/gim
,
' '
) ||
''
}; }
return
{
notes
: notes ||
''
}; };