Gathering detailed insights and metrics for fela-plugin-native-media-query
Gathering detailed insights and metrics for fela-plugin-native-media-query
Gathering detailed insights and metrics for fela-plugin-native-media-query
Gathering detailed insights and metrics for fela-plugin-native-media-query
npm install fela-plugin-native-media-query
Typescript
Module System
Node Version
NPM Version
JavaScript (71.17%)
MDX (15.06%)
HTML (13.58%)
Reason (0.16%)
CSS (0.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,283 Stars
2,249 Commits
183 Forks
20 Watchers
4 Branches
128 Contributors
Updated on Jul 16, 2025
Latest Version
12.2.1
Package Id
fela-plugin-native-media-query@12.2.1
Unpacked Size
15.75 kB
Size
4.43 kB
File Count
7
NPM Version
lerna/4.0.0/node@v16.17.1+arm64 (darwin)
Node Version
16.17.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
3
This plugin is basically a convenient plugin for more readable code and better maintenance.
It enables the use of named media query keys.
1yarn add fela-plugin-native-media-query
You may alternatively use npm i --save fela-plugin-native-media-query
.
Make sure to read the documentation on how to use plugins.
1import { createRenderer } from 'fela' 2import namedMediaQuery from 'fela-plugin-native-media-query' 3 4const renderer = createRenderer({ 5 plugins: [namedMediaQuery()], 6})
Parameter | Value | Default | Description |
---|---|---|---|
mediaQueryMap | (Object) | {} | An object with shorthand-mediaQuery pairs |
1import { createRenderer } from 'fela' 2import namedMediaQuery from 'fela-plugin-native-media-query' 3 4const namedMediaQueryPlugin = namedMediaQuery({ 5 desktop: '@media (min-width: 1024px)', 6 tablet: '@media (min-width: 768px)', 7}) 8 9const renderer = createRenderer({ 10 plugins: [namedMediaQueryPlugin], 11})
Using the above example code:
1{ 2 color: 'red', 3 desktop: { 4 color: 'blue' 5 } 6}
1{ 2 color: 'red', 3 '@media (min-width: 1024px)': { 4 color: 'blue' 5 } 6}
Fela is licensed under the MIT License.
Documentation is licensed under Creative Commons License.
Created with ♥ by @robinweser and all the great contributors.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 15/30 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
115 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More