Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bencoveney/utils

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bencoveney/utils

TypeScript/JavaScript utility functions I often use

  • 3.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@bencoveney/utils

Github - Documentation

@bencoveney/utils on NPM CI build status

This project is a collection of utility functions I have used in a few different projects, pulled together to they are easily reusable in future projects.

This collection is not:

  • Cohesive. It is mish-mash of domains, the only linking thread is that I have used them in multiple places.
  • Comprehesive. For each domain, I have not listed every possible useful function, just the ones I want to reuse.
  • Fully tested. It is useful to be able to "dump" functions here to re-use, and come back and rigorously test later on.

This functions in this collection should (but do not yet always) adheres to these goals:

  • Functions should be small in scope.
  • Validity of parameters is the responsibility of the caller.
  • Avoid throwing errors.
  • Avoid dependencies.
  • Where possible, avoid creating unnecessary work for the garbage collector.

To do list

  • Standardise on storing data (colours, vectors, matrices) as arrays (rather than named objects).
  • More tests.
  • Autogenerate docs.
  • ND array including: Populate, foreach, copy.
  • Collections with GroupBy.

Keywords

FAQs

Package last updated on 02 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc