Socket
Socket
Sign inDemoInstall

@brlt/utils

Package Overview
Dependencies
0
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @brlt/utils

Collection of JavaScript + TypeScript helpers


Version published
Maintainers
2
Install size
204 kB
Created

Readme

Source

@brlt/utils

Opinionated collection of common JavaScript / TypeScript utils, forked from @antfu/utils.

Highlights

  • Tree-shakable ES Modules
  • Fully typed with TypeScript for first-class IDE integration
  • Generic types like Nullable<T>, Arrayable<T>, ElementOf<T>, etc.

Installation

pnpm add -D @brlt/utils
yarn add -D @brlt/utils
npm i -D @brlt/utils

This package is designed to be added to your devDependencies and bundled into your distribution.

Importation

import * as utils from '@brlt/utils'

// export * from './array'
// export * from './base'
// export * from './guards'
// export * from './is'
// export * from './math'
// export * from './string'
// export * from './time'
// export * from './types'
// export * from './function'
// export * from './object'
// export * from './promise'
// export * from './vendor'
// export * from './p'
import * as arr from '@brlt/utils/array'
import * as obj from '@brlt/utils/object'
import * as str from '@brlt/utils/string'
import * as pro from '@brlt/utils/promise'
import { debounce, throttle } from '@brlt/utils/vendor'

Implementation

License

MIT © Nicholas Berlette and Anthony Fu

Keywords

FAQs

Last updated on 18 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc