kubilay
v1.0.8
Published
A collection of utility tools to create HTML elements.
Downloads
37
Readme
kubilay
This npm package has several methods that helps user to create HTML elements in fewer lines. Also has a thousand separator method.
Usage
Install
npm install kubilay
createElement
const kubilay = require('kubilay');
const nav = kubilay.createElement('nav', 'd-none d-md-block');
createElementWithText
import { createElementWithText } from 'kubilay';
const p = createElementWithText('p', 'text-success d-md-block', 'Ankara is the capital of Turkey.');
createImage
import { createImage } from 'kubilay';
import Image from './image.png';"
const imageElement = createImage(Image, `A cat image`, 'rounded');
separate
import { separate } from 'kubilay';
separate('123456789.00') // => '123,456,789.00'
separate('123456789') // => '123,456,789'
separate('-123456789') // => '-123,456,789'
Run tests
npm run test
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Show your support
Give a ⭐️ if you like this project!
Author
👤 Kubilay Caglayan
- Website: kubilay
- Github: @kubilaycaglayan
- Twitter: @kbcaglayan
- Linkedin: linkedin