A chrome extension help to import pkg in devtools

Latest Version

Version
1.0.4
Update
November 24, 2024
Size
18.49KiB
Developer
Category
Users
14
Rating
1 ★
Manifest Version
3
Web Store Status
Languages Support
中文 (简体)
See more
Permissions
DeclarativeNetRequest
DeclarativeNetRequestFeedback
See more

Import Pkg In Devtools Extension

A chrome plugin that helps import npm packages into devtools for easier debugging. The package contents are attached to the window.lucky variable by default.You can also specify to mount it on a different global variable. You also can specify different package version.

Feature:
- Import npm package into devtool
- Specify package version. (default latest version)
- Specify attached gloabal variable. (default window.lucky)
- Multiple Instance. (by specify different global variable)

Example: In Chrome devtools
- Basic:
$npm('dayjs') // you can use window.lucky
- Specify package version
$npm('[email protected]') //
- Specify attached gloabal variable
$npm('[email protected]', 'MyDayJs') // you can use window.MyDayJs
- Multiple Instance
$npm('[email protected]', 'MyDayJs1') // you can use window.MyDayJs1
$npm('[email protected]', 'MyDayJs2') // you can use window.MyDayJs2

Notice: since this chrome extension old version may not work in some website's (eg. npmjs.com) devtools since these website has some csp policy. To workaround this, we add a feature to remove the csp policy by default. Currently, this feature is not able to switch on/off now, but i may release it as soon as possible


chrome 插件,帮助将 npm 包引入到 devtools 中,便于调试。包内容默认会挂到 window.lucky变量上。
比如:
$npm('dayjs') // 则可以使用 lucky().format('YYYY-MM-DD')
$npm('number-precision') // 则可以使用 lucky.times(1, 2)

也可以自己指定名字,比如:

$npm('dayjs', 'dayjs') // 则可以使用 dayjs().format('YYYY-MM-DD')
$npm('number-precision', 'NP') // 则可以使用 NP.times(1, 2)
Read more

Source Manifest.json

{
"update_url": "https://clients2.google.com/service/update2/crx",
"description":"A chrome extension help to import pkg in devtools",
"version":"1.0.4",
"manifest_version":3,
"name":"Import Pkg In Devtools",
"icons":{"128":"icon-128.png"},
"options_page":"options.html",
"background":{"service_worker":"background.bundle.js"},
"content_scripts":[{"world":"MAIN",
"matches":["http://*/*",
"https://*/*",
""],
"js":["contentScript.bundle.js"]}],
"declarative_net_request":{"rule_resources":[{"id":"remove_csp",
"enabled":true,
"path":"rules/remove_csp.json"}]},
"permissions":["declarativeNetRequest",
"declarativeNetRequestFeedback"],
"host_permissions":[""],
"web_accessible_resources":[{"resources":["icon-128.png",
"icon-32.png"],
"matches":[]}]}
Read more

How to download and manually install Import Pkg In Devtools extension for Chrome

Looking for a way to install Import Pkg In Devtools extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install Import Pkg In Devtools extensions manually, this article outlines two simple methods to effortlessly install Import Pkg In Devtools extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Import Pkg In Devtools extension and manually install through Drag &Drop

If you ever need to manually install a Import Pkg In Devtools extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the Import Pkg In Devtools Extension by clicking the "Download CRX" button on the website.

Look for the Import Pkg In Devtools extension you wish to install. Go to the website and download the Import Pkg In Devtools extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Import Pkg In Devtools extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the Import Pkg In Devtools extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download Import Pkg In Devtools extension for Chrome and install in Developer Mode

This is another method to install Import Pkg In Devtools extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the Import Pkg In Devtools extension file

Select and download the Import Pkg In Devtools extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the Import Pkg In Devtools extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Import Pkg In Devtools extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the Import Pkg In Devtools extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install Import Pkg In Devtools extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

Plugins Extension · Productivity 14 297 ★ 1.36MiB

icon

ProseMirror Developer Tools Extension · Developer Tools 14 5 ★ 164KiB

icon

Python Tutor - Wiingy Extension · Productivity 14 3 ★ 10.28KiB

icon

HTML Validator Extension · Developer Tools 14 37 ★ 2.5MiB

icon

Initab Extension · Developer Tools 14 95 ★ 12.93MiB

icon

React Developer Tools Extension · Developer Tools 14 1576 ★ 1.56MiB

icon

Chrome History Analysis to CSV Extension · Productivity 14 3 ★ 19.12KiB

icon

Easy Extension Manager Extension · Productivity 14 6 ★ 100KiB

icon

UX Enhancer for GitLab Extension · Developer Tools 14 7 ★ 115KiB

icon

gRPC Web Devtools Extension · Developer Tools 14 5 ★ 999KiB

icon

JPT - ChatGPT Code Interpreter Extension · Developer Tools 14 8 ★ 54.8MiB

icon

F12 Extension · Developer Tools 14 3 ★ 3.54MiB

icon

Save Rendered HTML Extension · Developer Tools 14 3 ★ 164KiB

icon

React code finder Extension · Developer Tools 14 5 ★ 2.95MiB

icon

Lexical Developer Tools Extension · Developer Tools 14 1 ★ 238KiB

icon

cocopy Extension · Productivity 14 7 ★ 2.14MiB

icon

GitHub Jira Integration Extension · Productivity 14 6 ★ 96.29KiB

icon

Date Countdown Timer Extension · Productivity 14 3 ★ 299KiB

icon

TypeScript Console Extension · Developer Tools 14 3 ★ 7.45MiB

icon

SuperExtender.io Extension · Productivity 14 0 ★ 132KiB

icon

Simple User Scripts Extension · Productivity 14 0 ★ 94.92KiB

icon

Chromium Open IDE Extension · Developer Tools 14 0 ★ 1.32MiB

icon

Bolt Extension · Developer Tools 14 3 ★ 1.17MiB

icon

Markdown Preview Plus Extension · Productivity 14 234 ★ 2.24MiB