New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
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-beta.4
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
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 06 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

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