Socket
Book a DemoInstallSign in
Socket

@resturant-webtool/ts-utils

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@resturant-webtool/ts-utils

![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/belgattitude/nextjs-monorepo-example/ci-packages.yml?style=for-the-badge&label=CI)

latest
Source
npmnpm
Version
10.0.0
Version published
Maintainers
1
Created
Source

@resturant-webtool/ts-utils

GitHub Workflow Status

Note This package is part of belgattitude/nextjs-monorepo-example.

A package holding some basic typescript utilities: typeguards, assertions...

  • Packaged as ES module (type: module in package.json).
  • Can be build with tsup (no need if using tsconfig aliases).
  • Simple unit tests demo with either Vitest (yarn test-unit) or TS-Jest (yarn test-unit-jest).

Install

From any package or apps:

yarn add @resturant-webtool/ts-utils@"workspace:^"

Enable aliases

{
  //"extends": "../../tsconfig.base.json",
  "compilerOptions": {
    "baseUrl": "./src",
    "paths": {
      "@resturant-webtool/ts-utils": ["../../../packages/ts-utils/src/index"],
    },
  },
}

Consume

import { isPlainObject } from "@resturant-webtool/ts-utils";

isPlainObject(true) === false;

FAQs

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