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

1.0.3 • Public • Published

custom-ident

NPM Version NPM License NPM Downloads

Generate css <custom-ident>s

Install

npm install custom-ident

Usage

Basic

import { customIdent } from "custom-ident";

const ident = customIdent("foo", "bar", "baz@");
console.log(ident); // 'foo_bar_baz\\40'

Non-string values

import { customIdent } from "custom-ident";

const ident = customIdent([
  undefined,
  null,
  true,
  false,
  3,
  { test: "hi", oof: 0 },
]);
console.log(ident); // 'undefined_null_true_false_3_test'

Package Sidebar

Install

npm i custom-ident

Weekly Downloads

7

Version

1.0.3

License

MIT

Unpacked Size

15.3 kB

Total Files

11

Last publish

Collaborators

  • calvin-l