Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@hdsydsvenskan/asset-versions
Advanced tools
CLI and helper methods for asset versioning. Includes support for Webpack chunking.
npm install --save-dev @hdsydsvenskan/asset-versions
Follow Semantic Versioning and use np and a version like patch | minor | major | prepatch | preminor | premajor | prerelease | 1.2.3
np patch
See a full example, including Webpack support, in example/ folder and/or run the start
npm script (run yarn start
/ npm start
).
assets.json
asset-versions
assets-versioned.json
fileconst AssetVersions = require('@hdsydsvenskan/asset-versions');
const assets = new AssetVersions({
assetDefinitions: __dirname + '/assets.json'
});
// Returns something like 'assets/rev/main-e508b3af03.css'
assets.getAssetPath('assets/main.css');
Or, in case of code splitted javascript (likely through the use of Webpack):
// Returns something like ['assets/rev/main-e508b3af03.js', 'assets/rev/vendor-abc123.js']
assets.getAssetPathWithDependencies('assets/main.js');
Create a assets.json
file:
{
"sourceDir": "assets",
"targetDir": "assets/rev/",
"files": [
"main.css",
"main-dev.css",
"main.js"
]
}
--output
/ -o
flag) and the module (through the versionsFileName
option) can be tweaked to use another versions file than the default asset-versions.json
@hdsydsvenskan/base-web-app
generate
method for use with webpack-manifest-plugin to generate manifest with dependenciesFAQs
CLI and helper methods for our asset versions
The npm package @hdsydsvenskan/asset-versions receives a total of 82 weekly downloads. As such, @hdsydsvenskan/asset-versions popularity was classified as not popular.
We found that @hdsydsvenskan/asset-versions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.