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.
@code-hike/classer
Advanced tools
Classer is a tool from Code Hike
A little package to make React component libraries interoperable with most styling solutions. (See this twitter thread explaining why this is useful)
You write your library code like this:
// foo-library code
import { useClasser } from "@code-hike/classer"
export function Foo({ classes }) {
const c = useClasser("foo", classes)
return (
<div className={c("container")}>
<h1 className={c("title")}>Hello</h1>
<p className={c("description")}>World</p>
<img
className={c("img")}
src="https://placekitten.com/200/200"
/>
</div>
)
}
And the library consumers use it like this in their apps:
import { Foo } from "foo-library"
const classes = {
"foo-title": "my-app-blue",
"foo-img": "rounded-corners some-border",
}
function MyApp() {
return <Foo classes={classes} />
}
MyApp
renders this HTML:
<div class="foo-container">
<h1 class="foo-title my-app-blue">Hello</h1>
<p class="foo-description">World</p>
<img
class="foo-img rounded-corners some-border"
src="https://placekitten.com/200/200"
/>
</div>
Examples:
You can also do this (to avoid passing classes
to nested components):
// foo-library code
import {
useClasser,
ClasserProvider,
} from "@code-hike/classer"
export function Foo({ classes }) {
return (
<ClasserProvider classes={classes}>
<FirstChild />
<SecondChild />
</ClasserProvider>
)
}
function FirstChild() {
const c = useClasser("foo-first")
return <h1 className={c("title")}>Hi</h1>
}
function SecondChild() {
const c = useClasser("foo-second")
return <h1 className={c("title")}>Ho</h1>
}
import { Foo } from "./foo-library"
import styles from "./app.module.css"
const classes = {
"foo-title": styles.myTitle,
"foo-img": styles.myImage,
}
function MyApp() {
return <Foo classes={classes} />
}
MIT
v0.3.0 (Thu Mar 03 2022)
@code-hike/highlighter
, @code-hike/mdx
, @code-hike/mini-editor
, @code-hike/playground
, @code-hike/smooth-code
@code-hike/mdx
, @code-hike/mini-editor
, @code-hike/playground
, @code-hike/smooth-code
, storybook
, @code-hike/utils
@code-hike/highlighter
, @code-hike/mdx
, @code-hike/playground
@code-hike/mdx
, @code-hike/mini-browser
, @code-hike/playground
, @code-hike/smooth-code
, storybook
@code-hike/classer
, @code-hike/highlighter
, @code-hike/mdx
, @code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/playground
, @code-hike/script
, @code-hike/scroller
, @code-hike/smooth-code
, storybook
, @code-hike/utils
@code-hike/mini-editor
, @code-hike/mini-frame
, storybook
storybook
@code-hike/mdx
@code-hike/smooth-code
@code-hike/mdx
, @code-hike/mini-editor
, @code-hike/playground
, @code-hike/smooth-code
, @code-hike/utils
@code-hike/highlighter
, @code-hike/playground
@code-hike/smooth-code
, @code-hike/utils
@code-hike/mdx
, @code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/playground
, @code-hike/smooth-code
, @code-hike/utils
@code-hike/mdx
, @code-hike/playground
@code-hike/mini-editor
, @code-hike/playground
, storybook
@code-hike/highlighter
, @code-hike/playground
, @code-hike/smooth-code
, storybook
, @code-hike/utils
@code-hike/mdx
, @code-hike/mini-editor
, @code-hike/playground
@code-hike/classer
, @code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/scroller
, @code-hike/sim-user
, @code-hike/smooth-code
, storybook
@code-hike/mini-editor
@code-hike/mini-editor
, storybook
@code-hike/mini-browser
@code-hike/script
@code-hike/classer
, @code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/scroller
, @code-hike/sim-user
@code-hike/classer
, @code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/script
, @code-hike/scroller
, @code-hike/sim-user
@code-hike/classer
, @code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/scroller
, @code-hike/sim-user
, storybook
@code-hike/classer
@code-hike/classer
, @code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/utils
@code-hike/scroller
, storybook
@code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/scroller
, @code-hike/sim-user
, storybook
, @code-hike/utils
@code-hike/mini-browser
, storybook
@code-hike/mini-editor
, @code-hike/mini-frame
@code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/script
, storybook
@code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/scroller
, @code-hike/sim-user
, @code-hike/utils
@code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, storybook
, @code-hike/utils
@code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/scroller
, @code-hike/sim-user
@code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/scroller
@code-hike/mini-frame
, storybook
@code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/script
, @code-hike/scroller
, @code-hike/sim-user
@code-hike/scroller
main
storybook
@code-hike/mini-editor
, @code-hike/smooth-code
@code-hike/mini-editor
, storybook
@code-hike/classer
, @code-hike/mini-browser
, @code-hike/mini-editor
, @code-hike/mini-frame
, @code-hike/mini-terminal
, @code-hike/script
, @code-hike/scroller
, @code-hike/sim-user
@code-hike/mdx
, @code-hike/script
, @code-hike/smooth-code
, @code-hike/utils
FAQs
> Classer is a tool from [Code Hike](https://codehike.org)
The npm package @code-hike/classer receives a total of 20,868 weekly downloads. As such, @code-hike/classer popularity was classified as popular.
We found that @code-hike/classer 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.
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.