Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@dfinity/principal

Package Overview
Dependencies
Maintainers
11
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfinity/principal

JavaScript and TypeScript library to work with Internet Computer principals

Source
npmnpm
Version
3.2.6
Version published
Weekly downloads
124K
-19.08%
Maintainers
11
Weekly downloads
 
Created
Source

@icp-sdk/core/principal

JavaScript and TypeScript module to work with Internet Computer Principals.

Usage

import { Principal } from '@icp-sdk/core/principal';

const canisterId = Principal.fromText('uqqxf-5h777-77774-qaaaa-cai');
const anonymousPrincipal = Principal.anonymous();

API Reference

Additional API Documentation can be found here.

Keywords

internet computer

FAQs

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