Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@slite/style
Advanced tools
Readme
This module exposes the postcss sources and build versions of the Slite clients shared style.
npm i -S @slite/style
If you don't want to mess with the postcss config and rely on pure CSS versions, you can simply import the files from the dist
folder:
import 'style/dist/index.css' // will import everything
// or ... target specific subsets:
import 'style/dist/variables.css'
It requires a bit more setup but it's possible to use the source version of the files. There are a few steps:
1 - install our postcss dependencies (if you don't use them already)
yarn add -D postcss-cssnext postcss-import
2 - make sure to use them by adding the following to your postcss.config.js:
module.exports = {
plugins: [
// add the two following plugins:
require('postcss-import')({
path: ['node-modules', 'node_modules/@slite/style/src'],
}),
require('precss')(),
require('postcss-cssnext')(),
],
}
3 - import in your js or post css files:
import '@slite/style' // to import everything
import '@slite/style/src/variables.css' // ... or subsets
in post css:
@import 'variables'; /* you'd better only import subsets from here */
You can either run the build
or dev
commands. build
will do a production build (only once + minified) while dev
will not minify and also stay in watch mode.
Please only use npm to publish, not yarn as it's too buggy.
npm version patch
npm publish
yarn upgrade-services
FAQs
Slite shared style
The npm package @slite/style receives a total of 2 weekly downloads. As such, @slite/style popularity was classified as not popular.
We found that @slite/style demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.