Package Exports
- @handy-common-utils/fs-utils
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@handy-common-utils/fs-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@handy-common-utils/fs-utils
File system operations related utilities based on fs-extra
How to use
First add it as a dependency:
npm install @handy-common-utils/fs-utilsThen you can use it in the code:
import { FsUtils } from '../fs-utils';
const [,, filePath, matchPattern, beforeString, afterString] = process.argv;
FsUtils.addSurrounding(filePath, new RegExp(matchPattern), beforeString, afterString);You can either import and use the class as shown above, or you can import individual functions directly.