Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
babel-plugin-caralho
Advanced tools
Babel plugin for writing curse words instead of important because reasons
Babel plugin for writing curse words instead of important because reasons
In
import React from 'react';
import styled from 'style-components';
const Title = styled.h1`
font-size: 1.5em;
text-align: center;
color: palevioletred;
`;
const Wrapper = styled.section`
padding: 4em;
background: papayawhip !fuck;
`;
render(
<Wrapper>
<Title>Hello World, this is my styled component!</Title>
</Wrapper>
);
Out
import React from 'react';
import styled from 'style-components';
const Title = styled.h1`
font-size: 1.5em;
text-align: center;
color: palevioletred;
`;
const Wrapper = styled.section`
padding: 4em;
background: papayawhip !important;
`;
render(
<Wrapper>
<Title>Hello World, this is my styled component!</Title>
</Wrapper>
);
$ npm install babel-plugin-caralho --save-dev
or
$ yarn add babel-plugin-caralho --dev
.babelrc
(Recommended).babelrc
{
"plugins": ["caralho"]
}
$ babel --plugins caralho script.js
require("babel-core").transform("code", {
plugins: ["caralho"]
});
And all of this will become important after babel does his thing.
Awesome ! You can create a PR here: https://github.com/SaraVieira/curse-words and these tests and the ones in https://github.com/SaraVieira/postcss-caralho will be generated automatically 🎉
Use as you please to confuse people and enjoy (MIT)
FAQs
Babel plugin for writing curse words instead of important because reasons
The npm package babel-plugin-caralho receives a total of 5 weekly downloads. As such, babel-plugin-caralho popularity was classified as not popular.
We found that babel-plugin-caralho 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
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.