0.0.4 • Published 1 year ago

helikon v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Introduction

This library contains a set of JavaScript functions that are commonly used in various projects. These functions are wrapped for convenient use, making it easy to implement them into your project.

Our library is designed to simplify the development process by providing a range of reusable and flexible functions. Whether you're building a website or a complex application, our library can help you streamline your development process and save you time.

All of the functions included in this library have been thoroughly tested and optimized for performance, ensuring that they are reliable and efficient. Additionally, we strive to maintain a clean and easy-to-use codebase that is well-documented and easy to understand.

Installation

  • Using npm:
npm install helikon
  • Using CDN
<script src="https://cdn.jsdelivr.net/npm/helikon"></script>

Usage

  • Once the package is installed, you can import the library using import (esm):
import { getVersion } from 'helikon'

console.log('helikon version ', getVersion())
  • Using CDN (ES5 UMD browser module):
<script>
  console.log('helikon', helikon.getVersion())
</script>

Example

  • Is it a number that you're entering? (Using React.js)
import React, { useState } from 'react'
import { utils } from 'helikon'

function App() {
  const [value, setValue] = useState<string>('')
  // Is the current value a number
  const valueNumberStatus = utils.isNumber(value) ? 'is a number' : 'not a number'
  return (
    <>
      <input
        value={value}
        onInput={
          (e: React.FormEvent<HTMLInputElement>) => setValue(e.currentTarget.value)
        }
      />
      {value && valueNumberStatus}
    </>
  )
}

export default App

documentation

helikon website

License

This package is licensed under the MIT license. See LICENSE for more information.

0.0.3

1 year ago

0.0.2

1 year ago

0.0.4

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago