nixos/home/ags/node_modules/eslint-plugin-n/lib/util/strip-import-path-params.js
2025-02-27 02:26:55 +01:00

10 lines
240 B
JavaScript

/**
* @author Toru Nagashima
* See LICENSE file in root directory for full license.
*/
"use strict"
module.exports = function stripImportPathParams(path) {
const i = path.indexOf("!")
return i === -1 ? path : path.slice(0, i)
}