2.1.5 ā€¢ Published 4 years ago

@suhy/vanilla-js-util v2.1.5

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

This npm app helps you to increase vanillaJS app building speed.

Getting Started

Install npm

npm install --save @suhy/vanilla-js-util

Feature

  • createTag({tag: --, id: --, classes: -- }) : the value of classes is seperated by blank
createTag({tag: 'div', classes: 'emphasize bold'});
  • resizeTextarea() : it enables textarea following user's input
resizeTextarea()
  • focusSet(element) : from the element(window or dom element), focus on the first descendant input tag
const element = document.querySelector('.some')
focusSet(element);
  • reloadScreen : it replaces window.location.reload
reloadScreen()
  • capitalize : it changes the first letter of input text to capitalized letter
const todo = 'todo';
capitalize(todo); //=> Todo

Usage

import { createTag, resizeTextarea, focusSet, reloadScreen, capitalize } from '@suhy/vanilla-js-util';

Author

šŸ‘¤ Suhyeon Jang

šŸ¤ Contributing

  1. Fork it (https://github.com/shjang7/2020-04-17-personal-npm-package/fork)
  2. Create your feature branch (git checkout -b feature/choose-a-name)
  3. Commit your changes (git commit -am 'what this commit will fix/add')
  4. Push to the branch (git push origin feature/chosen-name)
  5. Create a new Pull Request

Deployment

āœØ Test Live Demo

Resources

2.1.5

4 years ago

2.1.4

4 years ago

2.1.2

4 years ago

2.1.3

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago