Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gimmeuri
gets you the datauri for a single file and copies it to your clipboard, or optionally saves it to a file. That's it.
Copy the datauri for a file to your clipboard:
gimmeuri path/to/file
Usage: gimmeuri [options] <file>
Options:
-m, --max [bytes] maximum file size to process (1048576)
-s, --save-path [path] path to save the daturi
-V, --version output the version number
-h, --help output usage information
Save Path
gimmeuri
copies the specified file's data uri to the clipboard by default. It will instead be written to --save-path
, if provided.
Max File Size
gimmeuri
will exit(1) if the specified file is larger than the maximum file size. The default is 1048576 (1 megabyte), but can be overridden with the --max
option.
Provide an interface in JavaScript so you can use gimmeuri
like this:
require('gimmeuri')(path, cb);
Do a better job with default mime-type parsing. Many files should be "text/plain" but get returned as "application/octet-stream". Markdown files, for instance.
Provide an option for forced mime-type coercion:
gimmeuri -f text/plain README.md
MIT
FAQs
Converts a file to a datauri and copies it to the clipboard.
The npm package gimmeuri receives a total of 0 weekly downloads. As such, gimmeuri popularity was classified as not popular.
We found that gimmeuri demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.