Socket
Socket
Sign inDemoInstall

libnpmorg

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libnpmorg

Programmatic api for `npm org` commands


Version published
Weekly downloads
691K
increased by4.89%
Maintainers
5
Weekly downloads
 
Created

What is libnpmorg?

The libnpmorg package is a Node.js library that provides utilities for managing npm organizations. It allows you to perform various operations related to npm organizations, such as creating, deleting, and managing members and teams within an organization.

What are libnpmorg's main functionalities?

Create Organization

This feature allows you to create a new npm organization. You need to provide the organization name and an npm token for authentication.

const libnpmorg = require('libnpmorg');

async function createOrg() {
  await libnpmorg.create('my-new-org', { token: 'your-npm-token' });
}

createOrg();

Delete Organization

This feature allows you to delete an existing npm organization. You need to provide the organization name and an npm token for authentication.

const libnpmorg = require('libnpmorg');

async function deleteOrg() {
  await libnpmorg.delete('my-old-org', { token: 'your-npm-token' });
}

deleteOrg();

Add Member to Organization

This feature allows you to add a member to an npm organization. You need to provide the organization name, the username of the member, and an npm token for authentication.

const libnpmorg = require('libnpmorg');

async function addMember() {
  await libnpmorg.addMember('my-org', 'username', { token: 'your-npm-token' });
}

addMember();

Remove Member from Organization

This feature allows you to remove a member from an npm organization. You need to provide the organization name, the username of the member, and an npm token for authentication.

const libnpmorg = require('libnpmorg');

async function removeMember() {
  await libnpmorg.removeMember('my-org', 'username', { token: 'your-npm-token' });
}

removeMember();

List Organization Members

This feature allows you to list all members of an npm organization. You need to provide the organization name and an npm token for authentication.

const libnpmorg = require('libnpmorg');

async function listMembers() {
  const members = await libnpmorg.listMembers('my-org', { token: 'your-npm-token' });
  console.log(members);
}

listMembers();

Other packages similar to libnpmorg

Keywords

FAQs

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