
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
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 1 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.
Research
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.