1.0.8 • Published 5 years ago

kubilay v1.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago