Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alexvyber/classic

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alexvyber/classic

This module is available in three formats:

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
0
Weekly downloads
 
Created
Source

classic

This module is available in three formats:

  • ES Module: dist/index.mjs
  • CommonJS: dist/index.js
  • UMD: dist/index.min.js

Install

npm install @alexvyber/classic
pnpm add @alexvyber/classic
pnpm yarn @alexvyber/classic

Usage

import classic from "@alexvyber/classic";
// or
import { classic } from "@alexvyber/classic";

// returns 'border italic underline text-2xl bg-red-500'
classic(
  { className: ["border", { italic: true, className: "underline" }] },
  "text-2xl",
  ["bg-red-500"],
);

// 'border italic underline'
classic("border", true && "italic", "underline");

// 'border underline'
classic({ border: true, italic: false, underline: true });

// 'border --adhoc'
classic({ border: true }, { italic: false }, null, {
  "--adhoc": "some truthy value",
});

// 'border italic'
classic(["border", 0, false, "italic"]);

// 'border italic underline bg-red-500 text-lg'
classic(
  ["border"],
  ["", 0, false, "italic"],
  [["underline", [["bg-red-500"], "text-lg"]]],
);

// 'border italic bg-red-500 text-lg adhoc'
classic(
  "border",
  [1 && "italic", { underline: false, bat: null }, ["bg-red-500", ["text-lg"]]],
  "adhoc",
);

FAQs

Package last updated on 16 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc