Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@justeat/f-utils
Advanced tools
f-utils
:bear:Sass utility functions and mixins for the Fozzie framework
If you are using the fozzie gulp build tasks, then Eyeglass is automatically setup ready to use. If not, you can use it in one of the following ways:
Install the f-utils module using NPM or Yarn:
yarn add @justeat/f-utils
Then within your Sass files, you will need to import this module.
@import 'f-utils';
You can then use the f-utils
module and the mixins and functions that come along with that.
Allows developers to specify the amount of spacing they require via a shortcut function.
Accesses the spacing map definition in the fozzie variables file.
Defaults: key: 'base'
Usage:
margin: spacing(d);
Given a font-size and a line-height (in pixels) returns a unitless line-height value.
Defaults: fontSize: 'body-s' lineHeight: '20' scale: 'default'
Usage:
line-height: line-height(16px, 24px);
Remove the unit of a measurement.
Usage:
strip-units(400px) > 400
Convert a map of breakpoints to ems
Defaults: baseFontSize: $font-size-base
Usage:
$breakpoints: map-to-em((
narrow : 400px,
mid : 750px,
wide : 1000px,
huge : 1250px
), 16);
Docs to come…
Docs to come…
Docs to come…
Allows developers to specify the amount of zIndex they require via a shortcut function.
Accesses the spacing map definition in the fozzie variables file.
Defaults: key: 'lowest'
Usage:
z-index: zIndex(high);
Used in alert modifier classes to colorize the alert
Usage:
@include alert-variant(orange, black);
Used in bordered utility class to add padding, border and border radius to element
Defaults: borderRadius: $border-radius padding: spacing(e) borderColour: $color-border
Usage:
@include bordered();
//Override default values
@include bordered(10px, 30px, green);
Used in rating modifier to fill the star ratings
Defaults: maxStars: 6
Usage:
@include rating-fill();
//Override default values
@include rating-fill(5);
Forces overly long spans of text to truncate
Defaults: boundary: null
Usage:
@include truncate();
//Override default values
@include bordered(200px);
Convert value to REMs
Defaults: sizeValue: $font-size-base
Usage:
@include rem(font-size, 16px);
Convert value to EMs
Defaults: sizeValue: $font-size-base
Usage:
@include em(font-size, 16px);
font-size helper.
Allows direct use of font-size map keys rather than specific values and converts px
definitions to REM with respect to the base font-size.
Defaults: key: 'base' lineHeight: true scale: 'default' relativeToParent: false
Usage:
@include font-size(mid);
FAQs
Sass utility functions and mixins for the Fozzie framework
We found that @justeat/f-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 53 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.