
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
CLI tool to do basic file operations (copy, read, write, move...) in a cross-platform way
CLI tool to do basic file operations in a cross-platform way. Uses fs-extra under the hood.
Install globally:
npm i -g file-cli
Or install into your project's dev-dependencies to use in your scripts:
npm i -D file-cli
The CLI can be used as fcli, which is a little shorter than file-cli.
Run fcli --help to view a list of commands in your terminal.
fcli read <path>
Reads a file and prints it to stdout
fcli write <path> <data>
Writes data to a file
fcli ensure <path> [-f]
Ensures a file or directory exists.
-f, --file: path is a filefcli copy <from> <to> [-o]
Copies a file or the contents of a directory (unix equivalent: cp -r)
-o, --overwrite: overwrite target file if it already existsfcli move <from> <to> [-o]
Moves or renames a file (unix equivalent: mv)
-o, --overwrite: overwrite target file if it already existsfcli remove <path>
Removes a file or directory (unix equivalent: rm -rf)
FAQs
CLI tool to do basic file operations (copy, read, write, move...) in a cross-platform way
The npm package file-cli receives a total of 14 weekly downloads. As such, file-cli popularity was classified as not popular.
We found that file-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.