Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
A tool for updating meta tags in an Angular application.
npm i ngmeta
First import the NgMeta
as a provider
into your app.
import { NgMeta } from 'ngmeta';
...
@NgModule({
providers: [
NgMeta
],
bootstrap: [
AppComponent
]
})
export class AppModule { }
To dynamically edit this data whenever a page is loaded. Import NgMeta
into your component, then inside of your constructor pass in the NgMeta
service as an argument.
import { NgMeta } from 'ngmeta';
...
export class AppComponent {
constructor(private ngmeta: NgMeta) {}
}
Then in the component we can call our NgMeta
service this.ngmeta.setHead()
. This takes an object of the new values for the tags you want. Below we change the title and description data on a page.
this.ngmeta.setAll({
title: "Google",
description:
"Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.",
});
Now our head data will display
<head>
<title>Google</title>
<meta
name="description"
content="Search the world's information, including
webpages, images, videos and more. Google has many special features to help
you find exactly what you're looking for."
/>
</head>
Full documentation for the NGMeta service is available here.
Changes happen, check out the changelog to see the latest changes.
FAQs
A tool for updating meta tags in an Angular application.
The npm package ngmeta receives a total of 23 weekly downloads. As such, ngmeta popularity was classified as not popular.
We found that ngmeta 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.