Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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 Windows executables.
const rcedit = require('rcedit')
On platforms other than Windows, you will need to have Wine 1.6 or later installed and in the system path.
async rcedit(exePath, options)
exePath
is the path to the Windows executable to be modified.
options
is an object that can contain following fields:
version-string
- An object containing properties to change the 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 (.ico
) to set as the exePath
's default icon.requested-execution-level
- Requested execution level to change to, must be
either asInvoker
, highestAvailable
, or requireAdministrator
. See
here for
more details.application-manifest
- String path to a local manifest file to use.
See here
for more details.Returns a Promise
with no value.
npm install
npm test
to run the testsFAQs
Node module to edit resources of exe
The npm package rcedit receives a total of 179,739 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.