Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
The rcedit npm package is used to edit the resources of Windows executables. It allows you to modify various properties of an executable file, such as its version information, icon, and more.
Change Version Information
This feature allows you to change the version information of a Windows executable. You can set properties like ProductName, FileDescription, and CompanyName.
const rcedit = require('rcedit');
rcedit('path/to/executable.exe', {
'version-string': {
'ProductName': 'MyApp',
'FileDescription': 'My Application Description',
'CompanyName': 'My Company'
}
}, function (error) {
if (error) {
console.error('Failed to edit executable:', error);
} else {
console.log('Executable edited successfully');
}
});
Change Icon
This feature allows you to change the icon of a Windows executable. You need to provide the path to the new icon file.
const rcedit = require('rcedit');
rcedit('path/to/executable.exe', {
'icon': 'path/to/icon.ico'
}, function (error) {
if (error) {
console.error('Failed to edit executable:', error);
} else {
console.log('Executable edited successfully');
}
});
Set Requested Execution Level
This feature allows you to set the requested execution level of a Windows executable. For example, you can set it to 'requireAdministrator' to request administrative privileges.
const rcedit = require('rcedit');
rcedit('path/to/executable.exe', {
'requested-execution-level': 'requireAdministrator'
}, function (error) {
if (error) {
console.error('Failed to edit executable:', error);
} else {
console.log('Executable edited successfully');
}
});
Node module to edit resources of exe.
npm install
grunt
to compile the CoffeeScript codercedit = require 'rcedit'
On platforms other then Windows you will need to have Wine installed and in the system path.
Change exePath
with options
, the callback
would be called with (error)
when the command is done.
The options
is an object that can contain following fields:
version-string
- An object containings properties to change of exePath
's
version string.file-version
- File's version to change to.product-version
- Product's version to change to.icon
- Path to the icon file to set as exePath
's default icon.FAQs
Node module to edit resources of exe
The npm package rcedit receives a total of 110,613 weekly downloads. As such, rcedit popularity was classified as popular.
We found that rcedit 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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.