tslx
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i tslx

Weekly Downloads

23

Version

0.1.1

License

MIT

Unpacked Size

37.1 kB

Total Files

9

Last publish

Collaborators

  • chizukicn