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

@kaciras/utilities

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaciras/utilities

A set of common JS functions for node and browser.

  • 0.12.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Utilities

npm npm type definitions Test codecov

A set of common JS functions for Node and browser.

Goals:

  • Just work for most cases, not a general framework.
  • No dependencies.
  • High performance & less code.
  • Write with latest ECMAScript.
  • Tree-shakeable.
  • No duplicated with FP libraries (lodash, underscore, etc.)
  • Type-first, We don't check for parameters that don't match the type.

Install

This package is pure ESM, it cannot be require()'d from CommonJS.

pnpm i @kaciras/utilities

The package has 2 entry points. Most functions work for both, but there are still some differences:

  • @kaciras/utilities/browser can be imported from any environment, also have functions work with DOM.
  • @kaciras/utilities/node have no browser-specific functions, but add utilities for Node, it can only be used in NodeJS.
// Use in Node.
import { /* ... */ } from "@kaciras/utilities/node";

// Use in other environment.
import { /* ... */ } from "@kaciras/utilities/browser";

Develop

Build the project:

pnpm build

Run tests. Some tests are for generated bundles, you should build them first.

pnpm run test:unit
pnpm run test:browser
pnpm run test:types

Keywords

FAQs

Package last updated on 10 Mar 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