Skip to content

Commit fc43c32

Browse files
committed
feat: add appendFile, readNDJSON, and resolveParentPaths to fs namespace
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 6395a59 commit fc43c32

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

lib/node_modules/@stdlib/fs/lib/index.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
3636
*/
3737
var fs = {};
3838

39+
/**
40+
* @name appendFile
41+
* @memberof fs
42+
* @readonly
43+
* @type {Function}
44+
* @see {@link module:@stdlib/fs/append-file}
45+
*/
46+
setReadOnly( fs, 'appendFile', require( '@stdlib/fs/append-file' ) );
47+
3948
/**
4049
* @name close
4150
* @memberof fs
@@ -99,6 +108,15 @@ setReadOnly( fs, 'readFileList', require( '@stdlib/fs/read-file-list' ) );
99108
*/
100109
setReadOnly( fs, 'readJSON', require( '@stdlib/fs/read-json' ) );
101110

111+
/**
112+
* @name readNDJSON
113+
* @memberof fs
114+
* @readonly
115+
* @type {Function}
116+
* @see {@link module:@stdlib/fs/read-ndjson}
117+
*/
118+
setReadOnly( fs, 'readNDJSON', require( '@stdlib/fs/read-ndjson' ) );
119+
102120
/**
103121
* @name readWASM
104122
* @memberof fs
@@ -135,6 +153,15 @@ setReadOnly( fs, 'resolveParentPath', require( '@stdlib/fs/resolve-parent-path'
135153
*/
136154
setReadOnly( fs, 'resolveParentPathBy', require( '@stdlib/fs/resolve-parent-path-by' ) );
137155

156+
/**
157+
* @name resolveParentPaths
158+
* @memberof fs
159+
* @readonly
160+
* @type {Function}
161+
* @see {@link module:@stdlib/fs/resolve-parent-paths}
162+
*/
163+
setReadOnly( fs, 'resolveParentPaths', require( '@stdlib/fs/resolve-parent-paths' ) );
164+
138165
/**
139166
* @name unlink
140167
* @memberof fs

0 commit comments

Comments
 (0)