1. is-scoped
Check if a string is a scoped npm package name
is-scoped
Package: is-scoped
Created by: sindresorhus
Last modified: Sun, 19 Jun 2022 02:50:02 GMT
Version: 3.0.0
License: MIT
Downloads: 3,132,718
Repository: https://github.com/sindresorhus/is-scoped

Install

npm install is-scoped
yarn add is-scoped

is-scoped

Check if a string is a scoped npm package name

Install

$ npm install is-scoped

Usage

 import isScoped from 'is-scoped';

isScoped('@sindresorhus/df');
//=> true

isScoped('cat-names');
//=> false
  • scoped-regex - Regular expression for matching scoped npm package names

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code