Socket
Book a DemoInstallSign in
Socket

@socketsecurity/lib

Package Overview
Dependencies
Maintainers
2
Versions
86
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
5.1.4
Version published
Weekly downloads
4.3K
20.33%
Maintainers
2
Weekly downloads
 
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 30 Dec 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