📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@clamjs/utils

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clamjs/utils

Internal tool library utilized by clamjs

0.0.3
latest
npm
Version published
Weekly downloads
3
-62.5%
Maintainers
4
Weekly downloads
 
Created
Source

@clamjs/utils

Internal Tool Library utilized by clamjs

Usage

用户相关

import { getO2User } from '@clamjs/utils/o2';
  • getUser - 获取用户信息

环境相关

import { getNodeEnv, getGitEnv } from '@clamjs/utils/env';
  • getNodeEnv - node/pnpm/tnpm/等环境信息
  • getGitEnv - git相关信息

用户源码相关

import { tscJson, pkgJson, abcJson } from '@clamjs/utils/codebase';
  • tscJson - 用户源码tsconfig.json
  • pkgJson - 用户源码packages.json
  • abcJson - 用户源码abc.json

类型判断相关

import { isObject, isEmptyObject } from '@clamjs/utils/type';
  • isObject - 是否是对象
  • isEmptyObject - 是否是空对象

FAQs

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