# digi-classname

> digi-classname

Latest version **1.0.1** (published 2019-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install digi-classname
pnpm add digi-classname
yarn add digi-classname
bun add digi-classname
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-01-09 |
| First published | 2019-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lin09 |
| Maintainers | digi1874 |
| Keywords | js, javascript, digi-classname |

## Links

- npm: https://www.npmjs.com/package/digi-classname
- Repository: https://github.com/digi1874/digi-classname
- Homepage: https://github.com/digi1874/digi-classname#readme
- Issues: https://github.com/digi1874/digi-classname/issues
- npm.io page: https://npm.io/package/digi-classname

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-01-09
- 1.0.0 — 2019-01-09

## README

[![Build Status](https://travis-ci.org/digi1874/digi-classname.svg?branch=master)](https://travis-ci.org)
[![codecov](https://codecov.io/gh/digi1874/digi-classname/branch/master/graph/badge.svg)](https://codecov.io/gh/digi1874/digi-classname)

# digi-classname

## 使用
```
yarn add -D digi digi-classname
```
```
import digi from 'digi'
import className from 'digi-classname'

digi.plugins([ className ])

digi({ className: 'a' })
console.log(document.body.lastElementChild.outerHTML)
// => "<div class="a"></div>"

digi({ className: { a: true, b: false, c: true })
console.log(document.body.lastElementChild.outerHTML)
// => "<div class="a c"></div>"

digi({ className: ['a', ['b', true], ['c', false], { d: false, e: true }] })
console.log(document.body.lastElementChild.outerHTML)
// => "<div class="a b e"></div>"

```


#
- [digi](https://github.com/digi1874/digi)
#

---
_Source: https://npm.io/package/digi-classname · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
