
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Colette is a CSS and JS starter kit for 20 Minutes web projects. It provides basic styles and mixins to build responsive layouts, based on the 20 Minutes digital identity guidelines.
npm install colette --save
dist/
directory for ready-to-use CSS files.src/
.You can use colette.css
as is (or minified files colette.min.css
).
But the best way to use Colette is by Stylus and JavaScript sources with a task-runner (ex: gulp, webpack).
To compile your stylus, use gulp
and gulp-stylus
/* gulpfile.js */
gulp.task('css', function () {
return gulp.src(cfg.cssDir + '*.styl')
.pipe(stylus({
include: [
PATH_TO_STYLUS_IMPORT,
AN_OTHER_PATH_TO_FIND_STYLUS_MODULES
],
'include css': true
}))
.pipe(gulp.dest('css/'))
})
PATH_TO_STYLUS_IMPORT
could be node_modules
for example if you use npm.
To compile your stylus, use stylus-loader
/* webpack.config.js */
{
test: /\.styl$/i,
use: [
'style-loader',
'css-loader',
'postcss-loader',
{
loader: 'stylus-loader',
options: {
paths: [
'node_modules',
],
'include css': true,
'resolve url': true,
stylus: {
preferPathResolver: 'webpack',
},
},
},
],
}
Colette is a collection of stylus features. You can define which styles you want to include into your final CSS file with stylus import.
By default, you include all colette.styl
and all features are in your CSS.
You can select features needed by copying colette.styl
content and choose your imports rules.
/* my_css_file.styl */
// Your own settings
// Import colette
@require 'colette/assets/styl/colette'
/* => will compile to my_css_file.css */
But can be usefull to:
You can use colette.min.js
as is.
But the best way to use it is with a task-runner by JavaScript sources (ex: gulp, webpack).
You should use babel to transpile colette code to Javascript for Browsers.
FAQs
A CSS and JS starter kit for 20 Minutes web projects
The npm package colette receives a total of 64 weekly downloads. As such, colette popularity was classified as not popular.
We found that colette demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.