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.
tessellate-transform
Advanced tools
Library to transform content from JSX or JSON to JSON. The output format can be consumed by tessellate-bundler. For example:
{
"type": "div",
"props": {
"id": 1
},
"children": []
}
import transform from 'tessellate-transform'
const file = {
content: '...', // content string
extname: '...' // .jsx | .json
}
const options = { ... }
const object = transform(file, options)
tessellate-transform [OPTIONS] FILE
Options:
--type-prefix Prefix for React class names. [string]
--json-map JSON property mapping file. [file]
--root Type of surrounding root element. [string]
typePrefix
String to directly prepend before each type
property. Can be used for Node module names.
root
If provided, wraps the resulting JSON in another node with the given string as type.
jsonMap
Mapping rules for JSON to Tessellate JSON:
{
"typeKeys": [],
"childrenKeys": [],
"literalKeys": [],
"ignoreKeys": [],
"typeMap": {}
}
type
children
children
FAQs
Tessellate JSX/JSON transformer.
We found that tessellate-transform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.