New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tslx

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslx

some tsx utils

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
55
89.66%
Maintainers
1
Weekly downloads
 
Created
Source

tslx

npm version npm downloads bundle Codecov License JSDocs

This is my package description.

Usage

Install package:

# npm
npm install tslx

# yarn
yarn add tslx

# pnpm
pnpm install tslx

Import:

// ESM
import { cls } from "tslx";

// CommonJS
// const { cls } = require("tslx");

cls("foo", "bar", {
  "text-white": true,
  "bg-red": false,
});
// => "foo bar text-white"

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

Acknowledgement

tslx is made possible thanks to the inspirations from the following projects:

  • clsx A tiny (228B) utility for constructing className strings conditionally.

License

Made with 💛

Published under MIT License.

FAQs

Package last updated on 28 Jan 2026

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