File: fileLoader.jsdoc

package info (click to toggle)
node-ejs 2.5.7-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 672 kB
  • sloc: javascript: 1,615; sh: 2; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
/**
 * A file read function, similar to fs.readFileSync, this function
 * can be read a file by path, return a string after processing
 *
 * @function
 * @name fileLoader
 * @param {String}   path the path of the file to be read
 * @return {String|Object} the contents of the file as a string or objects that implement the toString() method
 * @global
 */