@jtmdias/js-utilities

A collection of javascript utilities for web projects

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@jtmdias/js-utilities
1.6.32 months agoa year agoMinified + gzip package size for @jtmdias/js-utilities in KB

Readme

@jtmdias/js-utilities

A collection of javascript utilities for my projects


!Build Statusbuild-badgebuild !Code Coveragecoverage-badgecoverage !versionversion-badgepackage !downloadsdownloads-badgenpmtrends !MIT Licenselicense-badgelicense !PRs Welcomeprs-badgeprs

The problem

I do a bunch of open source and want to make it easier to share utilities between multiple projects.

This solution

This is a collection of javascript functions, utilities and react hooks that are available on npm.

Table of Contents


- πŸ› Bugs - πŸ’‘ Feature Requests

Installation

This module is distributed via npmnpm which is bundled with nodenode and should be installed as one of your project's dependencies:
npm install --save-dev @jtmdias/js-utilities

Usage

This is a collection of functions, utilities and react hooks. You'll find all available code in src.
The bundle is available as:
  • ES Modules
  • UMD (Universal Module Definition)

To import a piece of code into your javascript project just do:
import { callIfExists, throwError, getLSItem, useConstant } from "@jtmdias/js-utilities";

Functions

WIP

React Hooks

WIP

Utils

WIP

Tests

All tests have been written using cypress. To run tests locally:
# using npm
npm run test:open

# using npm (headless)
npm run test

# using yarn
yarn test:open

# using yarn (headless)
yarn test

Other Solutions

If you are aware of any please make a pull requestprs and add it here! Again, this is a very specific-to-me solution.
  • Lightdash - A small JavaScript utility library to complement lodash.
  • You might not need lodash - It’s a great library, well crafted, battle tested and with a very skilled and active community contributing. The goal of this project is NOT to provide drop in replacements, but to show how to achieve similar functionalities in plain Javascript, to understand how things work behind the hood.

Issues

Looking to contribute? Look for the Good First Issuegood-first-issue label.

πŸ› Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.
See Bugs
bugs

πŸ’‘ Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding a πŸ‘. This helps maintainers prioritize what to work on.
See Feature Requestsrequests

Contributors ✨

<td align="center">
  <a href="https://joaodias.me">
    <img src="https://avatars.githubusercontent.com/u/2223881?v=4?s=100" width="100px;" alt=""/>
    <br />
    <sub><b>JoΓ£o Dias</b></sub>
  </a>
  <br />
  <a href="https://github.com/joaotmdias/js-utilities/commits?author=joaotmdias" title="Code">πŸ’»</a>
  <a href="https://github.com/joaotmdias/js-utilities/commits?author=joaotmdias" title="Documentation">πŸ“–</a>
  <a href="https://github.com/joaotmdias/js-utilities/commits?author=joaotmdias" title="Tests">⚠️</a>
</td>



This project follows the all-contributorsall-contributors specification. Contributions of any kind welcome!

LICENSE

MIT