Skip to content

Calvin-LL/custom-ident

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'