Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@framerjs/component-importer
Advanced tools
The `component-importer` is a command line tool that makes it easy to import typescript-based React design systems into Framer X.
The component-importer
is a command line tool that makes it easy to import typescript-based React design systems into Framer X.
To install run yarn global add @framerjs/component-importer
. This will install the global component-importer
binary.
Type component-importer --help
for detailed information on how to use the component-importer
.
Create a Framer X folder backed project:
In order to configure the component importer you will need to setup a configuration file, usually at the root of your project.
The component-importer init
command will help you setup decent defaults.
The general syntax is component importer init <packageName>
, example component-importer init @blueprintjs/core
will attempt to import the "@blueprintjs/core" package.
# cd into the project created in the 'project setup' step.
cd ~/my-project.framerfx
# Add grommet and styled-components, since its a peerDependency of grommet
yarn add grommet styled-components
component-importer init grommet
Now that all the configuration is done you can jsut run component-importer generate
.
It will use the importer.config.json
from the previous step to import your design system's components.
Create a Framer X folder backed project.
In order to configure the component importer you will need to setup a configuration file, usually at the root of your project.
The component-importer init
command will help you setup decent defaults.
# cd into the project created in the 'project setup' step.
cd ~/my-project.framerfx
# Run the init command
# The --importPath is just the name of the NPM package you want to import
# The --index is a path to the root of the types, usually index.d.ts or index.tsx.
component-importer init --importPath path/to/my-design-system --index path/to/my/design-system/index.tsx
Now that all the configuration is done you can just run component-importer generate
.
It will use the importer.config.json
from the previous step to import your design system's components.
FAQs
```ts import * as React from "react" import * as Fabric from "office-ui-fabric-react" import { addPropertyControls, ControlType } from "framer"
The npm package @framerjs/component-importer receives a total of 0 weekly downloads. As such, @framerjs/component-importer popularity was classified as not popular.
We found that @framerjs/component-importer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 55 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.