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

@corentinth/chisels

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corentinth/chisels

Collection of utilities for JavaScript and TypeScript, lightweight and tree-shakable.

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-91.36%
Maintainers
0
Weekly downloads
 
Created
Source

Chisels - JS/TS utilities and types

Opinionated collection of reusable JS/TS utilities and types.

  • Tree-shakable ES modules: Import only what you need
  • Fully tested: Rigorous unit tests with comprehensive coverage
  • TypeScript support: Written in TypeScript with full type definitions
  • Lightweight: Small bundle size
  • Modern: Written with modern JS/TS syntax
  • Named arguments: Functions with preferably named arguments

Installation

# Using npm
npm install @corentinth/chisels

# Using yarn
yarn add @corentinth/chisels

# Using pnpm
pnpm add @corentinth/chisels

Usage

// Using ES6 import
import { safely } from '@corentinth/chisels';

// Using CommonJS require
const { safely } = require('@corentinth/chisels');

const [result, error] = safely(mayThrowError);

console.log({ result, error });

API

  • Bytes

    • formatBytes
  • Safely

  • Types

  • Injection

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Credits and Acknowledgements

This project is crafted with ❤️ by Corentin Thomasset.

Keywords

FAQs

Package last updated on 08 Sep 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