# NPM Integration

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2FAB9K1UZUECsMMLko6LPi%2Fnpm-logo.png?alt=media&#x26;token=5658e8a8-0536-4941-a4b7-0a97b88fdcf7" alt=""><figcaption></figcaption></figure>

Resmo's integration with NPM streamlines resource management, provides auditing capabilities, optimizes package handling, and boosts team collaboration for improved security and efficiency.

### What does Resmo offer to NPM users?

* Collect and query user accounts, teams, and roles within your NPM organization, enhancing operational efficiency.
* Track user activities, package publishing, and downloads, providing crucial data for auditing and analysis.&#x20;
* Analyze package metadata, dependencies, and usage patterns, thereby optimizing package management and identifying potential vulnerabilities or outdated packages.&#x20;
* Receive real-time alerts of changes and security policy violations in your NPM organization.

### How does the integration work?

Resmo employs APIs to execute initial polling and gather pre-existing NPM resources. After this initial data collection, it receives updates and modifications in real-time, using webhooks and consistent polling.

#### Available resources

{% embed url="<https://resources.resmo.com/npm>" %}

### Integration Walkthrough

#### How to install

1. Select NPM from your Integrations page on Resmo.
2. Click the Add Integration button from the bottom right corner of the opening modal.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2F7pAaG9Vlt7nNh6E6ovmu%2Fadd-npm.png?alt=media&#x26;token=3d81ba40-9025-4ffc-ba8e-e011659ae452" alt=""><figcaption></figcaption></figure>

3. Head over to your NPM account on a new tab. Click on your Profile -> Access Tokens.
4. Generate a new token.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2Fr5ObI5mKnMtz9qFvv5Hz%2Fgenerate-new-token.png?alt=media&#x26;token=7af1066e-4183-431a-afe1-8d4ecef2b85f" alt=""><figcaption></figcaption></figure>

* Choose either Granular Access Token or Classic Token option.&#x20;
* Select "Read Only. "
* Select Packages as you like. Then, click Generate.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2FDZevfuhFd8c3mqeIIQpL%2Fpackages.png?alt=media&#x26;token=082de197-0c4e-4fe6-b45e-88d728365e9c" alt=""><figcaption></figcaption></figure>

* You can view our Organization names from your profile -> Organizations.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2FKqLr33qL6d3LCkttlXn9%2Fnew-access-token.png?alt=media&#x26;token=640d3c80-dbd8-40cd-8825-f1e3e08fb2ae" alt=""><figcaption></figcaption></figure>

5. Copy and paste the generated access token on the related field on your Resmo NPM integration screen.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2Fqoo56UQocUs4cOajDmby%2Fintegration-screen.png?alt=media&#x26;token=1789e275-9d01-449c-b04f-3634f8168726" alt=""><figcaption></figcaption></figure>

6. Hit the Create button.

#### How to uninstall

1. Select NPM from your Integrations page.
2. Navigate to the Connected Integrations tab and select the account you want to remove.
3. You can either disable the integration temporarily and enable it back later or delete it permanently.&#x20;
4. Click the related button (Disable/Delete)from the top right depending on your choice.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2FsyzIHSGj1C4TxqCuaTRo%2Fdelete-disable.png?alt=media&#x26;token=5a99371a-d425-4c7a-9a33-f07148c072f6" alt=""><figcaption></figcaption></figure>
