1.0.6 • Published 2 years ago

generate-element v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Getting Started

Install

In order to setup and use this package, you will need to:

Install dependency

  npm install --save-dev generate-element

Import the module in your JavaScript file

  import generateElement from 'generate-element'

Usage

Run the function

  generateElement(type, class, textContent, { attributes })

Example

  const anchorElement = generateElement('a', 'example', 'Click me', { href: '#', title: 'This is an example' })

To skip any parameter, pass false as the argument

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Daniel Sanchez (@danxschz) - danxschz@gmail.com

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago