refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
13
home/ags/node_modules/eslint-plugin-n/lib/util/unprefix-node-colon.js
generated
vendored
13
home/ags/node_modules/eslint-plugin-n/lib/util/unprefix-node-colon.js
generated
vendored
|
|
@ -1,13 +0,0 @@
|
|||
"use strict"
|
||||
|
||||
/**
|
||||
* Remove `node:` prefix from module name
|
||||
* @param {string} name The module name such as `node:assert` or `assert`.
|
||||
* @returns {string} The unprefixed module name like `assert`.
|
||||
*/
|
||||
module.exports = function unprefixNodeColon(name) {
|
||||
if (name.startsWith("node:")) {
|
||||
return name.slice(5)
|
||||
}
|
||||
return name
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue