🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@socketsecurity/lib

Package Overview
Dependencies
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socketsecurity/lib

Core utilities and infrastructure for Socket.dev security tools

latest
Source
npmnpm
Version
4.4.0
Version published
Maintainers
2
Created
Source

@socketsecurity/lib

Socket Badge CI Coverage

Follow @SocketSecurity Follow @socket.dev on Bluesky

Core library for Socket.dev tools.

Install

pnpm add @socketsecurity/lib

Usage

// Tree-shakeable exports
import { Spinner } from '@socketsecurity/lib/spinner'
import { readJsonFile } from '@socketsecurity/lib/fs'
import { NODE_MODULES } from '@socketsecurity/lib/constants/packages'

const spinner = Spinner({ text: 'Loading...' })
spinner.start()
const pkg = await readJsonFile('./package.json')
spinner.stop()

What's Inside

  • Visual Effects → logger, spinner, themes
  • File System → fs, globs, paths
  • Package Management → dlx, npm, pnpm, yarn
  • Process & Spawn → process spawning
  • Environment → env getters
  • Constants → node, npm, platform
  • Utilities → arrays, objects, promises, strings

Development

pnpm install    # Install
pnpm build      # Build
pnpm test       # Test
pnpm dev        # Watch mode

License

MIT

Keywords

Socket.dev

FAQs

Package last updated on 26 Nov 2025

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