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.
cosmic-icon
Advanced tools
The Icon set for all the Cosmic Design components lib
Cosmic-design supports many frameworks, e.g. vue、san. This project provide the icon set for them.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
npm install npm@latest -g
npm install pnpm@latest -g
For non cosmic-design project:
npm install cosmic-design-icon
cosmic-design use pnpm workspace feature to import cosmic-design-icon locally
It has the same using way with unplugin-icons, e.g. vite config:
import { defineConfig } from 'vite';
import Icons from 'unplugin-icons/vite';
import vue from '@vitejs/plugin-vue';
import { cosmicCollectionFactory } from './index';
import IconsResolver from 'unplugin-icons/resolver';
import Components from 'unplugin-vue-components/vite';
export default defineConfig({
plugins: [
vue(),
Icons({
compiler: 'vue3',
customCollections: {
...cosmicCollectionFactory(),
},
}),
Components({
dts: true,
resolvers: [
IconsResolver({
customCollections: ['cosmic'],
}),
],
}),
],
server: {
open: '/site/index.html',
},
});
Above config supporting Auto Import, more use case refer to unplugin-icons , default name conversion is:
{prefix}-{collection}-{icon}
and use the icon in vue:
<template>
<div>Cosmic Icon</div>
<i-cosmic-test />
</temp late>
In cosmic-design, just put svg file in the svg folder and run in cosmic icon folder:
pnpm run build
then commit your changes.
Other project config support is Doing.
For living examples, please refer to the site folder
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement"(Note: please use pnpm and git-cz). Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)pnpm run commit
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE
for more information.
FAQs
Unknown package
The npm package cosmic-icon receives a total of 12 weekly downloads. As such, cosmic-icon popularity was classified as not popular.
We found that cosmic-icon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
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.