In its latest release (Node.js V10), functions of the fs can return promises directly, eliminating the extra step and overhead of the old way.
確定! 回上一頁