browserify / browserify/commonjs-assert

Ambiguous Package Name

Open
#62 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
298
Forks
63
PR merge metrics
No merged PRs in 30d

Description

We stumbled upon the issue of ambiguous imports when using this library.
`require(assert)` can refer to the library or Node's assert API.

It would be awesome to have the library available under a second name (e.g., `assert.js`) in use cases where you don't want to have this ambiguity. Other libraries with the same issue went down a similar road, e.g. [punycode](https://www.npmjs.com/package/punycode.js).

Original thread: https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2326

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the package metadata, published entry points, and how the current require('assert') name is exposed. Determine how a second name such as assert.js could be published without disrupting the existing name; done means the alternate package name is available and the ambiguity is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.