# @f/create-element

> Micro utility for creating DOM elements

Latest version **1.0.1** (published 2016-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/create-element
pnpm add @f/create-element
yarn add @f/create-element
bun add @f/create-element
```

## 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 | 2016-05-08 |
| First published | 2016-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/create-element
- Repository: https://github.com/micro-js/create-element
- Homepage: https://github.com/micro-js/create-element#readme
- Issues: https://github.com/micro-js/create-element/issues
- npm.io page: https://npm.io/package/@f/create-element

## Dependencies (2)

- [@f/is-svg](https://npm.io/package/@f/is-svg.md) ^1.0.0
- [@f/svg-namespace](https://npm.io/package/@f/svg-namespace.md) ^1.0.1

## Recent versions

- 1.0.1 (latest) — 2016-05-08
- 1.0.0 — 2016-01-07

## README

# create-element

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Micro utility for creating DOM elements (svg or regular).

## Installation

    $ npm install @f/create-element

## Usage

You can create regular elements (e.g. `div`, `span`), and you can create SVG elements (e.g. `circle`, `tspan`). The recognized svg elements are listed [here](https://github.com/micro-js/svg-elements).

```js
var createElement = require('@f/create-element')

var div = createElement('div')
var circle = createElement('circle')
```

## API

### createElement(tag)

- `tag` - The name of the element you want to create

**Returns:** A DOM node of type `tag` created in the appropriate namespace.

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/create-element.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/create-element
[git-image]: https://img.shields.io/github/tag/micro-js/create-element.svg
[git-url]: https://github.com/micro-js/create-element
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/create-element.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/create-element

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