
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
RazorScriptManager
Advanced tools
See https://github.com/davecowart/RazorScriptManager.Demo for an example project
In any view (Layout, Page, Partial, or EditorTemplate), use
@Script.AddJavaScript("~/Scripts/script.js")
or
@Script.AddCss("~/Content/style.css")
to add a js or css file to the output. In your template, use
@Script.OutputJavaScript()
or
@Script.OutputCss()
to output all the scripts and styles to your page.
Two AppSettings configuration keys are used.
UseCDNScripts will tell the script manager to use CDN-hosted scripts if provided. To provide a CDN script, pass it as the second parameter in AddScript:
@Script.AddJavaScript(localPath: "~/Scripts/jquery-1.6.js", cdnPath: "https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js", siteWide: true)
CompressScripts will tell the script manager to compress the combined output of all local scripts. If UseCDNScripts is set to true, this will only compress local scripts, not CDN-hosted scripts. If CompressScripts is set to false, the full path of each individual file is included as a comment in the script output just before that particular file's content.
FAQs
Simple Razor ScriptManager, including combining, caching and minification
We found that razorscriptmanager 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.