punycode-detector
v1.0.4
Published
Getting punycode deprecations? find out where.
Downloads
558
Readme
punycode-detector
Have you seen this deprecation?
The version of the punycode module bundled in Node.js is being deprecated. In a future major version of Node.js this module will be removed. Users currently depending on the punycode module should switch to using the userland-provided Punycode.js module instead.
This tool tells you exactly which files need to update to use the punycode module userland module.
Usage
Step zero: have ag
/ the_silver_searcher
Step one: install your packages with npm/pnpm/yarn/bun/etc
Step two: run punycode-detector:
npx punycode-detector
or
pnpm dlx punycode-detector
Output:
There are 12 imports/requires of 'punycode' : The node builtin (which is deprecated) and not the 'punycode/' userland package.
Set(12) {
'node_modules/.pnpm/[email protected]/node_modules/markdown-it/lib/index.js',
'node_modules/.pnpm/[email protected]/node_modules/markdown-it/lib/index.js',
'node_modules/.pnpm/[email protected]/node_modules/markdown-it/lib/index.js',
'node_modules/.pnpm/[email protected]/node_modules/markdown-it/dist/markdown-it.js',
'node_modules/.pnpm/[email protected]/node_modules/normalize-url/index.js',
'node_modules/.pnpm/[email protected]/node_modules/psl/index.js',
'node_modules/.pnpm/[email protected]/node_modules/psl/dist/psl.js',
'node_modules/.pnpm/[email protected]/node_modules/whatwg-url/lib/url-state-machine.js',
'node_modules/.pnpm/[email protected]/node_modules/tr46/index.js',
'node_modules/.pnpm/[email protected]/node_modules/whatwg-url/dist/url-state-machine.js',
'node_modules/.pnpm/[email protected]/node_modules/tr46/index.js',
'node_modules/.pnpm/[email protected]/node_modules/tr46/index.js'
}