
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@scullyio/scully-plugin-remove-scripts
Advanced tools
Scully plugin to remove scripts
npm install -D @scullyio/scully-plugin-remove-scripts
export interface RemoveScriptsConfig {
/** function that receives the script element and returns false when the script needs to be removed */
predicate?: (elm: HTMLScriptElement) => boolean;
/** defaults to true, keeps the transferState so the data.json can be generated */
keepTransferstate?: boolean;
/** defaults to `['scullyKeep', 'sk']`. array with attributes, scripts that have one of those will be kept */
keepAttributes?: string[];
/** defaults to `[]`. Array with strings, if the fragment occurs in the SRC of the script. the script is kept*/
keepSrc?: string[];
}
You can use this plugin in scully by adding something like this to your scully.<projectname>.config.ts
import { removeScripts, RemoveScriptsConfig } from '@scullyio/scully-plugin-remove-scripts';
const defaultPostRenderers = [removeScripts, 'seoHrefOptimise'];
setPluginConfig<RemoveScriptsConfig>(removeScripts, {
keepTransferstate: false,
/** overwrite default by empty string! */
keepAttributes: []
});
export const config: ScullyConfig = {
...
defaultPostRenderers: = [removeScripts],
routes: {
...
}
}
The above config will use the plugin on all routes. If you want to use in on a single route, add it to the config of that particular route like this:
export const config: ScullyConfig = {
...
routes: {
someRoute: {
type: 'contentFolder', // Or any other type
postRenderers: = [removeScripts],
}
...
}
}
FAQs
Scully plugin to remove scripts
The npm package @scullyio/scully-plugin-remove-scripts receives a total of 6 weekly downloads. As such, @scullyio/scully-plugin-remove-scripts popularity was classified as not popular.
We found that @scullyio/scully-plugin-remove-scripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.