UNPKG
funclib
Version:
latest (6.0.6)
6.0.6
6.0.5
6.0.4
6.0.3
6.0.2
6.0.1
6.0.0
5.1.4
5.1.3
5.1.2
5.1.1
4.1.4
4.1.3
4.1.1
4.0.8
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
3.5.9
3.5.8
3.5.7
3.5.6
3.5.5
3.5.4
3.5.3
3.5.2
3.5.1
3.4.9
3.4.8
3.4.7
3.4.6
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.3.11
3.3.10
3.3.9
3.3.8
3.3.7
3.3.6
3.3.5
3.3.4
3.3.2
3.3.1
3.2.9
3.2.8
3.2.7
3.2.6
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.1.12
3.1.11
3.1.10
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
2.2.10
2.2.9
2.2.8
2.2.7
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.1.16
2.1.15
2.1.14
2.1.13
2.1.12
2.1.11
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
1.0.5
1.0.4
1.0.3
1.0.2
1.0.0
A powerful javascript functions library!
github.com/CN-Tower/funclib.js
CN-Tower/funclib.js
funclib
/
lib
/
rd.js
14 lines
(11 loc)
•
233 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var
fs =
require
(
'fs'
);
/**
@function
*/
/** * [fn.rd] 读文件 *
@param
file : string */
function
rd
(
file
)
{
return
fs.
existsSync
(file) ? fs.
readFileSync
(file, {
encoding
:
'utf8'
}) :
''
; }
/**
@function
*/
module.exports = rd;