Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/lib/index.js +189 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/configuring-npm/folders.html +286 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/configuring-npm/npm-shrinkwrap-json.html +184 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/configuring-npm/package-json.html +981 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/configuring-npm/package-lock-json.html +335 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/config.html +1686 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/dependency-selectors.html +380 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/developers.html +330 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/logging.html +239 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/orgs.html +249 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/package-spec.html +250 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/registry.html +210 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/removal.html +200 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/scope.html +245 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/scripts.html +470 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/workspaces.html +293 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/LICENSE.md +23 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/dist/commonjs/index.js +59 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/dist/commonjs/package.json +3 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/dist/esm/index.js +54 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/dist/esm/package.json +3 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/package.json +79 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/LICENSE +23 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js +196 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/dist/commonjs/package.json +3 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/dist/esm/index.js +193 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/dist/esm/package.json +3 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/package.json +71 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/LICENSE.txt +14 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/build/index.cjs +317 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/build/index.d.cts +43 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/build/lib/index.js +302 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/index.mjs +14 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js +14 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex/license +9 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex/package.json +61 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.js +6 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.js +6 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.js +6 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.js +6 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.js +6 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/package.json +52 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.js +6 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width/index.js +54 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width/license +9 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width/package.json +59 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js +14 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi/license +9 -0
- data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json +59 -0
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/lib/index.js
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const localeCompare = require('@isaacs/string-locale-compare')('en')
|
| 2 |
+
const { join, basename, resolve } = require('path')
|
| 3 |
+
const transformHTML = require('./transform-html.js')
|
| 4 |
+
const { version } = require('../../lib/npm.js')
|
| 5 |
+
const { aliases } = require('../../lib/utils/cmd-list')
|
| 6 |
+
const { shorthands, definitions } = require('@npmcli/config/lib/definitions')
|
| 7 |
+
|
| 8 |
+
const DOC_EXT = '.md'
|
| 9 |
+
|
| 10 |
+
const TAGS = {
|
| 11 |
+
CONFIG: '<!-- AUTOGENERATED CONFIG DESCRIPTIONS -->',
|
| 12 |
+
USAGE: '<!-- AUTOGENERATED USAGE DESCRIPTIONS -->',
|
| 13 |
+
SHORTHANDS: '<!-- AUTOGENERATED CONFIG SHORTHANDS -->',
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
const assertPlaceholder = (src, path, placeholder) => {
|
| 17 |
+
if (!src.includes(placeholder)) {
|
| 18 |
+
throw new Error(
|
| 19 |
+
`Cannot replace ${placeholder} in ${path} due to missing placeholder`
|
| 20 |
+
)
|
| 21 |
+
}
|
| 22 |
+
return placeholder
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
const getCommandByDoc = (docFile, docExt) => {
|
| 26 |
+
// Grab the command name from the *.md filename
|
| 27 |
+
// NOTE: We cannot use the name property command file because in the case of
|
| 28 |
+
// `npx` the file being used is `lib/commands/exec.js`
|
| 29 |
+
const name = basename(docFile, docExt).replace('npm-', '')
|
| 30 |
+
|
| 31 |
+
if (name === 'npm') {
|
| 32 |
+
return {
|
| 33 |
+
name,
|
| 34 |
+
params: null,
|
| 35 |
+
usage: 'npm',
|
| 36 |
+
}
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
// special case for `npx`:
|
| 40 |
+
// `npx` is not technically a command in and of itself,
|
| 41 |
+
// so it just needs the usage of npm exec
|
| 42 |
+
const srcName = name === 'npx' ? 'exec' : name
|
| 43 |
+
const { params, usage = [''], workspaces } = require(`../../lib/commands/${srcName}`)
|
| 44 |
+
const usagePrefix = name === 'npx' ? 'npx' : `npm ${name}`
|
| 45 |
+
if (params) {
|
| 46 |
+
for (const param of params) {
|
| 47 |
+
if (definitions[param].exclusive) {
|
| 48 |
+
for (const e of definitions[param].exclusive) {
|
| 49 |
+
if (!params.includes(e)) {
|
| 50 |
+
params.splice(params.indexOf(param) + 1, 0, e)
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
return {
|
| 58 |
+
name,
|
| 59 |
+
workspaces,
|
| 60 |
+
params: name === 'npx' ? null : params,
|
| 61 |
+
usage: usage.map(u => `${usagePrefix} ${u}`.trim()).join('\n'),
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
const replaceVersion = (src) => src.replace(/@VERSION@/g, version)
|
| 66 |
+
|
| 67 |
+
const replaceUsage = (src, { path }) => {
|
| 68 |
+
const replacer = assertPlaceholder(src, path, TAGS.USAGE)
|
| 69 |
+
const { usage, name, workspaces } = getCommandByDoc(path, DOC_EXT)
|
| 70 |
+
|
| 71 |
+
const synopsis = ['```bash', usage]
|
| 72 |
+
|
| 73 |
+
const cmdAliases = Object.keys(aliases).reduce((p, c) => {
|
| 74 |
+
if (aliases[c] === name) {
|
| 75 |
+
p.push(c)
|
| 76 |
+
}
|
| 77 |
+
return p
|
| 78 |
+
}, [])
|
| 79 |
+
|
| 80 |
+
if (cmdAliases.length === 1) {
|
| 81 |
+
synopsis.push('', `alias: ${cmdAliases[0]}`)
|
| 82 |
+
} else if (cmdAliases.length > 1) {
|
| 83 |
+
synopsis.push('', `aliases: ${cmdAliases.join(', ')}`)
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
synopsis.push('```')
|
| 87 |
+
|
| 88 |
+
if (!workspaces) {
|
| 89 |
+
synopsis.push('', 'Note: This command is unaware of workspaces.')
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
return src.replace(replacer, synopsis.join('\n'))
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
const replaceParams = (src, { path }) => {
|
| 96 |
+
const { params } = getCommandByDoc(path, DOC_EXT)
|
| 97 |
+
const replacer = params && assertPlaceholder(src, path, TAGS.CONFIG)
|
| 98 |
+
|
| 99 |
+
if (!params) {
|
| 100 |
+
return src
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
const paramsConfig = params.map((n) => definitions[n].describe())
|
| 104 |
+
|
| 105 |
+
return src.replace(replacer, paramsConfig.join('\n\n'))
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
const replaceConfig = (src, { path }) => {
|
| 109 |
+
const replacer = assertPlaceholder(src, path, TAGS.CONFIG)
|
| 110 |
+
|
| 111 |
+
// sort not-deprecated ones to the top
|
| 112 |
+
/* istanbul ignore next - typically already sorted in the definitions file,
|
| 113 |
+
* but this is here so that our help doc will stay consistent if we decide
|
| 114 |
+
* to move them around. */
|
| 115 |
+
const sort = ([keya, { deprecated: depa }], [keyb, { deprecated: depb }]) => {
|
| 116 |
+
return depa && !depb ? 1
|
| 117 |
+
: !depa && depb ? -1
|
| 118 |
+
: localeCompare(keya, keyb)
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
const allConfig = Object.entries(definitions).sort(sort)
|
| 122 |
+
.map(([, def]) => def.describe())
|
| 123 |
+
.join('\n\n')
|
| 124 |
+
|
| 125 |
+
return src.replace(replacer, allConfig)
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
const replaceShorthands = (src, { path }) => {
|
| 129 |
+
const replacer = assertPlaceholder(src, path, TAGS.SHORTHANDS)
|
| 130 |
+
|
| 131 |
+
const sh = Object.entries(shorthands)
|
| 132 |
+
.sort(([shorta, expansiona], [shortb, expansionb]) =>
|
| 133 |
+
// sort by what they're short FOR
|
| 134 |
+
localeCompare(expansiona.join(' '), expansionb.join(' ')) || localeCompare(shorta, shortb)
|
| 135 |
+
)
|
| 136 |
+
.map(([short, expansion]) => {
|
| 137 |
+
// XXX: this is incorrect. we have multicharacter flags like `-iwr` that
|
| 138 |
+
// can only be set with a single dash
|
| 139 |
+
const dash = short.length === 1 ? '-' : '--'
|
| 140 |
+
return `* \`${dash}${short}\`: \`${expansion.join(' ')}\``
|
| 141 |
+
})
|
| 142 |
+
|
| 143 |
+
return src.replace(replacer, sh.join('\n'))
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
const replaceHelpLinks = (src) => {
|
| 147 |
+
// replaces markdown links with equivalent-ish npm help commands
|
| 148 |
+
return src.replace(
|
| 149 |
+
/\[`?([\w\s-]+)`?\]\(\/(?:commands|configuring-npm|using-npm)\/(?:[\w\s-]+)\)/g,
|
| 150 |
+
(_, p1) => {
|
| 151 |
+
const term = p1.replace(/npm\s/g, '').replace(/\s+/g, ' ').trim()
|
| 152 |
+
const help = `npm help ${term.includes(' ') ? `"${term}"` : term}`
|
| 153 |
+
return help
|
| 154 |
+
}
|
| 155 |
+
)
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
const transformMan = (src, { data, unified, remarkParse, remarkMan }) => unified()
|
| 159 |
+
.use(remarkParse)
|
| 160 |
+
.use(remarkMan, { version: `NPM@${version}` })
|
| 161 |
+
.processSync(`# ${data.title}(${data.section}) - ${data.description}\n\n${src}`)
|
| 162 |
+
.toString()
|
| 163 |
+
|
| 164 |
+
const manPath = (name, { data }) => join(`man${data.section}`, `${name}.${data.section}`)
|
| 165 |
+
|
| 166 |
+
const transformMd = (src, { frontmatter }) => ['---', frontmatter, '---', '', src].join('\n')
|
| 167 |
+
|
| 168 |
+
module.exports = {
|
| 169 |
+
DOC_EXT,
|
| 170 |
+
TAGS,
|
| 171 |
+
paths: {
|
| 172 |
+
content: resolve(__dirname, 'content'),
|
| 173 |
+
nav: resolve(__dirname, 'content', 'nav.yml'),
|
| 174 |
+
template: resolve(__dirname, 'template.html'),
|
| 175 |
+
man: resolve(__dirname, '..', '..', 'man'),
|
| 176 |
+
html: resolve(__dirname, '..', 'output'),
|
| 177 |
+
md: resolve(__dirname, '..', 'content'),
|
| 178 |
+
},
|
| 179 |
+
usage: replaceUsage,
|
| 180 |
+
params: replaceParams,
|
| 181 |
+
config: replaceConfig,
|
| 182 |
+
shorthands: replaceShorthands,
|
| 183 |
+
version: replaceVersion,
|
| 184 |
+
helpLinks: replaceHelpLinks,
|
| 185 |
+
man: transformMan,
|
| 186 |
+
manPath: manPath,
|
| 187 |
+
md: transformMd,
|
| 188 |
+
html: transformHTML,
|
| 189 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/configuring-npm/folders.html
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>folders</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----folders----1162">
|
| 145 |
+
<span>folders</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Folder Structures Used by npm</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><ul><li><a href="#tldr">tl;dr</a></li><li><a href="#prefix-configuration">prefix Configuration</a></li><li><a href="#node-modules">Node Modules</a></li><li><a href="#executables">Executables</a></li><li><a href="#man-pages">Man Pages</a></li><li><a href="#cache">Cache</a></li></ul><li><a href="#more-information">More Information</a></li><ul><li><a href="#global-installation">Global Installation</a></li><li><a href="#cycles-conflicts-and-folder-parsimony">Cycles, Conflicts, and Folder Parsimony</a></li><li><a href="#example">Example</a></li><li><a href="#publishing">Publishing</a></li></ul><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>npm puts various things on your computer.
|
| 158 |
+
That's its job.</p>
|
| 159 |
+
<p>This document will tell you what it puts where.</p>
|
| 160 |
+
<h4 id="tldr">tl;dr</h4>
|
| 161 |
+
<ul>
|
| 162 |
+
<li>Local install (default): puts stuff in <code>./node_modules</code> of the current package root.</li>
|
| 163 |
+
<li>Global install (with <code>-g</code>): puts stuff in /usr/local or wherever node is installed.</li>
|
| 164 |
+
<li>Install it <strong>locally</strong> if you're going to <code>require()</code> it.</li>
|
| 165 |
+
<li>Install it <strong>globally</strong> if you're going to run it on the command line.</li>
|
| 166 |
+
<li>If you need both, then install it in both places, or use <code>npm link</code>.</li>
|
| 167 |
+
</ul>
|
| 168 |
+
<h4 id="prefix-configuration">prefix Configuration</h4>
|
| 169 |
+
<p>The <a href="../using-npm/config#prefix.html"><code>prefix</code> config</a> defaults to the location where node is installed.
|
| 170 |
+
On most systems, this is <code>/usr/local</code>.
|
| 171 |
+
On Windows, it's <code>%AppData%\npm</code>.
|
| 172 |
+
On Unix systems, it's one level up, since node is typically installed at <code>{prefix}/bin/node</code> rather than <code>{prefix}/node.exe</code>.</p>
|
| 173 |
+
<p>When the <code>global</code> flag is set, npm installs things into this prefix.
|
| 174 |
+
When it is not set, it uses the root of the current package, or the current working directory if not in a package already.</p>
|
| 175 |
+
<h4 id="node-modules">Node Modules</h4>
|
| 176 |
+
<p>Packages are dropped into the <code>node_modules</code> folder under the <code>prefix</code>.
|
| 177 |
+
When installing locally, this means that you can <code>require("packagename")</code> to load its main module, or <code>require("packagename/lib/path/to/sub/module")</code> to load other modules.</p>
|
| 178 |
+
<p>Global installs on Unix systems go to <code>{prefix}/lib/node_modules</code>.
|
| 179 |
+
Global installs on Windows go to <code>{prefix}/node_modules</code> (that is, no <code>lib</code> folder.)</p>
|
| 180 |
+
<p>Scoped packages are installed the same way, except they are grouped together in a sub-folder of the relevant <code>node_modules</code> folder with the name of that scope prefix by the @ symbol, e.g. <code>npm install @myorg/package</code> would place the package in <code>{prefix}/node_modules/@myorg/package</code>.
|
| 181 |
+
See <a href="../using-npm/scope.html"><code>scope</code></a> for more details.</p>
|
| 182 |
+
<p>If you wish to <code>require()</code> a package, then install it locally.</p>
|
| 183 |
+
<h4 id="executables">Executables</h4>
|
| 184 |
+
<p>When in global mode, executables are linked into <code>{prefix}/bin</code> on Unix, or directly into <code>{prefix}</code> on Windows.
|
| 185 |
+
Ensure that path is in your terminal's <code>PATH</code> environment to run them.</p>
|
| 186 |
+
<p>When in local mode, executables are linked into <code>./node_modules/.bin</code> so that they can be made available to scripts run through npm.
|
| 187 |
+
(For example, so that a test runner will be in the path when you run <code>npm test</code>.)</p>
|
| 188 |
+
<h4 id="man-pages">Man Pages</h4>
|
| 189 |
+
<p>When in global mode, man pages are linked into <code>{prefix}/share/man</code>.</p>
|
| 190 |
+
<p>When in local mode, man pages are not installed.</p>
|
| 191 |
+
<p>Man pages are not installed on Windows systems.</p>
|
| 192 |
+
<h4 id="cache">Cache</h4>
|
| 193 |
+
<p>See <a href="../commands/npm-cache.html"><code>npm cache</code></a>.
|
| 194 |
+
Cache files are stored in <code>~/.npm</code> on Posix, or <code>%LocalAppData%/npm-cache</code> on Windows.</p>
|
| 195 |
+
<p>This is controlled by the <a href="../using-npm/config#cache.html"><code>cache</code> config</a> param.</p>
|
| 196 |
+
<h3 id="more-information">More Information</h3>
|
| 197 |
+
<p>When installing locally, npm first tries to find an appropriate <code>prefix</code> folder.
|
| 198 |
+
This is so that <code>npm install foo@1.2.3</code> will install to the sensible root of your package, even if you happen to have <code>cd</code>ed into some other folder.</p>
|
| 199 |
+
<p>Starting at the $PWD, npm will walk up the folder tree checking for a folder that contains either a <code>package.json</code> file, or a <code>node_modules</code> folder.
|
| 200 |
+
If such a thing is found, then that is treated as the effective "current directory" for the purpose of running npm commands.
|
| 201 |
+
(This behavior is inspired by and similar to git's .git-folder seeking logic when running git commands in a working dir.)</p>
|
| 202 |
+
<p>If no package root is found, then the current folder is used.</p>
|
| 203 |
+
<p>When you run <code>npm install foo@1.2.3</code>, then the package is loaded into the cache, and then unpacked into <code>./node_modules/foo</code>.
|
| 204 |
+
Then, any of foo's dependencies are similarly unpacked into <code>./node_modules/foo/node_modules/...</code>.</p>
|
| 205 |
+
<p>Any bin files are symlinked to <code>./node_modules/.bin/</code>, so that they may be found by npm scripts when necessary.</p>
|
| 206 |
+
<h4 id="global-installation">Global Installation</h4>
|
| 207 |
+
<p>If the <a href="../using-npm/config#global.html"><code>global</code> config</a> is set to true, then npm will install packages "globally".</p>
|
| 208 |
+
<p>For global installation, packages are installed roughly the same way, but using the folders described above.</p>
|
| 209 |
+
<h4 id="cycles-conflicts-and-folder-parsimony">Cycles, Conflicts, and Folder Parsimony</h4>
|
| 210 |
+
<p>Cycles are handled using the property of node's module system that it walks up the directories looking for <code>node_modules</code> folders.
|
| 211 |
+
So, at every stage, if a package is already installed in an ancestor <code>node_modules</code> folder, then it is not installed at the current location.</p>
|
| 212 |
+
<p>Consider the case above, where <code>foo -> bar -> baz</code>.
|
| 213 |
+
Imagine if, in addition to that, baz depended on bar, so you'd have:
|
| 214 |
+
<code>foo -> bar -> baz -> bar -> baz ...</code>.
|
| 215 |
+
However, since the folder structure is: <code>foo/node_modules/bar/node_modules/baz</code>, there's no need to put another copy of bar into <code>.../baz/node_modules</code>, since when baz calls <code>require("bar")</code>, it will get the copy that is installed in <code>foo/node_modules/bar</code>.</p>
|
| 216 |
+
<p>This shortcut is only used if the exact same version would be installed in multiple nested <code>node_modules</code> folders.
|
| 217 |
+
It is still possible to have <code>a/node_modules/b/node_modules/a</code> if the two "a" packages are different versions.
|
| 218 |
+
However, without repeating the exact same package multiple times, an infinite regress will always be prevented.</p>
|
| 219 |
+
<p>Another optimization can be made by installing dependencies at the highest level possible, below the localized "target" folder (hoisting).
|
| 220 |
+
Since version 3, npm hoists dependencies by default.</p>
|
| 221 |
+
<h4 id="example">Example</h4>
|
| 222 |
+
<p>Consider this dependency graph:</p>
|
| 223 |
+
<pre><code class="language-bash">foo
|
| 224 |
+
+-- blerg@1.2.5
|
| 225 |
+
+-- bar@1.2.3
|
| 226 |
+
| +-- blerg@1.x (latest=1.3.7)
|
| 227 |
+
| +-- baz@2.x
|
| 228 |
+
| | `-- quux@3.x
|
| 229 |
+
| | `-- bar@1.2.3 (cycle)
|
| 230 |
+
| `-- asdf@*
|
| 231 |
+
`-- baz@1.2.3
|
| 232 |
+
`-- quux@3.x
|
| 233 |
+
`-- bar
|
| 234 |
+
</code></pre>
|
| 235 |
+
<p>In this case, we might expect a folder structure like this (with all dependencies hoisted to the highest level possible):</p>
|
| 236 |
+
<pre><code class="language-bash">foo
|
| 237 |
+
+-- node_modules
|
| 238 |
+
+-- blerg (1.2.5) <---[A]
|
| 239 |
+
+-- bar (1.2.3) <---[B]
|
| 240 |
+
| +-- node_modules
|
| 241 |
+
| +-- baz (2.0.2) <---[C]
|
| 242 |
+
+-- asdf (2.3.4)
|
| 243 |
+
+-- baz (1.2.3) <---[D]
|
| 244 |
+
+-- quux (3.2.0) <---[E]
|
| 245 |
+
</code></pre>
|
| 246 |
+
<p>Since foo depends directly on <code>bar@1.2.3</code> and <code>baz@1.2.3</code>, those are installed in foo's <code>node_modules</code> folder.</p>
|
| 247 |
+
<p>Even though the latest copy of blerg is 1.3.7, foo has a specific dependency on version 1.2.5.
|
| 248 |
+
So, that gets installed at [A].
|
| 249 |
+
Since the parent installation of blerg satisfies bar's dependency on <code>blerg@1.x</code>, it does not install another copy under [B].</p>
|
| 250 |
+
<p>Bar [B] also has dependencies on baz and asdf.
|
| 251 |
+
Because it depends on <code>baz@2.x</code>, it cannot re-use the <code>baz@1.2.3</code> installed in the parent <code>node_modules</code> folder [D], and must install its own copy [C].
|
| 252 |
+
In order to minimize duplication, npm hoists dependencies to the top level by default, so asdf is installed under [A].</p>
|
| 253 |
+
<p>Underneath bar, the <code>baz -> quux -> bar</code> dependency creates a cycle.
|
| 254 |
+
However, because bar is already in quux's ancestry [B], it does not unpack another copy of bar into that folder.
|
| 255 |
+
Likewise, quux's [E] folder tree is empty, because its dependency on bar is satisfied by the parent folder copy installed at [B].</p>
|
| 256 |
+
<p>For a graphical breakdown of what is installed where, use <code>npm ls</code>.</p>
|
| 257 |
+
<h4 id="publishing">Publishing</h4>
|
| 258 |
+
<p>Upon publishing, npm will look in the <code>node_modules</code> folder.
|
| 259 |
+
If any of the items there are not in the <code>bundleDependencies</code> array, then they will not be included in the package tarball.</p>
|
| 260 |
+
<p>This allows a package maintainer to install all of their dependencies (and dev dependencies) locally, but only re-publish those items that cannot be found elsewhere.
|
| 261 |
+
See <a href="../configuring-npm/package-json.html"><code>package.json</code></a> for more information.</p>
|
| 262 |
+
<h3 id="see-also">See also</h3>
|
| 263 |
+
<ul>
|
| 264 |
+
<li><a href="../configuring-npm/package-json.html">package.json</a></li>
|
| 265 |
+
<li><a href="../commands/npm-install.html">npm install</a></li>
|
| 266 |
+
<li><a href="../commands/npm-pack.html">npm pack</a></li>
|
| 267 |
+
<li><a href="../commands/npm-cache.html">npm cache</a></li>
|
| 268 |
+
<li><a href="../commands/npm-config.html">npm config</a></li>
|
| 269 |
+
<li><a href="../configuring-npm/npmrc.html">npmrc</a></li>
|
| 270 |
+
<li><a href="../using-npm/config.html">config</a></li>
|
| 271 |
+
<li><a href="../commands/npm-publish.html">npm publish</a></li>
|
| 272 |
+
</ul></div>
|
| 273 |
+
|
| 274 |
+
<footer id="edit">
|
| 275 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/configuring-npm/folders.md">
|
| 276 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 277 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 278 |
+
</svg>
|
| 279 |
+
Edit this page on GitHub
|
| 280 |
+
</a>
|
| 281 |
+
</footer>
|
| 282 |
+
</section>
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/configuring-npm/npm-shrinkwrap-json.html
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----npm-shrinkwrapjson----1162">
|
| 145 |
+
<span>npm-shrinkwrap.json</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">A publishable lockfile</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p><code>npm-shrinkwrap.json</code> is a file created by <a href="../commands/npm-shrinkwrap.html"><code>npm shrinkwrap</code></a>.
|
| 158 |
+
It is identical to <code>package-lock.json</code>, with one major caveat: Unlike <code>package-lock.json</code>,
|
| 159 |
+
<code>npm-shrinkwrap.json</code> may be included when publishing a package.</p>
|
| 160 |
+
<p>The recommended use-case for <code>npm-shrinkwrap.json</code> is applications deployed through the publishing process on the registry: for example, daemons and command-line tools intended as global installs or <code>devDependencies</code>.
|
| 161 |
+
It's strongly discouraged for library authors to publish this file, since that would prevent end users from having control over transitive dependency updates.</p>
|
| 162 |
+
<p>If both <code>package-lock.json</code> and <code>npm-shrinkwrap.json</code> are present in a package root, <code>npm-shrinkwrap.json</code> will be preferred over the <code>package-lock.json</code> file.</p>
|
| 163 |
+
<p>For full details and description of the <code>npm-shrinkwrap.json</code> file format, refer to the manual page for <a href="../configuring-npm/package-lock-json.html">package-lock.json</a>.</p>
|
| 164 |
+
<h3 id="see-also">See also</h3>
|
| 165 |
+
<ul>
|
| 166 |
+
<li><a href="../commands/npm-shrinkwrap.html">npm shrinkwrap</a></li>
|
| 167 |
+
<li><a href="../configuring-npm/package-lock-json.html">package-lock.json</a></li>
|
| 168 |
+
<li><a href="../configuring-npm/package-json.html">package.json</a></li>
|
| 169 |
+
<li><a href="../commands/npm-install.html">npm install</a></li>
|
| 170 |
+
</ul></div>
|
| 171 |
+
|
| 172 |
+
<footer id="edit">
|
| 173 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/configuring-npm/npm-shrinkwrap-json.md">
|
| 174 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 175 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 176 |
+
</svg>
|
| 177 |
+
Edit this page on GitHub
|
| 178 |
+
</a>
|
| 179 |
+
</footer>
|
| 180 |
+
</section>
|
| 181 |
+
|
| 182 |
+
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
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----packagejson----1162">
|
| 145 |
+
<span>package.json</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Specifics of npm's package.json handling</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#name">name</a></li><li><a href="#version">version</a></li><li><a href="#description2">description</a></li><li><a href="#keywords">keywords</a></li><li><a href="#homepage">homepage</a></li><li><a href="#bugs">bugs</a></li><li><a href="#license">license</a></li><li><a href="#people-fields-author-contributors">people fields: author, contributors</a></li><li><a href="#funding">funding</a></li><li><a href="#files">files</a></li><li><a href="#exports">exports</a></li><li><a href="#main">main</a></li><li><a href="#browser">browser</a></li><li><a href="#bin">bin</a></li><li><a href="#man">man</a></li><li><a href="#directories">directories</a></li><ul><li><a href="#directoriesbin">directories.bin</a></li><li><a href="#directoriesman">directories.man</a></li></ul><li><a href="#repository">repository</a></li><li><a href="#scripts">scripts</a></li><li><a href="#config">config</a></li><li><a href="#dependencies">dependencies</a></li><ul><li><a href="#urls-as-dependencies">URLs as Dependencies</a></li><li><a href="#git-urls-as-dependencies">Git URLs as Dependencies</a></li><li><a href="#github-urls">GitHub URLs</a></li><li><a href="#local-paths">Local Paths</a></li></ul><li><a href="#devdependencies">devDependencies</a></li><li><a href="#peerdependencies">peerDependencies</a></li><li><a href="#peerdependenciesmeta">peerDependenciesMeta</a></li><li><a href="#bundledependencies">bundleDependencies</a></li><li><a href="#optionaldependencies">optionalDependencies</a></li><li><a href="#overrides">overrides</a></li><li><a href="#engines">engines</a></li><li><a href="#os">os</a></li><li><a href="#cpu">cpu</a></li><li><a href="#libc">libc</a></li><li><a href="#devengines">devEngines</a></li><li><a href="#private">private</a></li><li><a href="#publishconfig">publishConfig</a></li><li><a href="#workspaces">workspaces</a></li><li><a href="#default-values">DEFAULT VALUES</a></li><li><a href="#see-also">SEE ALSO</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>This document is all you need to know about what's required in your package.json file.
|
| 158 |
+
It must be actual JSON, not just a JavaScript object literal.</p>
|
| 159 |
+
<p>A lot of the behavior described in this document is affected by the config settings described in <a href="../using-npm/config.html"><code>config</code></a>.</p>
|
| 160 |
+
<h3 id="name">name</h3>
|
| 161 |
+
<p>If you plan to publish your package, the <em>most</em> important things in your package.json are the name and version fields as they will be required.
|
| 162 |
+
The name and version together form an identifier that is assumed to be completely unique.
|
| 163 |
+
Changes to the package should come along with changes to the version.
|
| 164 |
+
If you don't plan to publish your package, the name and version fields are optional.</p>
|
| 165 |
+
<p>The name is what your thing is called.</p>
|
| 166 |
+
<p>Some rules:</p>
|
| 167 |
+
<ul>
|
| 168 |
+
<li>The name must be less than or equal to 214 characters.
|
| 169 |
+
This includes the scope for scoped packages.</li>
|
| 170 |
+
<li>The names of scoped packages can begin with a dot or an underscore.
|
| 171 |
+
This is not permitted without a scope.</li>
|
| 172 |
+
<li>New packages must not have uppercase letters in the name.</li>
|
| 173 |
+
<li>The name ends up being part of a URL, an argument on the command line, and a folder name.
|
| 174 |
+
Therefore, the name can't contain any non-URL-safe characters.</li>
|
| 175 |
+
</ul>
|
| 176 |
+
<p>Some tips:</p>
|
| 177 |
+
<ul>
|
| 178 |
+
<li>Don't use the same name as a core Node module.</li>
|
| 179 |
+
<li>Don't put "js" or "node" in the name.
|
| 180 |
+
It's assumed that it's js, since you're writing a package.json file, and you can specify the engine using the "<a href="#engines">engines</a>" field.
|
| 181 |
+
(See below.)</li>
|
| 182 |
+
<li>The name will probably be passed as an argument to require(), so it should be something short, but also reasonably descriptive.</li>
|
| 183 |
+
<li>You may want to check the npm registry to see if there's something by that name already, before you get too attached to it.
|
| 184 |
+
<a href="https://www.npmjs.com/">https://www.npmjs.com/</a></li>
|
| 185 |
+
</ul>
|
| 186 |
+
<p>A name can be optionally prefixed by a scope, e.g. <code>@npm/example</code>.
|
| 187 |
+
See <a href="../using-npm/scope.html"><code>scope</code></a> for more detail.</p>
|
| 188 |
+
<h3 id="version">version</h3>
|
| 189 |
+
<p>If you plan to publish your package, the <em>most</em> important things in your package.json are the name and version fields as they will be required.
|
| 190 |
+
The name and version together form an identifier that is assumed to be completely unique.
|
| 191 |
+
Changes to the package should come along with changes to the version.
|
| 192 |
+
If you don't plan to publish your package, the name and version fields are optional.</p>
|
| 193 |
+
<p>Version must be parseable by <a href="https://github.com/npm/node-semver">node-semver</a>, which is bundled with npm as a dependency.
|
| 194 |
+
(<code>npm install semver</code> to use it yourself.)</p>
|
| 195 |
+
<h3 id="description2">description</h3>
|
| 196 |
+
<p>Put a description in it.
|
| 197 |
+
It's a string.
|
| 198 |
+
This helps people discover your package, as it's listed in <code>npm search</code>.</p>
|
| 199 |
+
<h3 id="keywords">keywords</h3>
|
| 200 |
+
<p>Put keywords in it.
|
| 201 |
+
It's an array of strings.
|
| 202 |
+
This helps people discover your package as it's listed in <code>npm search</code>.</p>
|
| 203 |
+
<h3 id="homepage">homepage</h3>
|
| 204 |
+
<p>The URL to the project homepage.</p>
|
| 205 |
+
<p>Example:</p>
|
| 206 |
+
<pre><code class="language-json">"homepage": "https://github.com/npm/example#readme"
|
| 207 |
+
</code></pre>
|
| 208 |
+
<h3 id="bugs">bugs</h3>
|
| 209 |
+
<p>The URL to your project's issue tracker and / or the email address to which issues should be reported.
|
| 210 |
+
These are helpful for people who encounter issues with your package.</p>
|
| 211 |
+
<p>It should look like this:</p>
|
| 212 |
+
<pre><code class="language-json">{
|
| 213 |
+
"bugs": {
|
| 214 |
+
"url": "https://github.com/npm/example/issues",
|
| 215 |
+
"email": "example@npmjs.com"
|
| 216 |
+
}
|
| 217 |
+
}
|
| 218 |
+
</code></pre>
|
| 219 |
+
<p>You can specify either one or both values.
|
| 220 |
+
If you want to provide only a URL, you can specify the value for "bugs" as a simple string instead of an object.</p>
|
| 221 |
+
<p>If a URL is provided, it will be used by the <code>npm bugs</code> command.</p>
|
| 222 |
+
<h3 id="license">license</h3>
|
| 223 |
+
<p>You should specify a license for your package so that people know how they are permitted to use it, and any restrictions you're placing on it.</p>
|
| 224 |
+
<p>If you're using a common license such as BSD-2-Clause or MIT, add a current SPDX license identifier for the license you're using, like this:</p>
|
| 225 |
+
<pre><code class="language-json">{
|
| 226 |
+
"license" : "BSD-3-Clause"
|
| 227 |
+
}
|
| 228 |
+
</code></pre>
|
| 229 |
+
<p>You can check <a href="https://spdx.org/licenses/">the full list of SPDX license IDs</a>.
|
| 230 |
+
Ideally, you should pick one that is <a href="https://opensource.org/licenses/">OSI</a> approved.</p>
|
| 231 |
+
<p>If your package is licensed under multiple common licenses, use an <a href="https://spdx.dev/specifications/">SPDX license expression syntax version 2.0 string</a>, like this:</p>
|
| 232 |
+
<pre><code class="language-json">{
|
| 233 |
+
"license" : "(ISC OR GPL-3.0)"
|
| 234 |
+
}
|
| 235 |
+
</code></pre>
|
| 236 |
+
<p>If you are using a license that hasn't been assigned an SPDX identifier, or if you are using a custom license, use a string value like this one:</p>
|
| 237 |
+
<pre><code class="language-json">{
|
| 238 |
+
"license" : "SEE LICENSE IN <filename>"
|
| 239 |
+
}
|
| 240 |
+
</code></pre>
|
| 241 |
+
<p>Then include a file named <code><filename></code> at the top level of the package.</p>
|
| 242 |
+
<p>Some old packages used license objects or a "licenses" property containing an array of license objects:</p>
|
| 243 |
+
<pre><code class="language-json">// Not valid metadata
|
| 244 |
+
{
|
| 245 |
+
"license" : {
|
| 246 |
+
"type" : "ISC",
|
| 247 |
+
"url" : "https://opensource.org/licenses/ISC"
|
| 248 |
+
}
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
// Not valid metadata
|
| 252 |
+
{
|
| 253 |
+
"licenses" : [
|
| 254 |
+
{
|
| 255 |
+
"type": "MIT",
|
| 256 |
+
"url": "https://www.opensource.org/licenses/mit-license.php"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "Apache-2.0",
|
| 260 |
+
"url": "https://opensource.org/licenses/apache2.0.php"
|
| 261 |
+
}
|
| 262 |
+
]
|
| 263 |
+
}
|
| 264 |
+
</code></pre>
|
| 265 |
+
<p>Those styles are now deprecated.
|
| 266 |
+
Instead, use SPDX expressions, like this:</p>
|
| 267 |
+
<pre><code class="language-json">{
|
| 268 |
+
"license": "ISC"
|
| 269 |
+
}
|
| 270 |
+
</code></pre>
|
| 271 |
+
<pre><code class="language-json">{
|
| 272 |
+
"license": "(MIT OR Apache-2.0)"
|
| 273 |
+
}
|
| 274 |
+
</code></pre>
|
| 275 |
+
<p>Finally, if you do not wish to grant others the right to use a private or unpublished package under any terms:</p>
|
| 276 |
+
<pre><code class="language-json">{
|
| 277 |
+
"license": "UNLICENSED"
|
| 278 |
+
}
|
| 279 |
+
</code></pre>
|
| 280 |
+
<p>Consider also setting <code>"private": true</code> to prevent accidental publication.</p>
|
| 281 |
+
<h3 id="people-fields-author-contributors">people fields: author, contributors</h3>
|
| 282 |
+
<p>The "author" is one person.
|
| 283 |
+
"contributors" is an array of people.
|
| 284 |
+
A "person" is an object with a "name" field and optionally "url" and "email", like this:</p>
|
| 285 |
+
<pre><code class="language-json">{
|
| 286 |
+
"name" : "Barney Rubble",
|
| 287 |
+
"email" : "barney@npmjs.com",
|
| 288 |
+
"url" : "http://barnyrubble.npmjs.com/"
|
| 289 |
+
}
|
| 290 |
+
</code></pre>
|
| 291 |
+
<p>Or you can shorten that all into a single string, and npm will parse it for you:</p>
|
| 292 |
+
<pre><code class="language-json">{
|
| 293 |
+
"author": "Barney Rubble <barney@npmjs.com> (http://barnyrubble.npmjs.com/)"
|
| 294 |
+
}
|
| 295 |
+
</code></pre>
|
| 296 |
+
<p>Both email and url are optional either way.</p>
|
| 297 |
+
<p>npm also sets a top-level "maintainers" field with your npm user info.</p>
|
| 298 |
+
<h3 id="funding">funding</h3>
|
| 299 |
+
<p>You can specify an object containing a URL that provides up-to-date information about ways to help fund development of your package, a string URL, or an array of objects and string URLs:</p>
|
| 300 |
+
<pre><code class="language-json">{
|
| 301 |
+
"funding": {
|
| 302 |
+
"type" : "individual",
|
| 303 |
+
"url" : "http://npmjs.com/donate"
|
| 304 |
+
}
|
| 305 |
+
}
|
| 306 |
+
</code></pre>
|
| 307 |
+
<pre><code class="language-json">{
|
| 308 |
+
"funding": {
|
| 309 |
+
"type" : "patreon",
|
| 310 |
+
"url" : "https://www.patreon.com/user"
|
| 311 |
+
}
|
| 312 |
+
}
|
| 313 |
+
</code></pre>
|
| 314 |
+
<pre><code class="language-json">{
|
| 315 |
+
"funding": "http://npmjs.com/donate"
|
| 316 |
+
}
|
| 317 |
+
</code></pre>
|
| 318 |
+
<pre><code class="language-json">{
|
| 319 |
+
"funding": [
|
| 320 |
+
{
|
| 321 |
+
"type" : "individual",
|
| 322 |
+
"url" : "http://npmjs.com/donate"
|
| 323 |
+
},
|
| 324 |
+
"http://npmjs.com/donate-also",
|
| 325 |
+
{
|
| 326 |
+
"type" : "patreon",
|
| 327 |
+
"url" : "https://www.patreon.com/user"
|
| 328 |
+
}
|
| 329 |
+
]
|
| 330 |
+
}
|
| 331 |
+
</code></pre>
|
| 332 |
+
<p>Users can use the <code>npm fund</code> subcommand to list the <code>funding</code> URLs of all dependencies of their project, direct and indirect.
|
| 333 |
+
A shortcut to visit each funding URL is also available when providing the project name such as:
|
| 334 |
+
<code>npm fund <projectname></code> (when there are multiple URLs, the first one will be visited)</p>
|
| 335 |
+
<h3 id="files">files</h3>
|
| 336 |
+
<p>The optional <code>files</code> field is an array of file patterns that describes the entries to be included when your package is installed as a dependency.
|
| 337 |
+
File patterns follow a similar syntax to <code>.gitignore</code>, but reversed: including a file, directory, or glob pattern (<code>*</code>, <code>**/*</code>, and such) will make it so that file is included in the tarball when it's packed.
|
| 338 |
+
Omitting the field will make it default to <code>["*"]</code>, which means it will include all files.</p>
|
| 339 |
+
<p>Some special files and directories are also included or excluded regardless of whether they exist in the <code>files</code> array (see below).</p>
|
| 340 |
+
<p>You can also provide a <code>.npmignore</code> file in the root of your package or in subdirectories, which will keep files from being included.
|
| 341 |
+
At the root of your package it will not override the "files" field, but in subdirectories it will.
|
| 342 |
+
The <code>.npmignore</code> file works just like a <code>.gitignore</code>.
|
| 343 |
+
If there is a <code>.gitignore</code> file, and <code>.npmignore</code> is missing, <code>.gitignore</code>'s contents will be used instead.</p>
|
| 344 |
+
<p>Certain files are always included, regardless of settings:</p>
|
| 345 |
+
<ul>
|
| 346 |
+
<li><code>package.json</code></li>
|
| 347 |
+
<li><code>README</code></li>
|
| 348 |
+
<li><code>LICENSE</code> / <code>LICENCE</code></li>
|
| 349 |
+
<li>The file in the "main" field</li>
|
| 350 |
+
<li>The file(s) in the "bin" field</li>
|
| 351 |
+
</ul>
|
| 352 |
+
<p><code>README</code> & <code>LICENSE</code> can have any case and extension.</p>
|
| 353 |
+
<p>Some files are always ignored by default:</p>
|
| 354 |
+
<ul>
|
| 355 |
+
<li><code>*.orig</code></li>
|
| 356 |
+
<li><code>.*.swp</code></li>
|
| 357 |
+
<li><code>.DS_Store</code></li>
|
| 358 |
+
<li><code>._*</code></li>
|
| 359 |
+
<li><code>.git</code></li>
|
| 360 |
+
<li><code>.hg</code></li>
|
| 361 |
+
<li><code>.lock-wscript</code></li>
|
| 362 |
+
<li><code>.npmrc</code></li>
|
| 363 |
+
<li><code>.svn</code></li>
|
| 364 |
+
<li><code>.wafpickle-N</code></li>
|
| 365 |
+
<li><code>CVS</code></li>
|
| 366 |
+
<li><code>config.gypi</code></li>
|
| 367 |
+
<li><code>node_modules</code></li>
|
| 368 |
+
<li><code>npm-debug.log</code></li>
|
| 369 |
+
<li><code>package-lock.json</code> (use <a href="../configuring-npm/npm-shrinkwrap-json.html"><code>npm-shrinkwrap.json</code></a> if you wish it to be published)</li>
|
| 370 |
+
<li><code>pnpm-lock.yaml</code></li>
|
| 371 |
+
<li><code>yarn.lock</code></li>
|
| 372 |
+
<li><code>bun.lockb</code></li>
|
| 373 |
+
</ul>
|
| 374 |
+
<p>Most of these ignored files can be included specifically if included in the <code>files</code> globs.
|
| 375 |
+
Exceptions to this are:</p>
|
| 376 |
+
<ul>
|
| 377 |
+
<li><code>.git</code></li>
|
| 378 |
+
<li><code>.npmrc</code></li>
|
| 379 |
+
<li><code>node_modules</code></li>
|
| 380 |
+
<li><code>package-lock.json</code></li>
|
| 381 |
+
<li><code>pnpm-lock.yaml</code></li>
|
| 382 |
+
<li><code>yarn.lock</code></li>
|
| 383 |
+
<li><code>bun.lockb</code></li>
|
| 384 |
+
</ul>
|
| 385 |
+
<p>These cannot be included.</p>
|
| 386 |
+
<h3 id="exports">exports</h3>
|
| 387 |
+
<p>The "exports" provides a modern alternative to "main" allowing multiple entry points to be defined, conditional entry resolution support between environments, and preventing any other entry points besides those defined in "exports". This encapsulation allows module authors to clearly define the public interface for their package.
|
| 388 |
+
For more details see the <a href="https://nodejs.org/api/packages.html#package-entry-points">node.js documentation on package entry points</a></p>
|
| 389 |
+
<h3 id="main">main</h3>
|
| 390 |
+
<p>The main field is a module ID that is the primary entry point to your program.
|
| 391 |
+
That is, if your package is named <code>foo</code>, and a user installs it, and then does <code>require("foo")</code>, then your main module's exports object will be returned.</p>
|
| 392 |
+
<p>This should be a module relative to the root of your package folder.</p>
|
| 393 |
+
<p>For most modules, it makes the most sense to have a main script and often not much else.</p>
|
| 394 |
+
<p>If <code>main</code> is not set, it defaults to <code>index.js</code> in the package's root folder.</p>
|
| 395 |
+
<h3 id="browser">browser</h3>
|
| 396 |
+
<p>If your module is meant to be used client-side the browser field should be used instead of the main field.
|
| 397 |
+
This is helpful to hint users that it might rely on primitives that aren't available in Node.js modules.
|
| 398 |
+
(e.g. <code>window</code>)</p>
|
| 399 |
+
<h3 id="bin">bin</h3>
|
| 400 |
+
<p>A lot of packages have one or more executable files that they'd like to install into the PATH. npm makes this pretty easy (in fact, it uses this feature to install the "npm" executable.)</p>
|
| 401 |
+
<p>To use this, supply a <code>bin</code> field in your package.json which is a map of command name to local file name.
|
| 402 |
+
When this package is installed globally, that file will be either linked inside the global bins directory or a cmd (Windows Command File) will be created which executes the specified file in the <code>bin</code> field, so it is available to run by <code>name</code> or <code>name.cmd</code> (on Windows PowerShell).
|
| 403 |
+
When this package is installed as a dependency in another package, the file will be linked where it will be available to that package either directly by <code>npm exec</code> or by name in other scripts when invoking them via <code>npm run</code>.</p>
|
| 404 |
+
<p>For example, myapp could have this:</p>
|
| 405 |
+
<pre><code class="language-json">{
|
| 406 |
+
"bin": {
|
| 407 |
+
"myapp": "bin/cli.js"
|
| 408 |
+
}
|
| 409 |
+
}
|
| 410 |
+
</code></pre>
|
| 411 |
+
<p>So, when you install myapp, in case of unix-like OS it'll create a symlink from the <code>cli.js</code> script to <code>/usr/local/bin/myapp</code> and in case of windows it will create a cmd file usually at <code>C:\Users\{Username}\AppData\Roaming\npm\myapp.cmd</code> which runs the <code>cli.js</code> script.</p>
|
| 412 |
+
<p>If you have a single executable, and its name should be the name of the package, then you can just supply it as a string.
|
| 413 |
+
For example:</p>
|
| 414 |
+
<pre><code class="language-json">{
|
| 415 |
+
"name": "my-program",
|
| 416 |
+
"version": "1.2.5",
|
| 417 |
+
"bin": "path/to/program"
|
| 418 |
+
}
|
| 419 |
+
</code></pre>
|
| 420 |
+
<p>would be the same as this:</p>
|
| 421 |
+
<pre><code class="language-json">{
|
| 422 |
+
"name": "my-program",
|
| 423 |
+
"version": "1.2.5",
|
| 424 |
+
"bin": {
|
| 425 |
+
"my-program": "path/to/program"
|
| 426 |
+
}
|
| 427 |
+
}
|
| 428 |
+
</code></pre>
|
| 429 |
+
<p>Please make sure that your file(s) referenced in <code>bin</code> starts with <code>#!/usr/bin/env node</code>; otherwise, the scripts are started without the node executable!</p>
|
| 430 |
+
<p>Note that you can also set the executable files using <a href="#directoriesbin">directories.bin</a>.</p>
|
| 431 |
+
<p>See <a href="../configuring-npm/folders#executables.html">folders</a> for more info on executables.</p>
|
| 432 |
+
<h3 id="man">man</h3>
|
| 433 |
+
<p>Specify either a single file or an array of filenames to put in place for the <code>man</code> program to find.</p>
|
| 434 |
+
<p>If only a single file is provided, then it's installed such that it is the result from <code>man <pkgname></code>, regardless of its actual filename.
|
| 435 |
+
For example:</p>
|
| 436 |
+
<pre><code class="language-json">{
|
| 437 |
+
"name": "foo",
|
| 438 |
+
"version": "1.2.3",
|
| 439 |
+
"description": "A packaged foo fooer for fooing foos",
|
| 440 |
+
"main": "foo.js",
|
| 441 |
+
"man": "./man/doc.1"
|
| 442 |
+
}
|
| 443 |
+
</code></pre>
|
| 444 |
+
<p>would link the <code>./man/doc.1</code> file in such that it is the target for <code>man foo</code></p>
|
| 445 |
+
<p>If the filename doesn't start with the package name, then it's prefixed.
|
| 446 |
+
So, this:</p>
|
| 447 |
+
<pre><code class="language-json">{
|
| 448 |
+
"name": "foo",
|
| 449 |
+
"version": "1.2.3",
|
| 450 |
+
"description": "A packaged foo fooer for fooing foos",
|
| 451 |
+
"main": "foo.js",
|
| 452 |
+
"man": [
|
| 453 |
+
"./man/foo.1",
|
| 454 |
+
"./man/bar.1"
|
| 455 |
+
]
|
| 456 |
+
}
|
| 457 |
+
</code></pre>
|
| 458 |
+
<p>will create files to do <code>man foo</code> and <code>man foo-bar</code>.</p>
|
| 459 |
+
<p>Man files must end with a number, and optionally a <code>.gz</code> suffix if they are compressed.
|
| 460 |
+
The number dictates which man section the file is installed into.</p>
|
| 461 |
+
<pre><code class="language-json">{
|
| 462 |
+
"name": "foo",
|
| 463 |
+
"version": "1.2.3",
|
| 464 |
+
"description": "A packaged foo fooer for fooing foos",
|
| 465 |
+
"main": "foo.js",
|
| 466 |
+
"man": [
|
| 467 |
+
"./man/foo.1",
|
| 468 |
+
"./man/foo.2"
|
| 469 |
+
]
|
| 470 |
+
}
|
| 471 |
+
</code></pre>
|
| 472 |
+
<p>will create entries for <code>man foo</code> and <code>man 2 foo</code></p>
|
| 473 |
+
<h3 id="directories">directories</h3>
|
| 474 |
+
<p>The CommonJS <a href="http://wiki.commonjs.org/wiki/Packages/1.0">Packages</a> spec details a few ways that you can indicate the structure of your package using a <code>directories</code> object.
|
| 475 |
+
If you look at <a href="https://registry.npmjs.org/npm/latest">npm's package.json</a>, you'll see that it has directories for doc, lib, and man.</p>
|
| 476 |
+
<p>In the future, this information may be used in other creative ways.</p>
|
| 477 |
+
<h4 id="directoriesbin">directories.bin</h4>
|
| 478 |
+
<p>If you specify a <code>bin</code> directory in <code>directories.bin</code>, all the files in that folder will be added.</p>
|
| 479 |
+
<p>Because of the way the <code>bin</code> directive works, specifying both a <code>bin</code> path and setting <code>directories.bin</code> is an error.
|
| 480 |
+
If you want to specify individual files, use <code>bin</code>, and for all the files in an existing <code>bin</code> directory, use <code>directories.bin</code>.</p>
|
| 481 |
+
<h4 id="directoriesman">directories.man</h4>
|
| 482 |
+
<p>A folder that is full of man pages.
|
| 483 |
+
Sugar to generate a "man" array by walking the folder.</p>
|
| 484 |
+
<h3 id="repository">repository</h3>
|
| 485 |
+
<p>Specify the place where your code lives.
|
| 486 |
+
This is helpful for people who want to contribute.
|
| 487 |
+
If the git repo is on GitHub, then the <code>npm repo</code> command will be able to find you.</p>
|
| 488 |
+
<p>Do it like this:</p>
|
| 489 |
+
<pre><code class="language-json">{
|
| 490 |
+
"repository": {
|
| 491 |
+
"type": "git",
|
| 492 |
+
"url": "git+https://github.com/npm/cli.git"
|
| 493 |
+
}
|
| 494 |
+
}
|
| 495 |
+
</code></pre>
|
| 496 |
+
<p>The URL should be a publicly available (perhaps read-only) URL that can be handed directly to a VCS program without any modification.
|
| 497 |
+
It should not be a URL to an html project page that you put in your browser.
|
| 498 |
+
It's for computers.</p>
|
| 499 |
+
<p>For GitHub, GitHub gist, Bitbucket, or GitLab repositories you can use the same shortcut syntax you use for <code>npm install</code>:</p>
|
| 500 |
+
<pre><code class="language-json">{
|
| 501 |
+
"repository": "npm/example",
|
| 502 |
+
|
| 503 |
+
"repository": "github:npm/example",
|
| 504 |
+
|
| 505 |
+
"repository": "gist:11081aaa281",
|
| 506 |
+
|
| 507 |
+
"repository": "bitbucket:user/repo",
|
| 508 |
+
|
| 509 |
+
"repository": "gitlab:user/repo"
|
| 510 |
+
}
|
| 511 |
+
</code></pre>
|
| 512 |
+
<p>If the <code>package.json</code> for your package is not in the root directory (for example if it is part of a monorepo), you can specify the directory in which it lives:</p>
|
| 513 |
+
<pre><code class="language-json">{
|
| 514 |
+
"repository": {
|
| 515 |
+
"type": "git",
|
| 516 |
+
"url": "git+https://github.com/npm/cli.git",
|
| 517 |
+
"directory": "workspaces/libnpmpublish"
|
| 518 |
+
}
|
| 519 |
+
}
|
| 520 |
+
</code></pre>
|
| 521 |
+
<h3 id="scripts">scripts</h3>
|
| 522 |
+
<p>The "scripts" property is a dictionary containing script commands that are run at various times in the lifecycle of your package.
|
| 523 |
+
The key is the lifecycle event, and the value is the command to run at that point.</p>
|
| 524 |
+
<p>See <a href="../using-npm/scripts.html"><code>scripts</code></a> to find out more about writing package scripts.</p>
|
| 525 |
+
<h3 id="config">config</h3>
|
| 526 |
+
<p>A "config" object can be used to set configuration parameters used in package scripts that persist across upgrades.
|
| 527 |
+
For instance, if a package had the following:</p>
|
| 528 |
+
<pre><code class="language-json">{
|
| 529 |
+
"name": "foo",
|
| 530 |
+
"config": {
|
| 531 |
+
"port": "8080"
|
| 532 |
+
}
|
| 533 |
+
}
|
| 534 |
+
</code></pre>
|
| 535 |
+
<p>It could also have a "start" script that referenced the <code>npm_package_config_port</code> environment variable.</p>
|
| 536 |
+
<h3 id="dependencies">dependencies</h3>
|
| 537 |
+
<p>Dependencies are specified in a simple object that maps a package name to a version range.
|
| 538 |
+
The version range is a string which has one or more space-separated descriptors.
|
| 539 |
+
Dependencies can also be identified with a tarball or git URL.</p>
|
| 540 |
+
<p><strong>Please do not put test harnesses or transpilers or other "development" time tools in your <code>dependencies</code> object.</strong>
|
| 541 |
+
See <code>devDependencies</code>, below.</p>
|
| 542 |
+
<p>See <a href="https://github.com/npm/node-semver#versions">semver</a> for more details about specifying version ranges.</p>
|
| 543 |
+
<ul>
|
| 544 |
+
<li><code>version</code> Must match <code>version</code> exactly</li>
|
| 545 |
+
<li><code>>version</code> Must be greater than <code>version</code></li>
|
| 546 |
+
<li><code>>=version</code> etc</li>
|
| 547 |
+
<li><code><version</code></li>
|
| 548 |
+
<li><code><=version</code></li>
|
| 549 |
+
<li><code>~version</code> "Approximately equivalent to version" See <a href="https://github.com/npm/node-semver#versions">semver</a></li>
|
| 550 |
+
<li><code>^version</code> "Compatible with version" See <a href="https://github.com/npm/node-semver#versions">semver</a></li>
|
| 551 |
+
<li><code>1.2.x</code> 1.2.0, 1.2.1, etc., but not 1.3.0</li>
|
| 552 |
+
<li><code>http://...</code> See 'URLs as Dependencies' below</li>
|
| 553 |
+
<li><code>*</code> Matches any version</li>
|
| 554 |
+
<li><code>""</code> (just an empty string) Same as <code>*</code></li>
|
| 555 |
+
<li><code>version1 - version2</code> Same as <code>>=version1 <=version2</code>.</li>
|
| 556 |
+
<li><code>range1 || range2</code> Passes if either range1 or range2 are satisfied.</li>
|
| 557 |
+
<li><code>git...</code> See 'Git URLs as Dependencies' below</li>
|
| 558 |
+
<li><code>user/repo</code> See 'GitHub URLs' below</li>
|
| 559 |
+
<li><code>tag</code> A specific version tagged and published as <code>tag</code> See <a href="../commands/npm-dist-tag.html"><code>npm dist-tag</code></a></li>
|
| 560 |
+
<li><code>path/path/path</code> See <a href="#local-paths">Local Paths</a> below</li>
|
| 561 |
+
<li><code>npm:@scope/pkg@version</code> Custom alias for a package See <a href="../using-npm/package-spec#aliases.html"><code>package-spec</code></a></li>
|
| 562 |
+
</ul>
|
| 563 |
+
<p>For example, these are all valid:</p>
|
| 564 |
+
<pre><code class="language-json">{
|
| 565 |
+
"dependencies": {
|
| 566 |
+
"foo": "1.0.0 - 2.9999.9999",
|
| 567 |
+
"bar": ">=1.0.2 <2.1.2",
|
| 568 |
+
"baz": ">1.0.2 <=2.3.4",
|
| 569 |
+
"boo": "2.0.1",
|
| 570 |
+
"qux": "<1.0.0 || >=2.3.1 <2.4.5 || >=2.5.2 <3.0.0",
|
| 571 |
+
"asd": "http://npmjs.com/example.tar.gz",
|
| 572 |
+
"til": "~1.2",
|
| 573 |
+
"elf": "~1.2.3",
|
| 574 |
+
"two": "2.x",
|
| 575 |
+
"thr": "3.3.x",
|
| 576 |
+
"lat": "latest",
|
| 577 |
+
"dyl": "file:../dyl",
|
| 578 |
+
"kpg": "npm:pkg@1.0.0"
|
| 579 |
+
}
|
| 580 |
+
}
|
| 581 |
+
</code></pre>
|
| 582 |
+
<h4 id="urls-as-dependencies">URLs as Dependencies</h4>
|
| 583 |
+
<p>You may specify a tarball URL in place of a version range.</p>
|
| 584 |
+
<p>This tarball will be downloaded and installed locally to your package at install time.</p>
|
| 585 |
+
<h4 id="git-urls-as-dependencies">Git URLs as Dependencies</h4>
|
| 586 |
+
<p>Git URLs are of the form:</p>
|
| 587 |
+
<pre><code class="language-bash"><protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>[#<commit-ish> | #semver:<semver>]
|
| 588 |
+
</code></pre>
|
| 589 |
+
<p><code><protocol></code> is one of <code>git</code>, <code>git+ssh</code>, <code>git+http</code>, <code>git+https</code>, or <code>git+file</code>.</p>
|
| 590 |
+
<p>If <code>#<commit-ish></code> is provided, it will be used to clone exactly that commit.
|
| 591 |
+
If the commit-ish has the format <code>#semver:<semver></code>, <code><semver></code> can be any valid semver range or exact version, and npm will look for any tags or refs matching that range in the remote repository, much as it would for a registry dependency.
|
| 592 |
+
If neither <code>#<commit-ish></code> or <code>#semver:<semver></code> is specified, then the default branch is used.</p>
|
| 593 |
+
<p>Examples:</p>
|
| 594 |
+
<pre><code class="language-bash">git+ssh://git@github.com:npm/cli.git#v1.0.27
|
| 595 |
+
git+ssh://git@github.com:npm/cli#semver:^5.0
|
| 596 |
+
git+https://isaacs@github.com/npm/cli.git
|
| 597 |
+
git://github.com/npm/cli.git#v1.0.27
|
| 598 |
+
</code></pre>
|
| 599 |
+
<p>When installing from a <code>git</code> repository, the presence of certain fields in the <code>package.json</code> will cause npm to believe it needs to perform a build.
|
| 600 |
+
To do so your repository will be cloned into a temporary directory, all of its deps installed, relevant scripts run, and the resulting directory packed and installed.</p>
|
| 601 |
+
<p>This flow will occur if your git dependency uses <code>workspaces</code>, or if any of the following scripts are present:</p>
|
| 602 |
+
<ul>
|
| 603 |
+
<li><code>build</code></li>
|
| 604 |
+
<li><code>prepare</code></li>
|
| 605 |
+
<li><code>prepack</code></li>
|
| 606 |
+
<li><code>preinstall</code></li>
|
| 607 |
+
<li><code>install</code></li>
|
| 608 |
+
<li><code>postinstall</code></li>
|
| 609 |
+
</ul>
|
| 610 |
+
<p>If your git repository includes pre-built artifacts, you will likely want to make sure that none of the above scripts are defined, or your dependency will be rebuilt for every installation.</p>
|
| 611 |
+
<h4 id="github-urls">GitHub URLs</h4>
|
| 612 |
+
<p>As of version 1.1.65, you can refer to GitHub URLs as just "foo":
|
| 613 |
+
"user/foo-project". Just as with git URLs, a <code>commit-ish</code> suffix can be included.
|
| 614 |
+
For example:</p>
|
| 615 |
+
<pre><code class="language-json">{
|
| 616 |
+
"name": "foo",
|
| 617 |
+
"version": "0.0.0",
|
| 618 |
+
"dependencies": {
|
| 619 |
+
"express": "expressjs/express",
|
| 620 |
+
"mocha": "mochajs/mocha#4727d357ea",
|
| 621 |
+
"module": "npm/example-github-repo#feature\/branch"
|
| 622 |
+
}
|
| 623 |
+
}
|
| 624 |
+
</code></pre>
|
| 625 |
+
<h4 id="local-paths">Local Paths</h4>
|
| 626 |
+
<p>As of version 2.0.0 you can provide a path to a local directory that contains a package.
|
| 627 |
+
Local paths can be saved using <code>npm install -S</code> or <code>npm install --save</code>, using any of these forms:</p>
|
| 628 |
+
<pre><code class="language-bash">../foo/bar
|
| 629 |
+
~/foo/bar
|
| 630 |
+
./foo/bar
|
| 631 |
+
/foo/bar
|
| 632 |
+
</code></pre>
|
| 633 |
+
<p>in which case they will be normalized to a relative path and added to your <code>package.json</code>.
|
| 634 |
+
For example:</p>
|
| 635 |
+
<pre><code class="language-json">{
|
| 636 |
+
"name": "baz",
|
| 637 |
+
"dependencies": {
|
| 638 |
+
"bar": "file:../foo/bar"
|
| 639 |
+
}
|
| 640 |
+
}
|
| 641 |
+
</code></pre>
|
| 642 |
+
<p>This feature is helpful for local offline development and creating tests that require npm installing where you don't want to hit an external server, but should not be used when publishing your package to the public registry.</p>
|
| 643 |
+
<p><em>note</em>: Packages linked by local path will not have their own dependencies installed when <code>npm install</code> is run.
|
| 644 |
+
You must run <code>npm install</code> from inside the local path itself.</p>
|
| 645 |
+
<h3 id="devdependencies">devDependencies</h3>
|
| 646 |
+
<p>If someone is planning on downloading and using your module in their program, then they probably don't want or need to download and build the external test or documentation framework that you use.</p>
|
| 647 |
+
<p>In this case, it's best to map these additional items in a <code>devDependencies</code> object.</p>
|
| 648 |
+
<p>These things will be installed when doing <code>npm link</code> or <code>npm install</code> from the root of a package, and can be managed like any other npm configuration param.
|
| 649 |
+
See <a href="../using-npm/config.html"><code>config</code></a> for more on the topic.</p>
|
| 650 |
+
<p>For build steps that are not platform-specific, such as compiling CoffeeScript or other languages to JavaScript, use the <code>prepare</code> script to do this, and make the required package a devDependency.</p>
|
| 651 |
+
<p>For example:</p>
|
| 652 |
+
<pre><code class="language-json">{
|
| 653 |
+
"name": "@npm/ethopia-waza",
|
| 654 |
+
"description": "a delightfully fruity coffee varietal",
|
| 655 |
+
"version": "1.2.3",
|
| 656 |
+
"devDependencies": {
|
| 657 |
+
"coffee-script": "~1.6.3"
|
| 658 |
+
},
|
| 659 |
+
"scripts": {
|
| 660 |
+
"prepare": "coffee -o lib/ -c src/waza.coffee"
|
| 661 |
+
},
|
| 662 |
+
"main": "lib/waza.js"
|
| 663 |
+
}
|
| 664 |
+
</code></pre>
|
| 665 |
+
<p>The <code>prepare</code> script will be run before publishing, so that users can consume the functionality without requiring them to compile it themselves.
|
| 666 |
+
In dev mode (ie, locally running <code>npm install</code>), it'll run this script as well, so that you can test it easily.</p>
|
| 667 |
+
<h3 id="peerdependencies">peerDependencies</h3>
|
| 668 |
+
<p>In some cases, you want to express the compatibility of your package with a host tool or library, while not necessarily doing a <code>require</code> of this host.
|
| 669 |
+
This is usually referred to as a <em>plugin</em>. Notably, your module may be exposing a specific interface, expected and specified by the host documentation.</p>
|
| 670 |
+
<p>For example:</p>
|
| 671 |
+
<pre><code class="language-json">{
|
| 672 |
+
"name": "@npm/tea-latte",
|
| 673 |
+
"version": "1.3.5",
|
| 674 |
+
"peerDependencies": {
|
| 675 |
+
"@npm/tea": "2.x"
|
| 676 |
+
}
|
| 677 |
+
}
|
| 678 |
+
</code></pre>
|
| 679 |
+
<p>This ensures your package <code>@npm/tea-latte</code> can be installed <em>along</em> with the second major version of the host package <code>@npm/tea</code> only.
|
| 680 |
+
<code>npm install tea-latte</code> could possibly yield the following dependency graph:</p>
|
| 681 |
+
<pre><code class="language-bash">├── @npm/tea-latte@1.3.5
|
| 682 |
+
└── @npm/tea@2.2.0
|
| 683 |
+
</code></pre>
|
| 684 |
+
<p>In npm versions 3 through 6, <code>peerDependencies</code> were not automatically installed, and would raise a warning if an invalid version of the peer dependency was found in the tree.
|
| 685 |
+
As of npm v7, peerDependencies <em>are</em> installed by default.</p>
|
| 686 |
+
<p>Trying to install another plugin with a conflicting requirement may cause an error if the tree cannot be resolved correctly.
|
| 687 |
+
For this reason, make sure your plugin requirement is as broad as possible, and not to lock it down to specific patch versions.</p>
|
| 688 |
+
<p>Assuming the host complies with <a href="https://semver.org/">semver</a>, only changes in the host package's major version will break your plugin.
|
| 689 |
+
Thus, if you've worked with every 1.x version of the host package, use <code>"^1.0"</code> or <code>"1.x"</code> to express this.
|
| 690 |
+
If you depend on features introduced in 1.5.2, use <code>"^1.5.2"</code>.</p>
|
| 691 |
+
<h3 id="peerdependenciesmeta">peerDependenciesMeta</h3>
|
| 692 |
+
<p>The <code>peerDependenciesMeta</code> field serves to provide npm more information on how your peer dependencies are to be used.
|
| 693 |
+
Specifically, it allows peer dependencies to be marked as optional.
|
| 694 |
+
Npm will not automatically install optional peer dependencies.
|
| 695 |
+
This allows you to integrate and interact with a variety of host packages without requiring all of them to be installed.</p>
|
| 696 |
+
<p>For example:</p>
|
| 697 |
+
<pre><code class="language-json">{
|
| 698 |
+
"name": "@npm/tea-latte",
|
| 699 |
+
"version": "1.3.5",
|
| 700 |
+
"peerDependencies": {
|
| 701 |
+
"@npm/tea": "2.x",
|
| 702 |
+
"@npm/soy-milk": "1.2"
|
| 703 |
+
},
|
| 704 |
+
"peerDependenciesMeta": {
|
| 705 |
+
"@npm/soy-milk": {
|
| 706 |
+
"optional": true
|
| 707 |
+
}
|
| 708 |
+
}
|
| 709 |
+
}
|
| 710 |
+
</code></pre>
|
| 711 |
+
<h3 id="bundledependencies">bundleDependencies</h3>
|
| 712 |
+
<p>This defines an array of package names that will be bundled when publishing the package.</p>
|
| 713 |
+
<p>In cases where you need to preserve npm packages locally or have them available through a single file download, you can bundle the packages in a tarball file by specifying the package names in the <code>bundleDependencies</code> array and executing <code>npm pack</code>.</p>
|
| 714 |
+
<p>For example:</p>
|
| 715 |
+
<p>If we define a package.json like this:</p>
|
| 716 |
+
<pre><code class="language-json">{
|
| 717 |
+
"name": "@npm/awesome-web-framework",
|
| 718 |
+
"version": "1.0.0",
|
| 719 |
+
"bundleDependencies": [
|
| 720 |
+
"@npm/renderized",
|
| 721 |
+
"@npm/super-streams"
|
| 722 |
+
]
|
| 723 |
+
}
|
| 724 |
+
</code></pre>
|
| 725 |
+
<p>we can obtain <code>@npm/awesome-web-framework-1.0.0.tgz</code> file by running <code>npm pack</code>.
|
| 726 |
+
This file contains the dependencies <code>@npm/renderized</code> and <code>@npm/super-streams</code> which can be installed in a new project by executing <code>npm install awesome-web-framework-1.0.0.tgz</code>.
|
| 727 |
+
Note that the package names do not include any versions, as that information is specified in <code>dependencies</code>.</p>
|
| 728 |
+
<p>If this is spelled <code>"bundledDependencies"</code>, then that is also honored.</p>
|
| 729 |
+
<p>Alternatively, <code>"bundleDependencies"</code> can be defined as a boolean value.
|
| 730 |
+
A value of <code>true</code> will bundle all dependencies, a value of <code>false</code> will bundle none.</p>
|
| 731 |
+
<h3 id="optionaldependencies">optionalDependencies</h3>
|
| 732 |
+
<p>If a dependency can be used, but you would like npm to proceed if it cannot be found or fails to install, then you may put it in the <code>optionalDependencies</code> object.
|
| 733 |
+
This is a map of package name to version or URL, just like the <code>dependencies</code> object.
|
| 734 |
+
The difference is that build failures do not cause installation to fail.
|
| 735 |
+
Running <code>npm install --omit=optional</code> will prevent these dependencies from being installed.</p>
|
| 736 |
+
<p>It is still your program's responsibility to handle the lack of the dependency.
|
| 737 |
+
For example, something like this:</p>
|
| 738 |
+
<pre><code class="language-js">try {
|
| 739 |
+
var foo = require('@npm/foo')
|
| 740 |
+
var fooVersion = require('@npm/foo/package.json').version
|
| 741 |
+
} catch (er) {
|
| 742 |
+
foo = null
|
| 743 |
+
}
|
| 744 |
+
if ( notGoodFooVersion(fooVersion) ) {
|
| 745 |
+
foo = null
|
| 746 |
+
}
|
| 747 |
+
|
| 748 |
+
// .. then later in your program ..
|
| 749 |
+
|
| 750 |
+
if (foo) {
|
| 751 |
+
foo.doFooThings()
|
| 752 |
+
}
|
| 753 |
+
</code></pre>
|
| 754 |
+
<p>Entries in <code>optionalDependencies</code> will override entries of the same name in <code>dependencies</code>, so it's usually best to only put in one place.</p>
|
| 755 |
+
<h3 id="overrides">overrides</h3>
|
| 756 |
+
<p>If you need to make specific changes to dependencies of your dependencies, for example replacing the version of a dependency with a known security issue, replacing an existing dependency with a fork, or making sure that the same version of a package is used everywhere, then you may add an override.</p>
|
| 757 |
+
<p>Overrides provide a way to replace a package in your dependency tree with another version, or another package entirely.
|
| 758 |
+
These changes can be scoped as specific or as vague as desired.</p>
|
| 759 |
+
<p>Overrides are only considered in the root <code>package.json</code> file for a project.
|
| 760 |
+
Overrides in installed dependencies (including <a href="../using-npm/workspaces.html">workspaces</a>) are not considered in dependency tree resolution.
|
| 761 |
+
Published packages may dictate their resolutions by pinning dependencies or using an <a href="../configuring-npm/npm-shrinkwrap-json.html"><code>npm-shrinkwrap.json</code></a> file.</p>
|
| 762 |
+
<p>To make sure the package <code>@npm/foo</code> is always installed as version <code>1.0.0</code> no matter what version your dependencies rely on:</p>
|
| 763 |
+
<pre><code class="language-json">{
|
| 764 |
+
"overrides": {
|
| 765 |
+
"@npm/foo": "1.0.0"
|
| 766 |
+
}
|
| 767 |
+
}
|
| 768 |
+
</code></pre>
|
| 769 |
+
<p>The above is a short hand notation, the full object form can be used to allow overriding a package itself as well as a child of the package.
|
| 770 |
+
This will cause <code>@npm/foo</code> to always be <code>1.0.0</code> while also making <code>@npm/bar</code> at any depth beyond <code>@npm/foo</code> also <code>1.0.0</code>:</p>
|
| 771 |
+
<pre><code class="language-json">{
|
| 772 |
+
"overrides": {
|
| 773 |
+
"@npm/foo": {
|
| 774 |
+
".": "1.0.0",
|
| 775 |
+
"@npm/bar": "1.0.0"
|
| 776 |
+
}
|
| 777 |
+
}
|
| 778 |
+
}
|
| 779 |
+
</code></pre>
|
| 780 |
+
<p>To only override <code>@npm/foo</code> to be <code>1.0.0</code> when it's a child (or grandchild, or great grandchild, etc) of the package <code>@npm/bar</code>:</p>
|
| 781 |
+
<pre><code class="language-json">{
|
| 782 |
+
"overrides": {
|
| 783 |
+
"@npm/bar": {
|
| 784 |
+
"@npm/foo": "1.0.0"
|
| 785 |
+
}
|
| 786 |
+
}
|
| 787 |
+
}
|
| 788 |
+
</code></pre>
|
| 789 |
+
<p>Keys can be nested to any arbitrary length.
|
| 790 |
+
To override <code>@npm/foo</code> only when it's a child of <code>@npm/bar</code> and only when <code>@npm/bar</code> is a child of <code>@npm/baz</code>:</p>
|
| 791 |
+
<pre><code class="language-json">{
|
| 792 |
+
"overrides": {
|
| 793 |
+
"@npm/baz": {
|
| 794 |
+
"@npm/bar": {
|
| 795 |
+
"@npm/foo": "1.0.0"
|
| 796 |
+
}
|
| 797 |
+
}
|
| 798 |
+
}
|
| 799 |
+
}
|
| 800 |
+
</code></pre>
|
| 801 |
+
<p>The key of an override can also include a version, or range of versions.
|
| 802 |
+
To override <code>@npm/foo</code> to <code>1.0.0</code>, but only when it's a child of <code>@npm/bar@2.0.0</code>:</p>
|
| 803 |
+
<pre><code class="language-json">{
|
| 804 |
+
"overrides": {
|
| 805 |
+
"@npm/bar@2.0.0": {
|
| 806 |
+
"@npm/foo": "1.0.0"
|
| 807 |
+
}
|
| 808 |
+
}
|
| 809 |
+
}
|
| 810 |
+
</code></pre>
|
| 811 |
+
<p>You may not set an override for a package that you directly depend on unless both the dependency and the override itself share the exact same spec.
|
| 812 |
+
To make this limitation easier to deal with, overrides may also be defined as a reference to a spec for a direct dependency by prefixing the name of the package you wish the version to match with a <code>$</code>.</p>
|
| 813 |
+
<pre><code class="language-json">{
|
| 814 |
+
"dependencies": {
|
| 815 |
+
"@npm/foo": "^1.0.0"
|
| 816 |
+
},
|
| 817 |
+
"overrides": {
|
| 818 |
+
// BAD, will throw an EOVERRIDE error
|
| 819 |
+
// "foo": "^2.0.0"
|
| 820 |
+
// GOOD, specs match so override is allowed
|
| 821 |
+
// "foo": "^1.0.0"
|
| 822 |
+
// BEST, the override is defined as a reference to the dependency
|
| 823 |
+
"@npm/foo": "$foo",
|
| 824 |
+
// the referenced package does not need to match the overridden one
|
| 825 |
+
"@npm/bar": "$foo"
|
| 826 |
+
}
|
| 827 |
+
}
|
| 828 |
+
</code></pre>
|
| 829 |
+
<h3 id="engines">engines</h3>
|
| 830 |
+
<p>You can specify the version of node that your stuff works on:</p>
|
| 831 |
+
<pre><code class="language-json">{
|
| 832 |
+
"engines": {
|
| 833 |
+
"node": ">=0.10.3 <15"
|
| 834 |
+
}
|
| 835 |
+
}
|
| 836 |
+
</code></pre>
|
| 837 |
+
<p>And, like with dependencies, if you don't specify the version (or if you specify "*" as the version), then any version of node will do.</p>
|
| 838 |
+
<p>You can also use the "engines" field to specify which versions of npm are capable of properly installing your program.
|
| 839 |
+
For example:</p>
|
| 840 |
+
<pre><code class="language-json">{
|
| 841 |
+
"engines": {
|
| 842 |
+
"npm": "~1.0.20"
|
| 843 |
+
}
|
| 844 |
+
}
|
| 845 |
+
</code></pre>
|
| 846 |
+
<p>Unless the user has set the <a href="../using-npm/config#engine-strict.html"><code>engine-strict</code> config</a> flag, this field is advisory only and will only produce warnings when your package is installed as a dependency.</p>
|
| 847 |
+
<h3 id="os">os</h3>
|
| 848 |
+
<p>You can specify which operating systems your module will run on:</p>
|
| 849 |
+
<pre><code class="language-json">{
|
| 850 |
+
"os": [
|
| 851 |
+
"darwin",
|
| 852 |
+
"linux"
|
| 853 |
+
]
|
| 854 |
+
}
|
| 855 |
+
</code></pre>
|
| 856 |
+
<p>You can also block instead of allowing operating systems, just prepend the blocked os with a '!':</p>
|
| 857 |
+
<pre><code class="language-json">{
|
| 858 |
+
"os": [
|
| 859 |
+
"!win32"
|
| 860 |
+
]
|
| 861 |
+
}
|
| 862 |
+
</code></pre>
|
| 863 |
+
<p>The host operating system is determined by <code>process.platform</code></p>
|
| 864 |
+
<p>It is allowed to both block and allow an item, although there isn't any good reason to do this.</p>
|
| 865 |
+
<h3 id="cpu">cpu</h3>
|
| 866 |
+
<p>If your code only runs on certain cpu architectures, you can specify which ones.</p>
|
| 867 |
+
<pre><code class="language-json">{
|
| 868 |
+
"cpu": [
|
| 869 |
+
"x64",
|
| 870 |
+
"ia32"
|
| 871 |
+
]
|
| 872 |
+
}
|
| 873 |
+
</code></pre>
|
| 874 |
+
<p>Like the <code>os</code> option, you can also block architectures:</p>
|
| 875 |
+
<pre><code class="language-json">{
|
| 876 |
+
"cpu": [
|
| 877 |
+
"!arm",
|
| 878 |
+
"!mips"
|
| 879 |
+
]
|
| 880 |
+
}
|
| 881 |
+
</code></pre>
|
| 882 |
+
<p>The host architecture is determined by <code>process.arch</code></p>
|
| 883 |
+
<h3 id="libc">libc</h3>
|
| 884 |
+
<p>If your code only runs or builds in certain versions of libc, you can specify which ones.
|
| 885 |
+
This field only applies if <code>os</code> is <code>linux</code>.</p>
|
| 886 |
+
<pre><code class="language-json">{
|
| 887 |
+
"os": "linux",
|
| 888 |
+
"libc": "glibc"
|
| 889 |
+
}
|
| 890 |
+
</code></pre>
|
| 891 |
+
<h3 id="devengines">devEngines</h3>
|
| 892 |
+
<p>The <code>devEngines</code> field aids engineers working on a codebase to all be using the same tooling.</p>
|
| 893 |
+
<p>You can specify a <code>devEngines</code> property in your <code>package.json</code> which will run before <code>install</code>, <code>ci</code>, and <code>run</code> commands.</p>
|
| 894 |
+
<blockquote>
|
| 895 |
+
<p>Note: <code>engines</code> and <code>devEngines</code> differ in object shape.
|
| 896 |
+
They also function very differently.
|
| 897 |
+
<code>engines</code> is designed to alert the user when a dependency uses a different npm or node version than the project it's being used in, whereas <code>devEngines</code> is used to alert people interacting with the source code of a project.</p>
|
| 898 |
+
</blockquote>
|
| 899 |
+
<p>The supported keys under the <code>devEngines</code> property are <code>cpu</code>, <code>os</code>, <code>libc</code>, <code>runtime</code>, and <code>packageManager</code>.
|
| 900 |
+
Each property can be an object or an array of objects.
|
| 901 |
+
Objects must contain <code>name</code>, and optionally can specify <code>version</code>, and <code>onFail</code>.
|
| 902 |
+
<code>onFail</code> can be <code>warn</code>, <code>error</code>, or <code>ignore</code>, and if left undefined is of the same value as <code>error</code>.
|
| 903 |
+
<code>npm</code> will assume that you're running with <code>node</code>.
|
| 904 |
+
Here's an example of a project that will fail if the environment is not <code>node</code> and <code>npm</code>.
|
| 905 |
+
If you set <code>runtime.name</code> or <code>packageManager.name</code> to any other string, it will fail within the npm CLI.</p>
|
| 906 |
+
<pre><code class="language-json">{
|
| 907 |
+
"devEngines": {
|
| 908 |
+
"runtime": {
|
| 909 |
+
"name": "node",
|
| 910 |
+
"onFail": "error"
|
| 911 |
+
},
|
| 912 |
+
"packageManager": {
|
| 913 |
+
"name": "npm",
|
| 914 |
+
"onFail": "error"
|
| 915 |
+
}
|
| 916 |
+
}
|
| 917 |
+
}
|
| 918 |
+
</code></pre>
|
| 919 |
+
<h3 id="private">private</h3>
|
| 920 |
+
<p>If you set <code>"private": true</code> in your package.json, then npm will refuse to publish it.</p>
|
| 921 |
+
<p>This is a way to prevent accidental publication of private repositories.
|
| 922 |
+
If you would like to ensure that a given package is only ever published to a specific registry (for example, an internal registry), then use the <code>publishConfig</code> dictionary described below to override the <code>registry</code> config param at publish-time.</p>
|
| 923 |
+
<h3 id="publishconfig">publishConfig</h3>
|
| 924 |
+
<p>This is a set of config values that will be used at publish-time.
|
| 925 |
+
It's especially handy if you want to set the tag, registry or access, so that you can ensure that a given package is not tagged with "latest", published to the global public registry or that a scoped module is private by default.</p>
|
| 926 |
+
<p>See <a href="../using-npm/config.html"><code>config</code></a> to see the list of config options that can be overridden.</p>
|
| 927 |
+
<h3 id="workspaces">workspaces</h3>
|
| 928 |
+
<p>The optional <code>workspaces</code> field is an array of file patterns that describes locations within the local file system that the install client should look up to find each <a href="../using-npm/workspaces.html">workspace</a> that needs to be symlinked to the top level <code>node_modules</code> folder.</p>
|
| 929 |
+
<p>It can describe either the direct paths of the folders to be used as workspaces or it can define globs that will resolve to these same folders.</p>
|
| 930 |
+
<p>In the following example, all folders located inside the folder <code>./packages</code> will be treated as workspaces as long as they have valid <code>package.json</code> files inside them:</p>
|
| 931 |
+
<pre><code class="language-json">{
|
| 932 |
+
"name": "workspace-example",
|
| 933 |
+
"workspaces": [
|
| 934 |
+
"./packages/*"
|
| 935 |
+
]
|
| 936 |
+
}
|
| 937 |
+
</code></pre>
|
| 938 |
+
<p>See <a href="../using-npm/workspaces.html"><code>workspaces</code></a> for more examples.</p>
|
| 939 |
+
<h3 id="default-values">DEFAULT VALUES</h3>
|
| 940 |
+
<p>npm will default some values based on package contents.</p>
|
| 941 |
+
<ul>
|
| 942 |
+
<li>
|
| 943 |
+
<p><code>"scripts": {"start": "node server.js"}</code></p>
|
| 944 |
+
<p>If there is a <code>server.js</code> file in the root of your package, then npm will default the <code>start</code> command to <code>node server.js</code>.</p>
|
| 945 |
+
</li>
|
| 946 |
+
<li>
|
| 947 |
+
<p><code>"scripts":{"install": "node-gyp rebuild"}</code></p>
|
| 948 |
+
<p>If there is a <code>binding.gyp</code> file in the root of your package and you have not defined an <code>install</code> or <code>preinstall</code> script, npm will default the <code>install</code> command to compile using node-gyp.</p>
|
| 949 |
+
</li>
|
| 950 |
+
<li>
|
| 951 |
+
<p><code>"contributors": [...]</code></p>
|
| 952 |
+
<p>If there is an <code>AUTHORS</code> file in the root of your package, npm will treat each line as a <code>Name <email> (url)</code> format, where email and url are optional.
|
| 953 |
+
Lines which start with a <code>#</code> or are blank, will be ignored.</p>
|
| 954 |
+
</li>
|
| 955 |
+
</ul>
|
| 956 |
+
<h3 id="see-also">SEE ALSO</h3>
|
| 957 |
+
<ul>
|
| 958 |
+
<li><a href="https://github.com/npm/node-semver#versions">semver</a></li>
|
| 959 |
+
<li><a href="../using-npm/workspaces.html">workspaces</a></li>
|
| 960 |
+
<li><a href="../commands/npm-init.html">npm init</a></li>
|
| 961 |
+
<li><a href="../commands/npm-version.html">npm version</a></li>
|
| 962 |
+
<li><a href="../commands/npm-config.html">npm config</a></li>
|
| 963 |
+
<li><a href="../commands/npm-help.html">npm help</a></li>
|
| 964 |
+
<li><a href="../commands/npm-install.html">npm install</a></li>
|
| 965 |
+
<li><a href="../commands/npm-publish.html">npm publish</a></li>
|
| 966 |
+
<li><a href="../commands/npm-uninstall.html">npm uninstall</a></li>
|
| 967 |
+
</ul></div>
|
| 968 |
+
|
| 969 |
+
<footer id="edit">
|
| 970 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/configuring-npm/package-json.md">
|
| 971 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 972 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 973 |
+
</svg>
|
| 974 |
+
Edit this page on GitHub
|
| 975 |
+
</a>
|
| 976 |
+
</footer>
|
| 977 |
+
</section>
|
| 978 |
+
|
| 979 |
+
|
| 980 |
+
|
| 981 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/configuring-npm/package-lock-json.html
ADDED
|
@@ -0,0 +1,335 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----package-lockjson----1162">
|
| 145 |
+
<span>package-lock.json</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">A manifestation of the manifest</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#package-lockjson-vs-npm-shrinkwrapjson"><code>package-lock.json</code> vs <code>npm-shrinkwrap.json</code></a></li><li><a href="#hidden-lockfiles">Hidden Lockfiles</a></li><li><a href="#handling-old-lockfiles">Handling Old Lockfiles</a></li><li><a href="#file-format">File Format</a></li><ul><li><a href="#name"><code>name</code></a></li><li><a href="#version"><code>version</code></a></li><li><a href="#lockfileversion"><code>lockfileVersion</code></a></li><li><a href="#packages"><code>packages</code></a></li><li><a href="#dependencies">dependencies</a></li></ul><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p><code>package-lock.json</code> is automatically generated for any operations where npm modifies either the <code>node_modules</code> tree, or <code>package.json</code>.
|
| 158 |
+
It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates.</p>
|
| 159 |
+
<p>This file is intended to be committed into source repositories, and serves various purposes:</p>
|
| 160 |
+
<ul>
|
| 161 |
+
<li>
|
| 162 |
+
<p>Describe a single representation of a dependency tree such that teammates, deployments, and continuous integration are guaranteed to install exactly the same dependencies.</p>
|
| 163 |
+
</li>
|
| 164 |
+
<li>
|
| 165 |
+
<p>Provide a facility for users to "time-travel" to previous states of <code>node_modules</code> without having to commit the directory itself.</p>
|
| 166 |
+
</li>
|
| 167 |
+
<li>
|
| 168 |
+
<p>Facilitate greater visibility of tree changes through readable source control diffs.</p>
|
| 169 |
+
</li>
|
| 170 |
+
<li>
|
| 171 |
+
<p>Optimize the installation process by allowing npm to skip repeated metadata resolutions for previously-installed packages.</p>
|
| 172 |
+
</li>
|
| 173 |
+
<li>
|
| 174 |
+
<p>As of npm v7, lockfiles include enough information to gain a complete picture of the package tree, reducing the need to read <code>package.json</code> files, and allowing for significant performance improvements.</p>
|
| 175 |
+
</li>
|
| 176 |
+
</ul>
|
| 177 |
+
<p>When <code>npm</code> creates or updates <code>package-lock.json</code>, it will infer line endings and indentation from <code>package.json</code> so that the formatting of both files matches.</p>
|
| 178 |
+
<h3 id="package-lockjson-vs-npm-shrinkwrapjson"><code>package-lock.json</code> vs <code>npm-shrinkwrap.json</code></h3>
|
| 179 |
+
<p>Both of these files have the same format, and perform similar functions in the root of a project.</p>
|
| 180 |
+
<p>The difference is that <code>package-lock.json</code> cannot be published, and it will be ignored if found in any place other than the root project.</p>
|
| 181 |
+
<p>In contrast, <a href="../configuring-npm/npm-shrinkwrap-json.html">npm-shrinkwrap.json</a> allows publication, and defines the dependency tree from the point encountered.
|
| 182 |
+
This is not recommended unless deploying a CLI tool or otherwise using the publication process for producing production packages.</p>
|
| 183 |
+
<p>If both <code>package-lock.json</code> and <code>npm-shrinkwrap.json</code> are present in the root of a project, <code>npm-shrinkwrap.json</code> will take precedence and <code>package-lock.json</code> will be ignored.</p>
|
| 184 |
+
<h3 id="hidden-lockfiles">Hidden Lockfiles</h3>
|
| 185 |
+
<p>In order to avoid processing the <code>node_modules</code> folder repeatedly, npm as of v7 uses a "hidden" lockfile present in <code>node_modules/.package-lock.json</code>.
|
| 186 |
+
This contains information about the tree, and is used in lieu of reading the entire <code>node_modules</code> hierarchy provided that the following conditions are met:</p>
|
| 187 |
+
<ul>
|
| 188 |
+
<li>All package folders it references exist in the <code>node_modules</code> hierarchy.</li>
|
| 189 |
+
<li>No package folders exist in the <code>node_modules</code> hierarchy that are not listed in the lockfile.</li>
|
| 190 |
+
<li>The modified time of the file is at least as recent as all of the package folders it references.</li>
|
| 191 |
+
</ul>
|
| 192 |
+
<p>That is, the hidden lockfile will only be relevant if it was created as part of the most recent update to the package tree.
|
| 193 |
+
If another CLI mutates the tree in any way, this will be detected, and the hidden lockfile will be ignored.</p>
|
| 194 |
+
<p>Note that it <em>is</em> possible to manually change the <em>contents</em> of a package in such a way that the modified time of the package folder is unaffected.
|
| 195 |
+
For example, if you add a file to <code>node_modules/foo/lib/bar.js</code>, then the modified time on <code>node_modules/foo</code> will not reflect this change.
|
| 196 |
+
If you are manually editing files in <code>node_modules</code>, it is generally best to delete the file at <code>node_modules/.package-lock.json</code>.</p>
|
| 197 |
+
<p>As the hidden lockfile is ignored by older npm versions, it does not contain the backwards compatibility affordances present in "normal" lockfiles.
|
| 198 |
+
That is, it is <code>lockfileVersion: 3</code>, rather than <code>lockfileVersion: 2</code>.</p>
|
| 199 |
+
<h3 id="handling-old-lockfiles">Handling Old Lockfiles</h3>
|
| 200 |
+
<p>When npm detects a lockfile from npm v6 or before during the package installation process, it is automatically updated to fetch missing information from either the <code>node_modules</code> tree or (in the case of empty <code>node_modules</code> trees or very old lockfile formats) the npm registry.</p>
|
| 201 |
+
<h3 id="file-format">File Format</h3>
|
| 202 |
+
<h4 id="name"><code>name</code></h4>
|
| 203 |
+
<p>The name of the package this is a package-lock for.
|
| 204 |
+
This will match what's in <code>package.json</code>.</p>
|
| 205 |
+
<h4 id="version"><code>version</code></h4>
|
| 206 |
+
<p>The version of the package this is a package-lock for.
|
| 207 |
+
This will match what's in <code>package.json</code>.</p>
|
| 208 |
+
<h4 id="lockfileversion"><code>lockfileVersion</code></h4>
|
| 209 |
+
<p>An integer version, starting at <code>1</code> with the version number of this document whose semantics were used when generating this <code>package-lock.json</code>.</p>
|
| 210 |
+
<p>Note that the file format changed significantly in npm v7 to track information that would have otherwise required looking in <code>node_modules</code> or the npm registry.
|
| 211 |
+
Lockfiles generated by npm v7 will contain <code>lockfileVersion: 2</code>.</p>
|
| 212 |
+
<ul>
|
| 213 |
+
<li>No version provided: an "ancient" shrinkwrap file from a version of npm prior to npm v5.</li>
|
| 214 |
+
<li><code>1</code>: The lockfile version used by npm v5 and v6.</li>
|
| 215 |
+
<li><code>2</code>: The lockfile version used by npm v7 and v8. Backwards compatible to v1 lockfiles.</li>
|
| 216 |
+
<li><code>3</code>: The lockfile version used by npm v9 and above.
|
| 217 |
+
Backwards compatible to npm v7.</li>
|
| 218 |
+
</ul>
|
| 219 |
+
<p>npm will always attempt to get whatever data it can out of a lockfile, even if it is not a version that it was designed to support.</p>
|
| 220 |
+
<h4 id="packages"><code>packages</code></h4>
|
| 221 |
+
<p>This is an object that maps package locations to an object containing the information about that package.</p>
|
| 222 |
+
<p>The root project is typically listed with a key of <code>""</code>, and all other packages are listed with their relative paths from the root project folder.</p>
|
| 223 |
+
<p>Package descriptors have the following fields:</p>
|
| 224 |
+
<ul>
|
| 225 |
+
<li>
|
| 226 |
+
<p>version: The version found in <code>package.json</code></p>
|
| 227 |
+
</li>
|
| 228 |
+
<li>
|
| 229 |
+
<p>resolved: The place where the package was actually resolved from.
|
| 230 |
+
In the case of packages fetched from the registry, this will be a url to a tarball.
|
| 231 |
+
In the case of git dependencies, this will be the full git url with commit sha.
|
| 232 |
+
In the case of link dependencies, this will be the location of the link target.
|
| 233 |
+
<code>registry.npmjs.org</code> is a magic value meaning "the currently configured registry".</p>
|
| 234 |
+
</li>
|
| 235 |
+
<li>
|
| 236 |
+
<p>integrity: A <code>sha512</code> or <code>sha1</code> <a href="https://w3c.github.io/webappsec/specs/subresourceintegrity/">Standard Subresource Integrity</a> string for the artifact that was unpacked in this location.</p>
|
| 237 |
+
</li>
|
| 238 |
+
<li>
|
| 239 |
+
<p>link: A flag to indicate that this is a symbolic link.
|
| 240 |
+
If this is present, no other fields are specified, since the link target will also be included in the lockfile.</p>
|
| 241 |
+
</li>
|
| 242 |
+
<li>
|
| 243 |
+
<p>dev, optional, devOptional: If the package is strictly part of the
|
| 244 |
+
<code>devDependencies</code> tree, then <code>dev</code> will be true.
|
| 245 |
+
If it is strictly part of the <code>optionalDependencies</code> tree, then <code>optional</code> will be set.
|
| 246 |
+
If it is both a <code>dev</code> dependency <em>and</em> an <code>optional</code> dependency of a non-dev dependency, then <code>devOptional</code> will be set.
|
| 247 |
+
(An <code>optional</code> dependency of a <code>dev</code> dependency will have both <code>dev</code> and <code>optional</code> set.)</p>
|
| 248 |
+
</li>
|
| 249 |
+
<li>
|
| 250 |
+
<p>inBundle: A flag to indicate that the package is a bundled dependency.</p>
|
| 251 |
+
</li>
|
| 252 |
+
<li>
|
| 253 |
+
<p>hasInstallScript: A flag to indicate that the package has a <code>preinstall</code>, <code>install</code>, or <code>postinstall</code> script.</p>
|
| 254 |
+
</li>
|
| 255 |
+
<li>
|
| 256 |
+
<p>hasShrinkwrap: A flag to indicate that the package has an <code>npm-shrinkwrap.json</code> file.</p>
|
| 257 |
+
</li>
|
| 258 |
+
<li>
|
| 259 |
+
<p>bin, license, engines, dependencies, optionalDependencies: fields from <code>package.json</code></p>
|
| 260 |
+
</li>
|
| 261 |
+
</ul>
|
| 262 |
+
<h4 id="dependencies">dependencies</h4>
|
| 263 |
+
<p>Legacy data for supporting versions of npm that use <code>lockfileVersion: 1</code>.
|
| 264 |
+
This is a mapping of package names to dependency objects.
|
| 265 |
+
Because the object structure is strictly hierarchical, symbolic link dependencies are somewhat challenging to represent in some cases.</p>
|
| 266 |
+
<p>npm v7 ignores this section entirely if a <code>packages</code> section is present, but does keep it up to date in order to support switching between npm v6 and npm v7.</p>
|
| 267 |
+
<p>Dependency objects have the following fields:</p>
|
| 268 |
+
<ul>
|
| 269 |
+
<li>
|
| 270 |
+
<p>version: a specifier that varies depending on the nature of the package, and is usable in fetching a new copy of it.</p>
|
| 271 |
+
<ul>
|
| 272 |
+
<li>bundled dependencies: Regardless of source, this is a version number that is purely for informational purposes.</li>
|
| 273 |
+
<li>registry sources: This is a version number.
|
| 274 |
+
(eg, <code>1.2.3</code>)</li>
|
| 275 |
+
<li>git sources: This is a git specifier with resolved committish.
|
| 276 |
+
(eg, <code>git+https://example.com/foo/bar#115311855adb0789a0466714ed48a1499ffea97e</code>)</li>
|
| 277 |
+
<li>http tarball sources: This is the URL of the tarball.
|
| 278 |
+
(eg, <code>https://example.com/example-1.3.0.tgz</code>)</li>
|
| 279 |
+
<li>local tarball sources: This is the file URL of the tarball.
|
| 280 |
+
(eg <code>file:///opt/storage/example-1.3.0.tgz</code>)</li>
|
| 281 |
+
<li>local link sources: This is the file URL of the link.
|
| 282 |
+
(eg <code>file:libs/our-module</code>)</li>
|
| 283 |
+
</ul>
|
| 284 |
+
</li>
|
| 285 |
+
<li>
|
| 286 |
+
<p>integrity: A <code>sha512</code> or <code>sha1</code> <a href="https://w3c.github.io/webappsec/specs/subresourceintegrity/">Standard Subresource Integrity</a> string for the artifact that was unpacked in this location.
|
| 287 |
+
For git dependencies, this is the commit sha.</p>
|
| 288 |
+
</li>
|
| 289 |
+
<li>
|
| 290 |
+
<p>resolved: For registry sources this is path of the tarball relative to the registry URL.
|
| 291 |
+
If the tarball URL isn't on the same server as the registry URL then this is a complete URL.
|
| 292 |
+
<code>registry.npmjs.org</code> is a magic value meaning "the currently configured registry".</p>
|
| 293 |
+
</li>
|
| 294 |
+
<li>
|
| 295 |
+
<p>bundled: If true, this is the bundled dependency and will be installed by the parent module.
|
| 296 |
+
When installing, this module will be extracted from the parent module during the extract phase, not installed as a separate dependency.</p>
|
| 297 |
+
</li>
|
| 298 |
+
<li>
|
| 299 |
+
<p>dev: If true then this dependency is either a development dependency ONLY of the top level module or a transitive dependency of one.
|
| 300 |
+
This is false for dependencies that are both a development dependency of the top level and a transitive dependency of a non-development dependency of the top level.</p>
|
| 301 |
+
</li>
|
| 302 |
+
<li>
|
| 303 |
+
<p>optional: If true then this dependency is either an optional dependency ONLY of the top level module or a transitive dependency of one.
|
| 304 |
+
This is false for dependencies that are both an optional dependency of the top level and a transitive dependency of a non-optional dependency of the top level.</p>
|
| 305 |
+
</li>
|
| 306 |
+
<li>
|
| 307 |
+
<p>requires: This is a mapping of module name to version.
|
| 308 |
+
This is a list of everything this module requires, regardless of where it will be installed.
|
| 309 |
+
The version should match via normal matching rules a dependency either in our <code>dependencies</code> or in a level higher than us.</p>
|
| 310 |
+
</li>
|
| 311 |
+
<li>
|
| 312 |
+
<p>dependencies: The dependencies of this dependency, exactly as at the top level.</p>
|
| 313 |
+
</li>
|
| 314 |
+
</ul>
|
| 315 |
+
<h3 id="see-also">See also</h3>
|
| 316 |
+
<ul>
|
| 317 |
+
<li><a href="../commands/npm-shrinkwrap.html">npm shrinkwrap</a></li>
|
| 318 |
+
<li><a href="../configuring-npm/npm-shrinkwrap-json.html">npm-shrinkwrap.json</a></li>
|
| 319 |
+
<li><a href="../configuring-npm/package-json.html">package.json</a></li>
|
| 320 |
+
<li><a href="../commands/npm-install.html">npm install</a></li>
|
| 321 |
+
</ul></div>
|
| 322 |
+
|
| 323 |
+
<footer id="edit">
|
| 324 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/configuring-npm/package-lock-json.md">
|
| 325 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 326 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 327 |
+
</svg>
|
| 328 |
+
Edit this page on GitHub
|
| 329 |
+
</a>
|
| 330 |
+
</footer>
|
| 331 |
+
</section>
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/config.html
ADDED
|
@@ -0,0 +1,1686 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>config</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----config----1162">
|
| 145 |
+
<span>config</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">More than you probably want to know about npm configuration</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><ul><li><a href="#command-line-flags">Command Line Flags</a></li><li><a href="#environment-variables">Environment Variables</a></li><li><a href="#npmrc-files">npmrc Files</a></li><li><a href="#default-configs">Default Configs</a></li></ul><li><a href="#shorthands-and-other-cli-niceties">Shorthands and Other CLI Niceties</a></li><li><a href="#config-settings">Config Settings</a></li><ul><li><a href="#auth"><code>_auth</code></a></li><li><a href="#access"><code>access</code></a></li><li><a href="#all"><code>all</code></a></li><li><a href="#allow-same-version"><code>allow-same-version</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#audit-level"><code>audit-level</code></a></li><li><a href="#auth-type"><code>auth-type</code></a></li><li><a href="#before"><code>before</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#browser"><code>browser</code></a></li><li><a href="#ca"><code>ca</code></a></li><li><a href="#cache"><code>cache</code></a></li><li><a href="#cafile"><code>cafile</code></a></li><li><a href="#call"><code>call</code></a></li><li><a href="#cidr"><code>cidr</code></a></li><li><a href="#color"><code>color</code></a></li><li><a href="#commit-hooks"><code>commit-hooks</code></a></li><li><a href="#cpu"><code>cpu</code></a></li><li><a href="#depth"><code>depth</code></a></li><li><a href="#description2"><code>description</code></a></li><li><a href="#diff"><code>diff</code></a></li><li><a href="#diff-dst-prefix"><code>diff-dst-prefix</code></a></li><li><a href="#diff-ignore-all-space"><code>diff-ignore-all-space</code></a></li><li><a href="#diff-name-only"><code>diff-name-only</code></a></li><li><a href="#diff-no-prefix"><code>diff-no-prefix</code></a></li><li><a href="#diff-src-prefix"><code>diff-src-prefix</code></a></li><li><a href="#diff-text"><code>diff-text</code></a></li><li><a href="#diff-unified"><code>diff-unified</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#editor"><code>editor</code></a></li><li><a href="#engine-strict"><code>engine-strict</code></a></li><li><a href="#expect-result-count"><code>expect-result-count</code></a></li><li><a href="#expect-results"><code>expect-results</code></a></li><li><a href="#fetch-retries"><code>fetch-retries</code></a></li><li><a href="#fetch-retry-factor"><code>fetch-retry-factor</code></a></li><li><a href="#fetch-retry-maxtimeout"><code>fetch-retry-maxtimeout</code></a></li><li><a href="#fetch-retry-mintimeout"><code>fetch-retry-mintimeout</code></a></li><li><a href="#fetch-timeout"><code>fetch-timeout</code></a></li><li><a href="#force"><code>force</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#format-package-lock"><code>format-package-lock</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#git"><code>git</code></a></li><li><a href="#git-tag-version"><code>git-tag-version</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#globalconfig"><code>globalconfig</code></a></li><li><a href="#heading"><code>heading</code></a></li><li><a href="#https-proxy"><code>https-proxy</code></a></li><li><a href="#if-present"><code>if-present</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#include"><code>include</code></a></li><li><a href="#include-staged"><code>include-staged</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#init-author-email"><code>init-author-email</code></a></li><li><a href="#init-author-name"><code>init-author-name</code></a></li><li><a href="#init-author-url"><code>init-author-url</code></a></li><li><a href="#init-license"><code>init-license</code></a></li><li><a href="#init-module"><code>init-module</code></a></li><li><a href="#init-private"><code>init-private</code></a></li><li><a href="#init-type"><code>init-type</code></a></li><li><a href="#init-version"><code>init-version</code></a></li><li><a href="#install-links"><code>install-links</code></a></li><li><a href="#install-strategy"><code>install-strategy</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#legacy-peer-deps"><code>legacy-peer-deps</code></a></li><li><a href="#libc"><code>libc</code></a></li><li><a href="#link"><code>link</code></a></li><li><a href="#local-address"><code>local-address</code></a></li><li><a href="#location"><code>location</code></a></li><li><a href="#lockfile-version"><code>lockfile-version</code></a></li><li><a href="#loglevel"><code>loglevel</code></a></li><li><a href="#logs-dir"><code>logs-dir</code></a></li><li><a href="#logs-max"><code>logs-max</code></a></li><li><a href="#long"><code>long</code></a></li><li><a href="#maxsockets"><code>maxsockets</code></a></li><li><a href="#message"><code>message</code></a></li><li><a href="#node-gyp"><code>node-gyp</code></a></li><li><a href="#node-options"><code>node-options</code></a></li><li><a href="#noproxy"><code>noproxy</code></a></li><li><a href="#offline"><code>offline</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#omit-lockfile-registry-resolved"><code>omit-lockfile-registry-resolved</code></a></li><li><a href="#os"><code>os</code></a></li><li><a href="#otp"><code>otp</code></a></li><li><a href="#pack-destination"><code>pack-destination</code></a></li><li><a href="#package"><code>package</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#parseable"><code>parseable</code></a></li><li><a href="#prefer-dedupe"><code>prefer-dedupe</code></a></li><li><a href="#prefer-offline"><code>prefer-offline</code></a></li><li><a href="#prefer-online"><code>prefer-online</code></a></li><li><a href="#prefix"><code>prefix</code></a></li><li><a href="#preid"><code>preid</code></a></li><li><a href="#progress"><code>progress</code></a></li><li><a href="#provenance"><code>provenance</code></a></li><li><a href="#provenance-file"><code>provenance-file</code></a></li><li><a href="#proxy"><code>proxy</code></a></li><li><a href="#read-only"><code>read-only</code></a></li><li><a href="#rebuild-bundle"><code>rebuild-bundle</code></a></li><li><a href="#registry"><code>registry</code></a></li><li><a href="#replace-registry-host"><code>replace-registry-host</code></a></li><li><a href="#save"><code>save</code></a></li><li><a href="#save-bundle"><code>save-bundle</code></a></li><li><a href="#save-dev"><code>save-dev</code></a></li><li><a href="#save-exact"><code>save-exact</code></a></li><li><a href="#save-optional"><code>save-optional</code></a></li><li><a href="#save-peer"><code>save-peer</code></a></li><li><a href="#save-prefix"><code>save-prefix</code></a></li><li><a href="#save-prod"><code>save-prod</code></a></li><li><a href="#sbom-format"><code>sbom-format</code></a></li><li><a href="#sbom-type"><code>sbom-type</code></a></li><li><a href="#scope"><code>scope</code></a></li><li><a href="#script-shell"><code>script-shell</code></a></li><li><a href="#searchexclude"><code>searchexclude</code></a></li><li><a href="#searchlimit"><code>searchlimit</code></a></li><li><a href="#searchopts"><code>searchopts</code></a></li><li><a href="#searchstaleness"><code>searchstaleness</code></a></li><li><a href="#shell"><code>shell</code></a></li><li><a href="#sign-git-commit"><code>sign-git-commit</code></a></li><li><a href="#sign-git-tag"><code>sign-git-tag</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#strict-ssl"><code>strict-ssl</code></a></li><li><a href="#tag"><code>tag</code></a></li><li><a href="#tag-version-prefix"><code>tag-version-prefix</code></a></li><li><a href="#timing"><code>timing</code></a></li><li><a href="#umask"><code>umask</code></a></li><li><a href="#unicode"><code>unicode</code></a></li><li><a href="#update-notifier"><code>update-notifier</code></a></li><li><a href="#usage"><code>usage</code></a></li><li><a href="#user-agent"><code>user-agent</code></a></li><li><a href="#userconfig"><code>userconfig</code></a></li><li><a href="#version"><code>version</code></a></li><li><a href="#versions"><code>versions</code></a></li><li><a href="#viewer"><code>viewer</code></a></li><li><a href="#which"><code>which</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#workspaces-update"><code>workspaces-update</code></a></li><li><a href="#yes"><code>yes</code></a></li><li><a href="#also"><code>also</code></a></li><li><a href="#cache-max"><code>cache-max</code></a></li><li><a href="#cache-min"><code>cache-min</code></a></li><li><a href="#cert"><code>cert</code></a></li><li><a href="#dev"><code>dev</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#initauthoremail"><code>init.author.email</code></a></li><li><a href="#initauthorname"><code>init.author.name</code></a></li><li><a href="#initauthorurl"><code>init.author.url</code></a></li><li><a href="#initlicense"><code>init.license</code></a></li><li><a href="#initmodule"><code>init.module</code></a></li><li><a href="#initversion"><code>init.version</code></a></li><li><a href="#key"><code>key</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#only"><code>only</code></a></li><li><a href="#optional"><code>optional</code></a></li><li><a href="#production"><code>production</code></a></li><li><a href="#shrinkwrap"><code>shrinkwrap</code></a></li></ul><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>This article details npm configuration in general.
|
| 158 |
+
To learn about the <code>config</code> command, see <a href="../commands/npm-config.html"><code>npm config</code></a>.</p>
|
| 159 |
+
<p>npm gets its configuration values from the following sources, sorted by priority:</p>
|
| 160 |
+
<h4 id="command-line-flags">Command Line Flags</h4>
|
| 161 |
+
<p>Putting <code>--foo bar</code> on the command line sets the <code>foo</code> configuration parameter to <code>"bar"</code>.
|
| 162 |
+
A <code>--</code> argument tells the cli parser to stop reading flags.
|
| 163 |
+
Using <code>--flag</code> without specifying any value will set the value to <code>true</code>.</p>
|
| 164 |
+
<p>Example: <code>--flag1 --flag2</code> will set both configuration parameters to <code>true</code>, while <code>--flag1 --flag2 bar</code> will set <code>flag1</code> to <code>true</code>, and <code>flag2</code> to <code>bar</code>.
|
| 165 |
+
Finally, <code>--flag1 --flag2 -- bar</code> will set both configuration parameters to <code>true</code>, and the <code>bar</code> is taken as a command argument.</p>
|
| 166 |
+
<h4 id="environment-variables">Environment Variables</h4>
|
| 167 |
+
<p>Any environment variables that start with <code>npm_config_</code> will be interpreted as a configuration parameter.
|
| 168 |
+
For example, putting <code>npm_config_foo=bar</code> in your environment will set the <code>foo</code> configuration parameter to <code>bar</code>.
|
| 169 |
+
Any environment configurations that are not given a value will be given the value of <code>true</code>.
|
| 170 |
+
Config values are case-insensitive, so <code>NPM_CONFIG_FOO=bar</code> will work the same.
|
| 171 |
+
However, please note that inside <a href="../using-npm/scripts.html"><code>scripts</code></a> npm will set its own environment variables and Node will prefer those lowercase versions over any uppercase ones that you might set.
|
| 172 |
+
For details see <a href="https://github.com/npm/npm/issues/14528">this issue</a>.</p>
|
| 173 |
+
<p>Notice that you need to use underscores instead of dashes, so <code>--allow-same-version</code> would become <code>npm_config_allow_same_version=true</code>.</p>
|
| 174 |
+
<h4 id="npmrc-files">npmrc Files</h4>
|
| 175 |
+
<p>The four relevant files are:</p>
|
| 176 |
+
<ul>
|
| 177 |
+
<li>per-project configuration file (<code>/path/to/my/project/.npmrc</code>)</li>
|
| 178 |
+
<li>per-user configuration file (defaults to <code>$HOME/.npmrc</code>; configurable via CLI option <code>--userconfig</code> or environment variable <code>$NPM_CONFIG_USERCONFIG</code>)</li>
|
| 179 |
+
<li>global configuration file (defaults to <code>$PREFIX/etc/npmrc</code>; configurable via CLI option <code>--globalconfig</code> or environment variable <code>$NPM_CONFIG_GLOBALCONFIG</code>)</li>
|
| 180 |
+
<li>npm's built-in configuration file (<code>/path/to/npm/npmrc</code>)</li>
|
| 181 |
+
</ul>
|
| 182 |
+
<p>See <a href="../configuring-npm/npmrc.html">npmrc</a> for more details.</p>
|
| 183 |
+
<h4 id="default-configs">Default Configs</h4>
|
| 184 |
+
<p>Run <code>npm config ls -l</code> to see a set of configuration parameters that are internal to npm, and are defaults if nothing else is specified.</p>
|
| 185 |
+
<h3 id="shorthands-and-other-cli-niceties">Shorthands and Other CLI Niceties</h3>
|
| 186 |
+
<p>The following shorthands are parsed on the command-line:</p>
|
| 187 |
+
<ul>
|
| 188 |
+
<li><code>-a</code>: <code>--all</code></li>
|
| 189 |
+
<li><code>--enjoy-by</code>: <code>--before</code></li>
|
| 190 |
+
<li><code>-c</code>: <code>--call</code></li>
|
| 191 |
+
<li><code>--desc</code>: <code>--description</code></li>
|
| 192 |
+
<li><code>-f</code>: <code>--force</code></li>
|
| 193 |
+
<li><code>-g</code>: <code>--global</code></li>
|
| 194 |
+
<li><code>--iwr</code>: <code>--include-workspace-root</code></li>
|
| 195 |
+
<li><code>-L</code>: <code>--location</code></li>
|
| 196 |
+
<li><code>-d</code>: <code>--loglevel info</code></li>
|
| 197 |
+
<li><code>-s</code>: <code>--loglevel silent</code></li>
|
| 198 |
+
<li><code>--silent</code>: <code>--loglevel silent</code></li>
|
| 199 |
+
<li><code>--ddd</code>: <code>--loglevel silly</code></li>
|
| 200 |
+
<li><code>--dd</code>: <code>--loglevel verbose</code></li>
|
| 201 |
+
<li><code>--verbose</code>: <code>--loglevel verbose</code></li>
|
| 202 |
+
<li><code>-q</code>: <code>--loglevel warn</code></li>
|
| 203 |
+
<li><code>--quiet</code>: <code>--loglevel warn</code></li>
|
| 204 |
+
<li><code>-l</code>: <code>--long</code></li>
|
| 205 |
+
<li><code>-m</code>: <code>--message</code></li>
|
| 206 |
+
<li><code>--local</code>: <code>--no-global</code></li>
|
| 207 |
+
<li><code>-n</code>: <code>--no-yes</code></li>
|
| 208 |
+
<li><code>--no</code>: <code>--no-yes</code></li>
|
| 209 |
+
<li><code>-p</code>: <code>--parseable</code></li>
|
| 210 |
+
<li><code>--porcelain</code>: <code>--parseable</code></li>
|
| 211 |
+
<li><code>-C</code>: <code>--prefix</code></li>
|
| 212 |
+
<li><code>--readonly</code>: <code>--read-only</code></li>
|
| 213 |
+
<li><code>--reg</code>: <code>--registry</code></li>
|
| 214 |
+
<li><code>-S</code>: <code>--save</code></li>
|
| 215 |
+
<li><code>-B</code>: <code>--save-bundle</code></li>
|
| 216 |
+
<li><code>-D</code>: <code>--save-dev</code></li>
|
| 217 |
+
<li><code>-E</code>: <code>--save-exact</code></li>
|
| 218 |
+
<li><code>-O</code>: <code>--save-optional</code></li>
|
| 219 |
+
<li><code>-P</code>: <code>--save-prod</code></li>
|
| 220 |
+
<li><code>-?</code>: <code>--usage</code></li>
|
| 221 |
+
<li><code>-h</code>: <code>--usage</code></li>
|
| 222 |
+
<li><code>-H</code>: <code>--usage</code></li>
|
| 223 |
+
<li><code>--help</code>: <code>--usage</code></li>
|
| 224 |
+
<li><code>-v</code>: <code>--version</code></li>
|
| 225 |
+
<li><code>-w</code>: <code>--workspace</code></li>
|
| 226 |
+
<li><code>--ws</code>: <code>--workspaces</code></li>
|
| 227 |
+
<li><code>-y</code>: <code>--yes</code></li>
|
| 228 |
+
</ul>
|
| 229 |
+
<p>If the specified configuration param resolves unambiguously to a known configuration parameter, then it is expanded to that configuration parameter.
|
| 230 |
+
For example:</p>
|
| 231 |
+
<pre><code class="language-bash">npm ls --par
|
| 232 |
+
# same as:
|
| 233 |
+
npm ls --parseable
|
| 234 |
+
</code></pre>
|
| 235 |
+
<p>If multiple single-character shorthands are strung together, and the resulting combination is unambiguously not some other configuration param, then it is expanded to its various component pieces.
|
| 236 |
+
For example:</p>
|
| 237 |
+
<pre><code class="language-bash">npm ls -gpld
|
| 238 |
+
# same as:
|
| 239 |
+
npm ls --global --parseable --long --loglevel info
|
| 240 |
+
</code></pre>
|
| 241 |
+
<h3 id="config-settings">Config Settings</h3>
|
| 242 |
+
<h4 id="auth"><code>_auth</code></h4>
|
| 243 |
+
<ul>
|
| 244 |
+
<li>Default: null</li>
|
| 245 |
+
<li>Type: null or String</li>
|
| 246 |
+
</ul>
|
| 247 |
+
<p>A basic-auth string to use when authenticating against the npm
|
| 248 |
+
registry. This will ONLY be used to authenticate against the npm
|
| 249 |
+
registry. For other registries you will need to scope it like
|
| 250 |
+
"//other-registry.tld/:_auth"</p>
|
| 251 |
+
<p>Warning: This should generally not be set via a command-line option.
|
| 252 |
+
It is safer to use a registry-provided authentication bearer token
|
| 253 |
+
stored in the ~/.npmrc file by running <code>npm login</code>.</p>
|
| 254 |
+
<h4 id="access"><code>access</code></h4>
|
| 255 |
+
<ul>
|
| 256 |
+
<li>Default: 'public' for new packages, existing packages it will not
|
| 257 |
+
change the current level</li>
|
| 258 |
+
<li>Type: null, "restricted", or "public"</li>
|
| 259 |
+
</ul>
|
| 260 |
+
<p>If you do not want your scoped package to be publicly viewable (and
|
| 261 |
+
installable) set <code>--access=restricted</code>.</p>
|
| 262 |
+
<p>Unscoped packages cannot be set to <code>restricted</code>.</p>
|
| 263 |
+
<p>Note: This defaults to not changing the current access level for
|
| 264 |
+
existing packages. Specifying a value of <code>restricted</code> or <code>public</code>
|
| 265 |
+
during publish will change the access for an existing package the
|
| 266 |
+
same way that <code>npm access set status</code> would.</p>
|
| 267 |
+
<h4 id="all"><code>all</code></h4>
|
| 268 |
+
<ul>
|
| 269 |
+
<li>Default: false</li>
|
| 270 |
+
<li>Type: Boolean</li>
|
| 271 |
+
</ul>
|
| 272 |
+
<p>When running <code>npm outdated</code> and <code>npm ls</code>, setting <code>--all</code> will show
|
| 273 |
+
all outdated or installed packages, rather than only those directly
|
| 274 |
+
depended upon by the current project.</p>
|
| 275 |
+
<h4 id="allow-same-version"><code>allow-same-version</code></h4>
|
| 276 |
+
<ul>
|
| 277 |
+
<li>Default: false</li>
|
| 278 |
+
<li>Type: Boolean</li>
|
| 279 |
+
</ul>
|
| 280 |
+
<p>Prevents throwing an error when <code>npm version</code> is used to set the new
|
| 281 |
+
version to the same value as the current version.</p>
|
| 282 |
+
<h4 id="audit"><code>audit</code></h4>
|
| 283 |
+
<ul>
|
| 284 |
+
<li>Default: true</li>
|
| 285 |
+
<li>Type: Boolean</li>
|
| 286 |
+
</ul>
|
| 287 |
+
<p>When "true" submit audit reports alongside the current npm command to
|
| 288 |
+
the default registry and all registries configured for scopes. See
|
| 289 |
+
the documentation for <a href="../commands/npm-audit.html"><code>npm audit</code></a> for details
|
| 290 |
+
on what is submitted.</p>
|
| 291 |
+
<h4 id="audit-level"><code>audit-level</code></h4>
|
| 292 |
+
<ul>
|
| 293 |
+
<li>Default: null</li>
|
| 294 |
+
<li>Type: null, "info", "low", "moderate", "high", "critical", or "none"</li>
|
| 295 |
+
</ul>
|
| 296 |
+
<p>The minimum level of vulnerability for <code>npm audit</code> to exit with a
|
| 297 |
+
non-zero exit code.</p>
|
| 298 |
+
<h4 id="auth-type"><code>auth-type</code></h4>
|
| 299 |
+
<ul>
|
| 300 |
+
<li>Default: "web"</li>
|
| 301 |
+
<li>Type: "legacy" or "web"</li>
|
| 302 |
+
</ul>
|
| 303 |
+
<p>What authentication strategy to use with <code>login</code>. Note that if an
|
| 304 |
+
<code>otp</code> config is given, this value will always be set to <code>legacy</code>.</p>
|
| 305 |
+
<h4 id="before"><code>before</code></h4>
|
| 306 |
+
<ul>
|
| 307 |
+
<li>Default: null</li>
|
| 308 |
+
<li>Type: null or Date</li>
|
| 309 |
+
</ul>
|
| 310 |
+
<p>If passed to <code>npm install</code>, will rebuild the npm tree such that only
|
| 311 |
+
versions that were available <strong>on or before</strong> the given date are
|
| 312 |
+
installed. If there are no versions available for the current set of
|
| 313 |
+
dependencies, the command will error.</p>
|
| 314 |
+
<p>If the requested version is a <code>dist-tag</code> and the given tag does not
|
| 315 |
+
pass the <code>--before</code> filter, the most recent version less than or
|
| 316 |
+
equal to that tag will be used. For example, <code>foo@latest</code> might
|
| 317 |
+
install <code>foo@1.2</code> even though <code>latest</code> is <code>2.0</code>.</p>
|
| 318 |
+
<h4 id="bin-links"><code>bin-links</code></h4>
|
| 319 |
+
<ul>
|
| 320 |
+
<li>Default: true</li>
|
| 321 |
+
<li>Type: Boolean</li>
|
| 322 |
+
</ul>
|
| 323 |
+
<p>Tells npm to create symlinks (or <code>.cmd</code> shims on Windows) for package
|
| 324 |
+
executables.</p>
|
| 325 |
+
<p>Set to false to have it not do this. This can be used to work around
|
| 326 |
+
the fact that some file systems don't support symlinks, even on
|
| 327 |
+
ostensibly Unix systems.</p>
|
| 328 |
+
<h4 id="browser"><code>browser</code></h4>
|
| 329 |
+
<ul>
|
| 330 |
+
<li>Default: macOS: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
|
| 331 |
+
<li>Type: null, Boolean, or String</li>
|
| 332 |
+
</ul>
|
| 333 |
+
<p>The browser that is called by npm commands to open websites.</p>
|
| 334 |
+
<p>Set to <code>false</code> to suppress browser behavior and instead print urls to
|
| 335 |
+
terminal.</p>
|
| 336 |
+
<p>Set to <code>true</code> to use default system URL opener.</p>
|
| 337 |
+
<h4 id="ca"><code>ca</code></h4>
|
| 338 |
+
<ul>
|
| 339 |
+
<li>Default: null</li>
|
| 340 |
+
<li>Type: null or String (can be set multiple times)</li>
|
| 341 |
+
</ul>
|
| 342 |
+
<p>The Certificate Authority signing certificate that is trusted for SSL
|
| 343 |
+
connections to the registry. Values should be in PEM format (Windows
|
| 344 |
+
calls it "Base-64 encoded X.509 (.CER)") with newlines replaced by
|
| 345 |
+
the string "\n". For example:</p>
|
| 346 |
+
<pre><code class="language-ini">ca="-----BEGIN CERTIFICATE-----\nXXXX\nXXXX\n-----END CERTIFICATE-----"
|
| 347 |
+
</code></pre>
|
| 348 |
+
<p>Set to <code>null</code> to only allow "known" registrars, or to a specific CA
|
| 349 |
+
cert to trust only that specific signing authority.</p>
|
| 350 |
+
<p>Multiple CAs can be trusted by specifying an array of certificates:</p>
|
| 351 |
+
<pre><code class="language-ini">ca[]="..."
|
| 352 |
+
ca[]="..."
|
| 353 |
+
</code></pre>
|
| 354 |
+
<p>See also the <code>strict-ssl</code> config.</p>
|
| 355 |
+
<h4 id="cache"><code>cache</code></h4>
|
| 356 |
+
<ul>
|
| 357 |
+
<li>Default: Windows: <code>%LocalAppData%\npm-cache</code>, Posix: <code>~/.npm</code></li>
|
| 358 |
+
<li>Type: Path</li>
|
| 359 |
+
</ul>
|
| 360 |
+
<p>The location of npm's cache directory.</p>
|
| 361 |
+
<h4 id="cafile"><code>cafile</code></h4>
|
| 362 |
+
<ul>
|
| 363 |
+
<li>Default: null</li>
|
| 364 |
+
<li>Type: Path</li>
|
| 365 |
+
</ul>
|
| 366 |
+
<p>A path to a file containing one or multiple Certificate Authority
|
| 367 |
+
signing certificates. Similar to the <code>ca</code> setting, but allows for
|
| 368 |
+
multiple CA's, as well as for the CA information to be stored in a
|
| 369 |
+
file on disk.</p>
|
| 370 |
+
<h4 id="call"><code>call</code></h4>
|
| 371 |
+
<ul>
|
| 372 |
+
<li>Default: ""</li>
|
| 373 |
+
<li>Type: String</li>
|
| 374 |
+
</ul>
|
| 375 |
+
<p>Optional companion option for <code>npm exec</code>, <code>npx</code> that allows for
|
| 376 |
+
specifying a custom command to be run along with the installed
|
| 377 |
+
packages.</p>
|
| 378 |
+
<pre><code class="language-bash">npm exec --package yo --package generator-node --call "yo node"
|
| 379 |
+
</code></pre>
|
| 380 |
+
<h4 id="cidr"><code>cidr</code></h4>
|
| 381 |
+
<ul>
|
| 382 |
+
<li>Default: null</li>
|
| 383 |
+
<li>Type: null or String (can be set multiple times)</li>
|
| 384 |
+
</ul>
|
| 385 |
+
<p>This is a list of CIDR address to be used when configuring limited
|
| 386 |
+
access tokens with the <code>npm token create</code> command.</p>
|
| 387 |
+
<h4 id="color"><code>color</code></h4>
|
| 388 |
+
<ul>
|
| 389 |
+
<li>Default: true unless the NO_COLOR environ is set to something other
|
| 390 |
+
than '0'</li>
|
| 391 |
+
<li>Type: "always" or Boolean</li>
|
| 392 |
+
</ul>
|
| 393 |
+
<p>If false, never shows colors. If <code>"always"</code> then always shows colors.
|
| 394 |
+
If true, then only prints color codes for tty file descriptors.</p>
|
| 395 |
+
<h4 id="commit-hooks"><code>commit-hooks</code></h4>
|
| 396 |
+
<ul>
|
| 397 |
+
<li>Default: true</li>
|
| 398 |
+
<li>Type: Boolean</li>
|
| 399 |
+
</ul>
|
| 400 |
+
<p>Run git commit hooks when using the <code>npm version</code> command.</p>
|
| 401 |
+
<h4 id="cpu"><code>cpu</code></h4>
|
| 402 |
+
<ul>
|
| 403 |
+
<li>Default: null</li>
|
| 404 |
+
<li>Type: null or String</li>
|
| 405 |
+
</ul>
|
| 406 |
+
<p>Override CPU architecture of native modules to install. Acceptable
|
| 407 |
+
values are same as <code>cpu</code> field of package.json, which comes from
|
| 408 |
+
<code>process.arch</code>.</p>
|
| 409 |
+
<h4 id="depth"><code>depth</code></h4>
|
| 410 |
+
<ul>
|
| 411 |
+
<li>Default: <code>Infinity</code> if <code>--all</code> is set; otherwise, <code>0</code></li>
|
| 412 |
+
<li>Type: null or Number</li>
|
| 413 |
+
</ul>
|
| 414 |
+
<p>The depth to go when recursing packages for <code>npm ls</code>.</p>
|
| 415 |
+
<p>If not set, <code>npm ls</code> will show only the immediate dependencies of the
|
| 416 |
+
root project. If <code>--all</code> is set, then npm will show all dependencies
|
| 417 |
+
by default.</p>
|
| 418 |
+
<h4 id="description2"><code>description</code></h4>
|
| 419 |
+
<ul>
|
| 420 |
+
<li>Default: true</li>
|
| 421 |
+
<li>Type: Boolean</li>
|
| 422 |
+
</ul>
|
| 423 |
+
<p>Show the description in <code>npm search</code></p>
|
| 424 |
+
<h4 id="diff"><code>diff</code></h4>
|
| 425 |
+
<ul>
|
| 426 |
+
<li>Default:</li>
|
| 427 |
+
<li>Type: String (can be set multiple times)</li>
|
| 428 |
+
</ul>
|
| 429 |
+
<p>Define arguments to compare in <code>npm diff</code>.</p>
|
| 430 |
+
<h4 id="diff-dst-prefix"><code>diff-dst-prefix</code></h4>
|
| 431 |
+
<ul>
|
| 432 |
+
<li>Default: "b/"</li>
|
| 433 |
+
<li>Type: String</li>
|
| 434 |
+
</ul>
|
| 435 |
+
<p>Destination prefix to be used in <code>npm diff</code> output.</p>
|
| 436 |
+
<h4 id="diff-ignore-all-space"><code>diff-ignore-all-space</code></h4>
|
| 437 |
+
<ul>
|
| 438 |
+
<li>Default: false</li>
|
| 439 |
+
<li>Type: Boolean</li>
|
| 440 |
+
</ul>
|
| 441 |
+
<p>Ignore whitespace when comparing lines in <code>npm diff</code>.</p>
|
| 442 |
+
<h4 id="diff-name-only"><code>diff-name-only</code></h4>
|
| 443 |
+
<ul>
|
| 444 |
+
<li>Default: false</li>
|
| 445 |
+
<li>Type: Boolean</li>
|
| 446 |
+
</ul>
|
| 447 |
+
<p>Prints only filenames when using <code>npm diff</code>.</p>
|
| 448 |
+
<h4 id="diff-no-prefix"><code>diff-no-prefix</code></h4>
|
| 449 |
+
<ul>
|
| 450 |
+
<li>Default: false</li>
|
| 451 |
+
<li>Type: Boolean</li>
|
| 452 |
+
</ul>
|
| 453 |
+
<p>Do not show any source or destination prefix in <code>npm diff</code> output.</p>
|
| 454 |
+
<p>Note: this causes <code>npm diff</code> to ignore the <code>--diff-src-prefix</code> and
|
| 455 |
+
<code>--diff-dst-prefix</code> configs.</p>
|
| 456 |
+
<h4 id="diff-src-prefix"><code>diff-src-prefix</code></h4>
|
| 457 |
+
<ul>
|
| 458 |
+
<li>Default: "a/"</li>
|
| 459 |
+
<li>Type: String</li>
|
| 460 |
+
</ul>
|
| 461 |
+
<p>Source prefix to be used in <code>npm diff</code> output.</p>
|
| 462 |
+
<h4 id="diff-text"><code>diff-text</code></h4>
|
| 463 |
+
<ul>
|
| 464 |
+
<li>Default: false</li>
|
| 465 |
+
<li>Type: Boolean</li>
|
| 466 |
+
</ul>
|
| 467 |
+
<p>Treat all files as text in <code>npm diff</code>.</p>
|
| 468 |
+
<h4 id="diff-unified"><code>diff-unified</code></h4>
|
| 469 |
+
<ul>
|
| 470 |
+
<li>Default: 3</li>
|
| 471 |
+
<li>Type: Number</li>
|
| 472 |
+
</ul>
|
| 473 |
+
<p>The number of lines of context to print in <code>npm diff</code>.</p>
|
| 474 |
+
<h4 id="dry-run"><code>dry-run</code></h4>
|
| 475 |
+
<ul>
|
| 476 |
+
<li>Default: false</li>
|
| 477 |
+
<li>Type: Boolean</li>
|
| 478 |
+
</ul>
|
| 479 |
+
<p>Indicates that you don't want npm to make any changes and that it
|
| 480 |
+
should only report what it would have done. This can be passed into
|
| 481 |
+
any of the commands that modify your local installation, eg,
|
| 482 |
+
<code>install</code>, <code>update</code>, <code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and
|
| 483 |
+
<code>publish</code>.</p>
|
| 484 |
+
<p>Note: This is NOT honored by other network related commands, eg
|
| 485 |
+
<code>dist-tags</code>, <code>owner</code>, etc.</p>
|
| 486 |
+
<h4 id="editor"><code>editor</code></h4>
|
| 487 |
+
<ul>
|
| 488 |
+
<li>Default: The EDITOR or VISUAL environment variables, or
|
| 489 |
+
'%SYSTEMROOT%\notepad.exe' on Windows, or 'vi' on Unix systems</li>
|
| 490 |
+
<li>Type: String</li>
|
| 491 |
+
</ul>
|
| 492 |
+
<p>The command to run for <code>npm edit</code> and <code>npm config edit</code>.</p>
|
| 493 |
+
<h4 id="engine-strict"><code>engine-strict</code></h4>
|
| 494 |
+
<ul>
|
| 495 |
+
<li>Default: false</li>
|
| 496 |
+
<li>Type: Boolean</li>
|
| 497 |
+
</ul>
|
| 498 |
+
<p>If set to true, then npm will stubbornly refuse to install (or even
|
| 499 |
+
consider installing) any package that claims to not be compatible
|
| 500 |
+
with the current Node.js version.</p>
|
| 501 |
+
<p>This can be overridden by setting the <code>--force</code> flag.</p>
|
| 502 |
+
<h4 id="expect-result-count"><code>expect-result-count</code></h4>
|
| 503 |
+
<ul>
|
| 504 |
+
<li>Default: null</li>
|
| 505 |
+
<li>Type: null or Number</li>
|
| 506 |
+
</ul>
|
| 507 |
+
<p>Tells to expect a specific number of results from the command.</p>
|
| 508 |
+
<p>This config cannot be used with: <code>expect-results</code></p>
|
| 509 |
+
<h4 id="expect-results"><code>expect-results</code></h4>
|
| 510 |
+
<ul>
|
| 511 |
+
<li>Default: null</li>
|
| 512 |
+
<li>Type: null or Boolean</li>
|
| 513 |
+
</ul>
|
| 514 |
+
<p>Tells npm whether or not to expect results from the command. Can be
|
| 515 |
+
either true (expect some results) or false (expect no results).</p>
|
| 516 |
+
<p>This config cannot be used with: <code>expect-result-count</code></p>
|
| 517 |
+
<h4 id="fetch-retries"><code>fetch-retries</code></h4>
|
| 518 |
+
<ul>
|
| 519 |
+
<li>Default: 2</li>
|
| 520 |
+
<li>Type: Number</li>
|
| 521 |
+
</ul>
|
| 522 |
+
<p>The "retries" config for the <code>retry</code> module to use when fetching
|
| 523 |
+
packages from the registry.</p>
|
| 524 |
+
<p>npm will retry idempotent read requests to the registry in the case
|
| 525 |
+
of network failures or 5xx HTTP errors.</p>
|
| 526 |
+
<h4 id="fetch-retry-factor"><code>fetch-retry-factor</code></h4>
|
| 527 |
+
<ul>
|
| 528 |
+
<li>Default: 10</li>
|
| 529 |
+
<li>Type: Number</li>
|
| 530 |
+
</ul>
|
| 531 |
+
<p>The "factor" config for the <code>retry</code> module to use when fetching
|
| 532 |
+
packages.</p>
|
| 533 |
+
<h4 id="fetch-retry-maxtimeout"><code>fetch-retry-maxtimeout</code></h4>
|
| 534 |
+
<ul>
|
| 535 |
+
<li>Default: 60000 (1 minute)</li>
|
| 536 |
+
<li>Type: Number</li>
|
| 537 |
+
</ul>
|
| 538 |
+
<p>The "maxTimeout" config for the <code>retry</code> module to use when fetching
|
| 539 |
+
packages.</p>
|
| 540 |
+
<h4 id="fetch-retry-mintimeout"><code>fetch-retry-mintimeout</code></h4>
|
| 541 |
+
<ul>
|
| 542 |
+
<li>Default: 10000 (10 seconds)</li>
|
| 543 |
+
<li>Type: Number</li>
|
| 544 |
+
</ul>
|
| 545 |
+
<p>The "minTimeout" config for the <code>retry</code> module to use when fetching
|
| 546 |
+
packages.</p>
|
| 547 |
+
<h4 id="fetch-timeout"><code>fetch-timeout</code></h4>
|
| 548 |
+
<ul>
|
| 549 |
+
<li>Default: 300000 (5 minutes)</li>
|
| 550 |
+
<li>Type: Number</li>
|
| 551 |
+
</ul>
|
| 552 |
+
<p>The maximum amount of time to wait for HTTP requests to complete.</p>
|
| 553 |
+
<h4 id="force"><code>force</code></h4>
|
| 554 |
+
<ul>
|
| 555 |
+
<li>Default: false</li>
|
| 556 |
+
<li>Type: Boolean</li>
|
| 557 |
+
</ul>
|
| 558 |
+
<p>Removes various protections against unfortunate side effects, common
|
| 559 |
+
mistakes, unnecessary performance degradation, and malicious input.</p>
|
| 560 |
+
<ul>
|
| 561 |
+
<li>Allow clobbering non-npm files in global installs.</li>
|
| 562 |
+
<li>Allow the <code>npm version</code> command to work on an unclean git repository.</li>
|
| 563 |
+
<li>Allow deleting the cache folder with <code>npm cache clean</code>.</li>
|
| 564 |
+
<li>Allow installing packages that have an <code>engines</code> declaration
|
| 565 |
+
requiring a different version of npm.</li>
|
| 566 |
+
<li>Allow installing packages that have an <code>engines</code> declaration
|
| 567 |
+
requiring a different version of <code>node</code>, even if <code>--engine-strict</code> is
|
| 568 |
+
enabled.</li>
|
| 569 |
+
<li>Allow <code>npm audit fix</code> to install modules outside your stated
|
| 570 |
+
dependency range (including SemVer-major changes).</li>
|
| 571 |
+
<li>Allow unpublishing all versions of a published package.</li>
|
| 572 |
+
<li>Allow conflicting peerDependencies to be installed in the root
|
| 573 |
+
project.</li>
|
| 574 |
+
<li>Implicitly set <code>--yes</code> during <code>npm init</code>.</li>
|
| 575 |
+
<li>Allow clobbering existing values in <code>npm pkg</code></li>
|
| 576 |
+
<li>Allow unpublishing of entire packages (not just a single version).</li>
|
| 577 |
+
</ul>
|
| 578 |
+
<p>If you don't have a clear idea of what you want to do, it is strongly
|
| 579 |
+
recommended that you do not use this option!</p>
|
| 580 |
+
<h4 id="foreground-scripts"><code>foreground-scripts</code></h4>
|
| 581 |
+
<ul>
|
| 582 |
+
<li>Default: <code>false</code> unless when using <code>npm pack</code> or <code>npm publish</code> where
|
| 583 |
+
it defaults to <code>true</code></li>
|
| 584 |
+
<li>Type: Boolean</li>
|
| 585 |
+
</ul>
|
| 586 |
+
<p>Run all build scripts (ie, <code>preinstall</code>, <code>install</code>, and
|
| 587 |
+
<code>postinstall</code>) scripts for installed packages in the foreground
|
| 588 |
+
process, sharing standard input, output, and error with the main npm
|
| 589 |
+
process.</p>
|
| 590 |
+
<p>Note that this will generally make installs run slower, and be much
|
| 591 |
+
noisier, but can be useful for debugging.</p>
|
| 592 |
+
<h4 id="format-package-lock"><code>format-package-lock</code></h4>
|
| 593 |
+
<ul>
|
| 594 |
+
<li>Default: true</li>
|
| 595 |
+
<li>Type: Boolean</li>
|
| 596 |
+
</ul>
|
| 597 |
+
<p>Format <code>package-lock.json</code> or <code>npm-shrinkwrap.json</code> as a human
|
| 598 |
+
readable file.</p>
|
| 599 |
+
<h4 id="fund"><code>fund</code></h4>
|
| 600 |
+
<ul>
|
| 601 |
+
<li>Default: true</li>
|
| 602 |
+
<li>Type: Boolean</li>
|
| 603 |
+
</ul>
|
| 604 |
+
<p>When "true" displays the message at the end of each <code>npm install</code>
|
| 605 |
+
acknowledging the number of dependencies looking for funding. See
|
| 606 |
+
<a href="../commands/npm-fund.html"><code>npm fund</code></a> for details.</p>
|
| 607 |
+
<h4 id="git"><code>git</code></h4>
|
| 608 |
+
<ul>
|
| 609 |
+
<li>Default: "git"</li>
|
| 610 |
+
<li>Type: String</li>
|
| 611 |
+
</ul>
|
| 612 |
+
<p>The command to use for git commands. If git is installed on the
|
| 613 |
+
computer, but is not in the <code>PATH</code>, then set this to the full path to
|
| 614 |
+
the git binary.</p>
|
| 615 |
+
<h4 id="git-tag-version"><code>git-tag-version</code></h4>
|
| 616 |
+
<ul>
|
| 617 |
+
<li>Default: true</li>
|
| 618 |
+
<li>Type: Boolean</li>
|
| 619 |
+
</ul>
|
| 620 |
+
<p>Tag the commit when using the <code>npm version</code> command. Setting this to
|
| 621 |
+
false results in no commit being made at all.</p>
|
| 622 |
+
<h4 id="global"><code>global</code></h4>
|
| 623 |
+
<ul>
|
| 624 |
+
<li>Default: false</li>
|
| 625 |
+
<li>Type: Boolean</li>
|
| 626 |
+
</ul>
|
| 627 |
+
<p>Operates in "global" mode, so that packages are installed into the
|
| 628 |
+
<code>prefix</code> folder instead of the current working directory. See
|
| 629 |
+
<a href="../configuring-npm/folders.html">folders</a> for more on the differences in
|
| 630 |
+
behavior.</p>
|
| 631 |
+
<ul>
|
| 632 |
+
<li>packages are installed into the <code>{prefix}/lib/node_modules</code> folder,
|
| 633 |
+
instead of the current working directory.</li>
|
| 634 |
+
<li>bin files are linked to <code>{prefix}/bin</code></li>
|
| 635 |
+
<li>man pages are linked to <code>{prefix}/share/man</code></li>
|
| 636 |
+
</ul>
|
| 637 |
+
<h4 id="globalconfig"><code>globalconfig</code></h4>
|
| 638 |
+
<ul>
|
| 639 |
+
<li>Default: The global --prefix setting plus 'etc/npmrc'. For example,
|
| 640 |
+
'/usr/local/etc/npmrc'</li>
|
| 641 |
+
<li>Type: Path</li>
|
| 642 |
+
</ul>
|
| 643 |
+
<p>The config file to read for global config options.</p>
|
| 644 |
+
<h4 id="heading"><code>heading</code></h4>
|
| 645 |
+
<ul>
|
| 646 |
+
<li>Default: "npm"</li>
|
| 647 |
+
<li>Type: String</li>
|
| 648 |
+
</ul>
|
| 649 |
+
<p>The string that starts all the debugging log output.</p>
|
| 650 |
+
<h4 id="https-proxy"><code>https-proxy</code></h4>
|
| 651 |
+
<ul>
|
| 652 |
+
<li>Default: null</li>
|
| 653 |
+
<li>Type: null or URL</li>
|
| 654 |
+
</ul>
|
| 655 |
+
<p>A proxy to use for outgoing https requests. If the <code>HTTPS_PROXY</code> or
|
| 656 |
+
<code>https_proxy</code> or <code>HTTP_PROXY</code> or <code>http_proxy</code> environment variables
|
| 657 |
+
are set, proxy settings will be honored by the underlying
|
| 658 |
+
<code>make-fetch-happen</code> library.</p>
|
| 659 |
+
<h4 id="if-present"><code>if-present</code></h4>
|
| 660 |
+
<ul>
|
| 661 |
+
<li>Default: false</li>
|
| 662 |
+
<li>Type: Boolean</li>
|
| 663 |
+
</ul>
|
| 664 |
+
<p>If true, npm will not exit with an error code when <code>run</code> is invoked
|
| 665 |
+
for a script that isn't defined in the <code>scripts</code> section of
|
| 666 |
+
<code>package.json</code>. This option can be used when it's desirable to
|
| 667 |
+
optionally run a script when it's present and fail if the script
|
| 668 |
+
fails. This is useful, for example, when running scripts that may
|
| 669 |
+
only apply for some builds in an otherwise generic CI setup.</p>
|
| 670 |
+
<p>This value is not exported to the environment for child processes.</p>
|
| 671 |
+
<h4 id="ignore-scripts"><code>ignore-scripts</code></h4>
|
| 672 |
+
<ul>
|
| 673 |
+
<li>Default: false</li>
|
| 674 |
+
<li>Type: Boolean</li>
|
| 675 |
+
</ul>
|
| 676 |
+
<p>If true, npm does not run scripts specified in package.json files.</p>
|
| 677 |
+
<p>Note that commands explicitly intended to run a particular script,
|
| 678 |
+
such as <code>npm start</code>, <code>npm stop</code>, <code>npm restart</code>, <code>npm test</code>, and <code>npm run</code> will still run their intended script if <code>ignore-scripts</code> is set,
|
| 679 |
+
but they will <em>not</em> run any pre- or post-scripts.</p>
|
| 680 |
+
<h4 id="include"><code>include</code></h4>
|
| 681 |
+
<ul>
|
| 682 |
+
<li>Default:</li>
|
| 683 |
+
<li>Type: "prod", "dev", "optional", or "peer" (can be set multiple
|
| 684 |
+
times)</li>
|
| 685 |
+
</ul>
|
| 686 |
+
<p>Option that allows for defining which types of dependencies to
|
| 687 |
+
install.</p>
|
| 688 |
+
<p>This is the inverse of <code>--omit=<type></code>.</p>
|
| 689 |
+
<p>Dependency types specified in <code>--include</code> will not be omitted,
|
| 690 |
+
regardless of the order in which omit/include are specified on the
|
| 691 |
+
command-line.</p>
|
| 692 |
+
<h4 id="include-staged"><code>include-staged</code></h4>
|
| 693 |
+
<ul>
|
| 694 |
+
<li>Default: false</li>
|
| 695 |
+
<li>Type: Boolean</li>
|
| 696 |
+
</ul>
|
| 697 |
+
<p>Allow installing "staged" published packages, as defined by <a href="https://github.com/npm/rfcs/pull/92">npm RFC
|
| 698 |
+
PR #92</a>.</p>
|
| 699 |
+
<p>This is experimental, and not implemented by the npm public registry.</p>
|
| 700 |
+
<h4 id="include-workspace-root"><code>include-workspace-root</code></h4>
|
| 701 |
+
<ul>
|
| 702 |
+
<li>Default: false</li>
|
| 703 |
+
<li>Type: Boolean</li>
|
| 704 |
+
</ul>
|
| 705 |
+
<p>Include the workspace root when workspaces are enabled for a command.</p>
|
| 706 |
+
<p>When false, specifying individual workspaces via the <code>workspace</code>
|
| 707 |
+
config, or all workspaces via the <code>workspaces</code> flag, will cause npm
|
| 708 |
+
to operate only on the specified workspaces, and not on the root
|
| 709 |
+
project.</p>
|
| 710 |
+
<p>This value is not exported to the environment for child processes.</p>
|
| 711 |
+
<h4 id="init-author-email"><code>init-author-email</code></h4>
|
| 712 |
+
<ul>
|
| 713 |
+
<li>Default: ""</li>
|
| 714 |
+
<li>Type: String</li>
|
| 715 |
+
</ul>
|
| 716 |
+
<p>The value <code>npm init</code> should use by default for the package author's
|
| 717 |
+
email.</p>
|
| 718 |
+
<h4 id="init-author-name"><code>init-author-name</code></h4>
|
| 719 |
+
<ul>
|
| 720 |
+
<li>Default: ""</li>
|
| 721 |
+
<li>Type: String</li>
|
| 722 |
+
</ul>
|
| 723 |
+
<p>The value <code>npm init</code> should use by default for the package author's
|
| 724 |
+
name.</p>
|
| 725 |
+
<h4 id="init-author-url"><code>init-author-url</code></h4>
|
| 726 |
+
<ul>
|
| 727 |
+
<li>Default: ""</li>
|
| 728 |
+
<li>Type: "" or URL</li>
|
| 729 |
+
</ul>
|
| 730 |
+
<p>The value <code>npm init</code> should use by default for the package author's
|
| 731 |
+
homepage.</p>
|
| 732 |
+
<h4 id="init-license"><code>init-license</code></h4>
|
| 733 |
+
<ul>
|
| 734 |
+
<li>Default: "ISC"</li>
|
| 735 |
+
<li>Type: String</li>
|
| 736 |
+
</ul>
|
| 737 |
+
<p>The value <code>npm init</code> should use by default for the package license.</p>
|
| 738 |
+
<h4 id="init-module"><code>init-module</code></h4>
|
| 739 |
+
<ul>
|
| 740 |
+
<li>Default: "~/.npm-init.js"</li>
|
| 741 |
+
<li>Type: Path</li>
|
| 742 |
+
</ul>
|
| 743 |
+
<p>A module that will be loaded by the <code>npm init</code> command. See the
|
| 744 |
+
documentation for the
|
| 745 |
+
<a href="https://github.com/npm/init-package-json">init-package-json</a> module
|
| 746 |
+
for more information, or <a href="../commands/npm-init.html">npm init</a>.</p>
|
| 747 |
+
<h4 id="init-private"><code>init-private</code></h4>
|
| 748 |
+
<ul>
|
| 749 |
+
<li>Default: false</li>
|
| 750 |
+
<li>Type: Boolean</li>
|
| 751 |
+
</ul>
|
| 752 |
+
<p>The value <code>npm init</code> should use by default for the package's private
|
| 753 |
+
flag.</p>
|
| 754 |
+
<h4 id="init-type"><code>init-type</code></h4>
|
| 755 |
+
<ul>
|
| 756 |
+
<li>Default: "commonjs"</li>
|
| 757 |
+
<li>Type: String</li>
|
| 758 |
+
</ul>
|
| 759 |
+
<p>The value that <code>npm init</code> should use by default for the package.json
|
| 760 |
+
type field.</p>
|
| 761 |
+
<h4 id="init-version"><code>init-version</code></h4>
|
| 762 |
+
<ul>
|
| 763 |
+
<li>Default: "1.0.0"</li>
|
| 764 |
+
<li>Type: SemVer string</li>
|
| 765 |
+
</ul>
|
| 766 |
+
<p>The value that <code>npm init</code> should use by default for the package
|
| 767 |
+
version number, if not already set in package.json.</p>
|
| 768 |
+
<h4 id="install-links"><code>install-links</code></h4>
|
| 769 |
+
<ul>
|
| 770 |
+
<li>Default: false</li>
|
| 771 |
+
<li>Type: Boolean</li>
|
| 772 |
+
</ul>
|
| 773 |
+
<p>When set file: protocol dependencies will be packed and installed as
|
| 774 |
+
regular dependencies instead of creating a symlink. This option has
|
| 775 |
+
no effect on workspaces.</p>
|
| 776 |
+
<h4 id="install-strategy"><code>install-strategy</code></h4>
|
| 777 |
+
<ul>
|
| 778 |
+
<li>Default: "hoisted"</li>
|
| 779 |
+
<li>Type: "hoisted", "nested", "shallow", or "linked"</li>
|
| 780 |
+
</ul>
|
| 781 |
+
<p>Sets the strategy for installing packages in node_modules. hoisted
|
| 782 |
+
(default): Install non-duplicated in top-level, and duplicated as
|
| 783 |
+
necessary within directory structure. nested: (formerly
|
| 784 |
+
--legacy-bundling) install in place, no hoisting. shallow (formerly
|
| 785 |
+
--global-style) only install direct deps at top-level. linked:
|
| 786 |
+
(experimental) install in node_modules/.store, link in place,
|
| 787 |
+
unhoisted.</p>
|
| 788 |
+
<h4 id="json"><code>json</code></h4>
|
| 789 |
+
<ul>
|
| 790 |
+
<li>Default: false</li>
|
| 791 |
+
<li>Type: Boolean</li>
|
| 792 |
+
</ul>
|
| 793 |
+
<p>Whether or not to output JSON data, rather than the normal output.</p>
|
| 794 |
+
<ul>
|
| 795 |
+
<li>In <code>npm pkg set</code> it enables parsing set values with JSON.parse()
|
| 796 |
+
before saving them to your <code>package.json</code>.</li>
|
| 797 |
+
</ul>
|
| 798 |
+
<p>Not supported by all npm commands.</p>
|
| 799 |
+
<h4 id="legacy-peer-deps"><code>legacy-peer-deps</code></h4>
|
| 800 |
+
<ul>
|
| 801 |
+
<li>Default: false</li>
|
| 802 |
+
<li>Type: Boolean</li>
|
| 803 |
+
</ul>
|
| 804 |
+
<p>Causes npm to completely ignore <code>peerDependencies</code> when building a
|
| 805 |
+
package tree, as in npm versions 3 through 6.</p>
|
| 806 |
+
<p>If a package cannot be installed because of overly strict
|
| 807 |
+
<code>peerDependencies</code> that collide, it provides a way to move forward
|
| 808 |
+
resolving the situation.</p>
|
| 809 |
+
<p>This differs from <code>--omit=peer</code>, in that <code>--omit=peer</code> will avoid
|
| 810 |
+
unpacking <code>peerDependencies</code> on disk, but will still design a tree
|
| 811 |
+
such that <code>peerDependencies</code> <em>could</em> be unpacked in a correct place.</p>
|
| 812 |
+
<p>Use of <code>legacy-peer-deps</code> is not recommended, as it will not enforce
|
| 813 |
+
the <code>peerDependencies</code> contract that meta-dependencies may rely on.</p>
|
| 814 |
+
<h4 id="libc"><code>libc</code></h4>
|
| 815 |
+
<ul>
|
| 816 |
+
<li>Default: null</li>
|
| 817 |
+
<li>Type: null or String</li>
|
| 818 |
+
</ul>
|
| 819 |
+
<p>Override libc of native modules to install. Acceptable values are
|
| 820 |
+
same as <code>libc</code> field of package.json</p>
|
| 821 |
+
<h4 id="link"><code>link</code></h4>
|
| 822 |
+
<ul>
|
| 823 |
+
<li>Default: false</li>
|
| 824 |
+
<li>Type: Boolean</li>
|
| 825 |
+
</ul>
|
| 826 |
+
<p>Used with <code>npm ls</code>, limiting output to only those packages that are
|
| 827 |
+
linked.</p>
|
| 828 |
+
<h4 id="local-address"><code>local-address</code></h4>
|
| 829 |
+
<ul>
|
| 830 |
+
<li>Default: null</li>
|
| 831 |
+
<li>Type: IP Address</li>
|
| 832 |
+
</ul>
|
| 833 |
+
<p>The IP address of the local interface to use when making connections
|
| 834 |
+
to the npm registry. Must be IPv4 in versions of Node prior to 0.12.</p>
|
| 835 |
+
<h4 id="location"><code>location</code></h4>
|
| 836 |
+
<ul>
|
| 837 |
+
<li>Default: "user" unless <code>--global</code> is passed, which will also set this
|
| 838 |
+
value to "global"</li>
|
| 839 |
+
<li>Type: "global", "user", or "project"</li>
|
| 840 |
+
</ul>
|
| 841 |
+
<p>When passed to <code>npm config</code> this refers to which config file to use.</p>
|
| 842 |
+
<p>When set to "global" mode, packages are installed into the <code>prefix</code>
|
| 843 |
+
folder instead of the current working directory. See
|
| 844 |
+
<a href="../configuring-npm/folders.html">folders</a> for more on the differences in
|
| 845 |
+
behavior.</p>
|
| 846 |
+
<ul>
|
| 847 |
+
<li>packages are installed into the <code>{prefix}/lib/node_modules</code> folder,
|
| 848 |
+
instead of the current working directory.</li>
|
| 849 |
+
<li>bin files are linked to <code>{prefix}/bin</code></li>
|
| 850 |
+
<li>man pages are linked to <code>{prefix}/share/man</code></li>
|
| 851 |
+
</ul>
|
| 852 |
+
<h4 id="lockfile-version"><code>lockfile-version</code></h4>
|
| 853 |
+
<ul>
|
| 854 |
+
<li>Default: Version 3 if no lockfile, auto-converting v1 lockfiles to
|
| 855 |
+
v3; otherwise, maintain current lockfile version.</li>
|
| 856 |
+
<li>Type: null, 1, 2, 3, "1", "2", or "3"</li>
|
| 857 |
+
</ul>
|
| 858 |
+
<p>Set the lockfile format version to be used in package-lock.json and
|
| 859 |
+
npm-shrinkwrap-json files. Possible options are:</p>
|
| 860 |
+
<p>1: The lockfile version used by npm versions 5 and 6. Lacks some data
|
| 861 |
+
that is used during the install, resulting in slower and possibly
|
| 862 |
+
less deterministic installs. Prevents lockfile churn when
|
| 863 |
+
interoperating with older npm versions.</p>
|
| 864 |
+
<p>2: The default lockfile version used by npm version 7 and 8. Includes
|
| 865 |
+
both the version 1 lockfile data and version 3 lockfile data, for
|
| 866 |
+
maximum determinism and interoperability, at the expense of more
|
| 867 |
+
bytes on disk.</p>
|
| 868 |
+
<p>3: Only the new lockfile information introduced in npm version 7.
|
| 869 |
+
Smaller on disk than lockfile version 2, but not interoperable with
|
| 870 |
+
older npm versions. Ideal if all users are on npm version 7 and
|
| 871 |
+
higher.</p>
|
| 872 |
+
<h4 id="loglevel"><code>loglevel</code></h4>
|
| 873 |
+
<ul>
|
| 874 |
+
<li>Default: "notice"</li>
|
| 875 |
+
<li>Type: "silent", "error", "warn", "notice", "http", "info", "verbose",
|
| 876 |
+
or "silly"</li>
|
| 877 |
+
</ul>
|
| 878 |
+
<p>What level of logs to report. All logs are written to a debug log,
|
| 879 |
+
with the path to that file printed if the execution of a command
|
| 880 |
+
fails.</p>
|
| 881 |
+
<p>Any logs of a higher level than the setting are shown. The default is
|
| 882 |
+
"notice".</p>
|
| 883 |
+
<p>See also the <code>foreground-scripts</code> config.</p>
|
| 884 |
+
<h4 id="logs-dir"><code>logs-dir</code></h4>
|
| 885 |
+
<ul>
|
| 886 |
+
<li>Default: A directory named <code>_logs</code> inside the cache</li>
|
| 887 |
+
<li>Type: null or Path</li>
|
| 888 |
+
</ul>
|
| 889 |
+
<p>The location of npm's log directory. See <a href="../using-npm/logging.html"><code>npm logging</code></a> for more information.</p>
|
| 890 |
+
<h4 id="logs-max"><code>logs-max</code></h4>
|
| 891 |
+
<ul>
|
| 892 |
+
<li>Default: 10</li>
|
| 893 |
+
<li>Type: Number</li>
|
| 894 |
+
</ul>
|
| 895 |
+
<p>The maximum number of log files to store.</p>
|
| 896 |
+
<p>If set to 0, no log files will be written for the current run.</p>
|
| 897 |
+
<h4 id="long"><code>long</code></h4>
|
| 898 |
+
<ul>
|
| 899 |
+
<li>Default: false</li>
|
| 900 |
+
<li>Type: Boolean</li>
|
| 901 |
+
</ul>
|
| 902 |
+
<p>Show extended information in <code>ls</code>, <code>search</code>, and <code>help-search</code>.</p>
|
| 903 |
+
<h4 id="maxsockets"><code>maxsockets</code></h4>
|
| 904 |
+
<ul>
|
| 905 |
+
<li>Default: 15</li>
|
| 906 |
+
<li>Type: Number</li>
|
| 907 |
+
</ul>
|
| 908 |
+
<p>The maximum number of connections to use per origin
|
| 909 |
+
(protocol/host/port combination).</p>
|
| 910 |
+
<h4 id="message"><code>message</code></h4>
|
| 911 |
+
<ul>
|
| 912 |
+
<li>Default: "%s"</li>
|
| 913 |
+
<li>Type: String</li>
|
| 914 |
+
</ul>
|
| 915 |
+
<p>Commit message which is used by <code>npm version</code> when creating version
|
| 916 |
+
commit.</p>
|
| 917 |
+
<p>Any "%s" in the message will be replaced with the version number.</p>
|
| 918 |
+
<h4 id="node-gyp"><code>node-gyp</code></h4>
|
| 919 |
+
<ul>
|
| 920 |
+
<li>Default: The path to the node-gyp bin that ships with npm</li>
|
| 921 |
+
<li>Type: Path</li>
|
| 922 |
+
</ul>
|
| 923 |
+
<p>This is the location of the "node-gyp" bin. By default it uses one
|
| 924 |
+
that ships with npm itself.</p>
|
| 925 |
+
<p>You can use this config to specify your own "node-gyp" to run when it
|
| 926 |
+
is required to build a package.</p>
|
| 927 |
+
<h4 id="node-options"><code>node-options</code></h4>
|
| 928 |
+
<ul>
|
| 929 |
+
<li>Default: null</li>
|
| 930 |
+
<li>Type: null or String</li>
|
| 931 |
+
</ul>
|
| 932 |
+
<p>Options to pass through to Node.js via the <code>NODE_OPTIONS</code> environment
|
| 933 |
+
variable. This does not impact how npm itself is executed but it does
|
| 934 |
+
impact how lifecycle scripts are called.</p>
|
| 935 |
+
<h4 id="noproxy"><code>noproxy</code></h4>
|
| 936 |
+
<ul>
|
| 937 |
+
<li>Default: The value of the NO_PROXY environment variable</li>
|
| 938 |
+
<li>Type: String (can be set multiple times)</li>
|
| 939 |
+
</ul>
|
| 940 |
+
<p>Domain extensions that should bypass any proxies.</p>
|
| 941 |
+
<p>Also accepts a comma-delimited string.</p>
|
| 942 |
+
<h4 id="offline"><code>offline</code></h4>
|
| 943 |
+
<ul>
|
| 944 |
+
<li>Default: false</li>
|
| 945 |
+
<li>Type: Boolean</li>
|
| 946 |
+
</ul>
|
| 947 |
+
<p>Force offline mode: no network requests will be done during install.
|
| 948 |
+
To allow the CLI to fill in missing cache data, see
|
| 949 |
+
<code>--prefer-offline</code>.</p>
|
| 950 |
+
<h4 id="omit"><code>omit</code></h4>
|
| 951 |
+
<ul>
|
| 952 |
+
<li>Default: 'dev' if the <code>NODE_ENV</code> environment variable is set to
|
| 953 |
+
'production'; otherwise, empty.</li>
|
| 954 |
+
<li>Type: "dev", "optional", or "peer" (can be set multiple times)</li>
|
| 955 |
+
</ul>
|
| 956 |
+
<p>Dependency types to omit from the installation tree on disk.</p>
|
| 957 |
+
<p>Note that these dependencies <em>are</em> still resolved and added to the
|
| 958 |
+
<code>package-lock.json</code> or <code>npm-shrinkwrap.json</code> file. They are just not
|
| 959 |
+
physically installed on disk.</p>
|
| 960 |
+
<p>If a package type appears in both the <code>--include</code> and <code>--omit</code> lists,
|
| 961 |
+
then it will be included.</p>
|
| 962 |
+
<p>If the resulting omit list includes <code>'dev'</code>, then the <code>NODE_ENV</code>
|
| 963 |
+
environment variable will be set to <code>'production'</code> for all lifecycle
|
| 964 |
+
scripts.</p>
|
| 965 |
+
<h4 id="omit-lockfile-registry-resolved"><code>omit-lockfile-registry-resolved</code></h4>
|
| 966 |
+
<ul>
|
| 967 |
+
<li>Default: false</li>
|
| 968 |
+
<li>Type: Boolean</li>
|
| 969 |
+
</ul>
|
| 970 |
+
<p>This option causes npm to create lock files without a <code>resolved</code> key
|
| 971 |
+
for registry dependencies. Subsequent installs will need to resolve
|
| 972 |
+
tarball endpoints with the configured registry, likely resulting in a
|
| 973 |
+
longer install time.</p>
|
| 974 |
+
<h4 id="os"><code>os</code></h4>
|
| 975 |
+
<ul>
|
| 976 |
+
<li>Default: null</li>
|
| 977 |
+
<li>Type: null or String</li>
|
| 978 |
+
</ul>
|
| 979 |
+
<p>Override OS of native modules to install. Acceptable values are same
|
| 980 |
+
as <code>os</code> field of package.json, which comes from <code>process.platform</code>.</p>
|
| 981 |
+
<h4 id="otp"><code>otp</code></h4>
|
| 982 |
+
<ul>
|
| 983 |
+
<li>Default: null</li>
|
| 984 |
+
<li>Type: null or String</li>
|
| 985 |
+
</ul>
|
| 986 |
+
<p>This is a one-time password from a two-factor authenticator. It's
|
| 987 |
+
needed when publishing or changing package permissions with <code>npm access</code>.</p>
|
| 988 |
+
<p>If not set, and a registry response fails with a challenge for a
|
| 989 |
+
one-time password, npm will prompt on the command line for one.</p>
|
| 990 |
+
<h4 id="pack-destination"><code>pack-destination</code></h4>
|
| 991 |
+
<ul>
|
| 992 |
+
<li>Default: "."</li>
|
| 993 |
+
<li>Type: String</li>
|
| 994 |
+
</ul>
|
| 995 |
+
<p>Directory in which <code>npm pack</code> will save tarballs.</p>
|
| 996 |
+
<h4 id="package"><code>package</code></h4>
|
| 997 |
+
<ul>
|
| 998 |
+
<li>Default:</li>
|
| 999 |
+
<li>Type: String (can be set multiple times)</li>
|
| 1000 |
+
</ul>
|
| 1001 |
+
<p>The package or packages to install for <a href="../commands/npm-exec.html"><code>npm exec</code></a></p>
|
| 1002 |
+
<h4 id="package-lock"><code>package-lock</code></h4>
|
| 1003 |
+
<ul>
|
| 1004 |
+
<li>Default: true</li>
|
| 1005 |
+
<li>Type: Boolean</li>
|
| 1006 |
+
</ul>
|
| 1007 |
+
<p>If set to false, then ignore <code>package-lock.json</code> files when
|
| 1008 |
+
installing. This will also prevent <em>writing</em> <code>package-lock.json</code> if
|
| 1009 |
+
<code>save</code> is true.</p>
|
| 1010 |
+
<h4 id="package-lock-only"><code>package-lock-only</code></h4>
|
| 1011 |
+
<ul>
|
| 1012 |
+
<li>Default: false</li>
|
| 1013 |
+
<li>Type: Boolean</li>
|
| 1014 |
+
</ul>
|
| 1015 |
+
<p>If set to true, the current operation will only use the
|
| 1016 |
+
<code>package-lock.json</code>, ignoring <code>node_modules</code>.</p>
|
| 1017 |
+
<p>For <code>update</code> this means only the <code>package-lock.json</code> will be updated,
|
| 1018 |
+
instead of checking <code>node_modules</code> and downloading dependencies.</p>
|
| 1019 |
+
<p>For <code>list</code> this means the output will be based on the tree described
|
| 1020 |
+
by the <code>package-lock.json</code>, rather than the contents of
|
| 1021 |
+
<code>node_modules</code>.</p>
|
| 1022 |
+
<h4 id="parseable"><code>parseable</code></h4>
|
| 1023 |
+
<ul>
|
| 1024 |
+
<li>Default: false</li>
|
| 1025 |
+
<li>Type: Boolean</li>
|
| 1026 |
+
</ul>
|
| 1027 |
+
<p>Output parseable results from commands that write to standard output.
|
| 1028 |
+
For <code>npm search</code>, this will be tab-separated table format.</p>
|
| 1029 |
+
<h4 id="prefer-dedupe"><code>prefer-dedupe</code></h4>
|
| 1030 |
+
<ul>
|
| 1031 |
+
<li>Default: false</li>
|
| 1032 |
+
<li>Type: Boolean</li>
|
| 1033 |
+
</ul>
|
| 1034 |
+
<p>Prefer to deduplicate packages if possible, rather than choosing a
|
| 1035 |
+
newer version of a dependency.</p>
|
| 1036 |
+
<h4 id="prefer-offline"><code>prefer-offline</code></h4>
|
| 1037 |
+
<ul>
|
| 1038 |
+
<li>Default: false</li>
|
| 1039 |
+
<li>Type: Boolean</li>
|
| 1040 |
+
</ul>
|
| 1041 |
+
<p>If true, staleness checks for cached data will be bypassed, but
|
| 1042 |
+
missing data will be requested from the server. To force full offline
|
| 1043 |
+
mode, use <code>--offline</code>.</p>
|
| 1044 |
+
<h4 id="prefer-online"><code>prefer-online</code></h4>
|
| 1045 |
+
<ul>
|
| 1046 |
+
<li>Default: false</li>
|
| 1047 |
+
<li>Type: Boolean</li>
|
| 1048 |
+
</ul>
|
| 1049 |
+
<p>If true, staleness checks for cached data will be forced, making the
|
| 1050 |
+
CLI look for updates immediately even for fresh package data.</p>
|
| 1051 |
+
<h4 id="prefix"><code>prefix</code></h4>
|
| 1052 |
+
<ul>
|
| 1053 |
+
<li>Default: In global mode, the folder where the node executable is
|
| 1054 |
+
installed. Otherwise, the nearest parent folder containing either a
|
| 1055 |
+
package.json file or a node_modules folder.</li>
|
| 1056 |
+
<li>Type: Path</li>
|
| 1057 |
+
</ul>
|
| 1058 |
+
<p>The location to install global items. If set on the command line,
|
| 1059 |
+
then it forces non-global commands to run in the specified folder.</p>
|
| 1060 |
+
<h4 id="preid"><code>preid</code></h4>
|
| 1061 |
+
<ul>
|
| 1062 |
+
<li>Default: ""</li>
|
| 1063 |
+
<li>Type: String</li>
|
| 1064 |
+
</ul>
|
| 1065 |
+
<p>The "prerelease identifier" to use as a prefix for the "prerelease"
|
| 1066 |
+
part of a semver. Like the <code>rc</code> in <code>1.2.0-rc.8</code>.</p>
|
| 1067 |
+
<h4 id="progress"><code>progress</code></h4>
|
| 1068 |
+
<ul>
|
| 1069 |
+
<li>Default: <code>true</code> when not in CI and both stderr and stdout are TTYs
|
| 1070 |
+
and not in a dumb terminal</li>
|
| 1071 |
+
<li>Type: Boolean</li>
|
| 1072 |
+
</ul>
|
| 1073 |
+
<p>When set to <code>true</code>, npm will display a progress bar during time
|
| 1074 |
+
intensive operations, if <code>process.stderr</code> and <code>process.stdout</code> are a
|
| 1075 |
+
TTY.</p>
|
| 1076 |
+
<p>Set to <code>false</code> to suppress the progress bar.</p>
|
| 1077 |
+
<h4 id="provenance"><code>provenance</code></h4>
|
| 1078 |
+
<ul>
|
| 1079 |
+
<li>Default: false</li>
|
| 1080 |
+
<li>Type: Boolean</li>
|
| 1081 |
+
</ul>
|
| 1082 |
+
<p>When publishing from a supported cloud CI/CD system, the package will
|
| 1083 |
+
be publicly linked to where it was built and published from.</p>
|
| 1084 |
+
<p>This config cannot be used with: <code>provenance-file</code></p>
|
| 1085 |
+
<h4 id="provenance-file"><code>provenance-file</code></h4>
|
| 1086 |
+
<ul>
|
| 1087 |
+
<li>Default: null</li>
|
| 1088 |
+
<li>Type: Path</li>
|
| 1089 |
+
</ul>
|
| 1090 |
+
<p>When publishing, the provenance bundle at the given path will be
|
| 1091 |
+
used.</p>
|
| 1092 |
+
<p>This config cannot be used with: <code>provenance</code></p>
|
| 1093 |
+
<h4 id="proxy"><code>proxy</code></h4>
|
| 1094 |
+
<ul>
|
| 1095 |
+
<li>Default: null</li>
|
| 1096 |
+
<li>Type: null, false, or URL</li>
|
| 1097 |
+
</ul>
|
| 1098 |
+
<p>A proxy to use for outgoing http requests. If the <code>HTTP_PROXY</code> or
|
| 1099 |
+
<code>http_proxy</code> environment variables are set, proxy settings will be
|
| 1100 |
+
honored by the underlying <code>request</code> library.</p>
|
| 1101 |
+
<h4 id="read-only"><code>read-only</code></h4>
|
| 1102 |
+
<ul>
|
| 1103 |
+
<li>Default: false</li>
|
| 1104 |
+
<li>Type: Boolean</li>
|
| 1105 |
+
</ul>
|
| 1106 |
+
<p>This is used to mark a token as unable to publish when configuring
|
| 1107 |
+
limited access tokens with the <code>npm token create</code> command.</p>
|
| 1108 |
+
<h4 id="rebuild-bundle"><code>rebuild-bundle</code></h4>
|
| 1109 |
+
<ul>
|
| 1110 |
+
<li>Default: true</li>
|
| 1111 |
+
<li>Type: Boolean</li>
|
| 1112 |
+
</ul>
|
| 1113 |
+
<p>Rebuild bundled dependencies after installation.</p>
|
| 1114 |
+
<h4 id="registry"><code>registry</code></h4>
|
| 1115 |
+
<ul>
|
| 1116 |
+
<li>Default: "<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>"</li>
|
| 1117 |
+
<li>Type: URL</li>
|
| 1118 |
+
</ul>
|
| 1119 |
+
<p>The base URL of the npm registry.</p>
|
| 1120 |
+
<h4 id="replace-registry-host"><code>replace-registry-host</code></h4>
|
| 1121 |
+
<ul>
|
| 1122 |
+
<li>Default: "npmjs"</li>
|
| 1123 |
+
<li>Type: "npmjs", "never", "always", or String</li>
|
| 1124 |
+
</ul>
|
| 1125 |
+
<p>Defines behavior for replacing the registry host in a lockfile with
|
| 1126 |
+
the configured registry.</p>
|
| 1127 |
+
<p>The default behavior is to replace package dist URLs from the default
|
| 1128 |
+
registry (<a href="https://registry.npmjs.org">https://registry.npmjs.org</a>) to the configured registry. If
|
| 1129 |
+
set to "never", then use the registry value. If set to "always", then
|
| 1130 |
+
replace the registry host with the configured host every time.</p>
|
| 1131 |
+
<p>You may also specify a bare hostname (e.g., "registry.npmjs.org").</p>
|
| 1132 |
+
<h4 id="save"><code>save</code></h4>
|
| 1133 |
+
<ul>
|
| 1134 |
+
<li>Default: <code>true</code> unless when using <code>npm update</code> where it defaults to
|
| 1135 |
+
<code>false</code></li>
|
| 1136 |
+
<li>Type: Boolean</li>
|
| 1137 |
+
</ul>
|
| 1138 |
+
<p>Save installed packages to a <code>package.json</code> file as dependencies.</p>
|
| 1139 |
+
<p>When used with the <code>npm rm</code> command, removes the dependency from
|
| 1140 |
+
<code>package.json</code>.</p>
|
| 1141 |
+
<p>Will also prevent writing to <code>package-lock.json</code> if set to <code>false</code>.</p>
|
| 1142 |
+
<h4 id="save-bundle"><code>save-bundle</code></h4>
|
| 1143 |
+
<ul>
|
| 1144 |
+
<li>Default: false</li>
|
| 1145 |
+
<li>Type: Boolean</li>
|
| 1146 |
+
</ul>
|
| 1147 |
+
<p>If a package would be saved at install time by the use of <code>--save</code>,
|
| 1148 |
+
<code>--save-dev</code>, or <code>--save-optional</code>, then also put it in the
|
| 1149 |
+
<code>bundleDependencies</code> list.</p>
|
| 1150 |
+
<p>Ignored if <code>--save-peer</code> is set, since peerDependencies cannot be
|
| 1151 |
+
bundled.</p>
|
| 1152 |
+
<h4 id="save-dev"><code>save-dev</code></h4>
|
| 1153 |
+
<ul>
|
| 1154 |
+
<li>Default: false</li>
|
| 1155 |
+
<li>Type: Boolean</li>
|
| 1156 |
+
</ul>
|
| 1157 |
+
<p>Save installed packages to a package.json file as <code>devDependencies</code>.</p>
|
| 1158 |
+
<p>This config cannot be used with: <code>save-optional</code>, <code>save-peer</code>,
|
| 1159 |
+
<code>save-prod</code></p>
|
| 1160 |
+
<h4 id="save-exact"><code>save-exact</code></h4>
|
| 1161 |
+
<ul>
|
| 1162 |
+
<li>Default: false</li>
|
| 1163 |
+
<li>Type: Boolean</li>
|
| 1164 |
+
</ul>
|
| 1165 |
+
<p>Dependencies saved to package.json will be configured with an exact
|
| 1166 |
+
version rather than using npm's default semver range operator.</p>
|
| 1167 |
+
<h4 id="save-optional"><code>save-optional</code></h4>
|
| 1168 |
+
<ul>
|
| 1169 |
+
<li>Default: false</li>
|
| 1170 |
+
<li>Type: Boolean</li>
|
| 1171 |
+
</ul>
|
| 1172 |
+
<p>Save installed packages to a package.json file as
|
| 1173 |
+
<code>optionalDependencies</code>.</p>
|
| 1174 |
+
<p>This config cannot be used with: <code>save-dev</code>, <code>save-peer</code>, <code>save-prod</code></p>
|
| 1175 |
+
<h4 id="save-peer"><code>save-peer</code></h4>
|
| 1176 |
+
<ul>
|
| 1177 |
+
<li>Default: false</li>
|
| 1178 |
+
<li>Type: Boolean</li>
|
| 1179 |
+
</ul>
|
| 1180 |
+
<p>Save installed packages to a package.json file as <code>peerDependencies</code></p>
|
| 1181 |
+
<p>This config cannot be used with: <code>save-dev</code>, <code>save-optional</code>,
|
| 1182 |
+
<code>save-prod</code></p>
|
| 1183 |
+
<h4 id="save-prefix"><code>save-prefix</code></h4>
|
| 1184 |
+
<ul>
|
| 1185 |
+
<li>Default: "^"</li>
|
| 1186 |
+
<li>Type: String</li>
|
| 1187 |
+
</ul>
|
| 1188 |
+
<p>Configure how versions of packages installed to a package.json file
|
| 1189 |
+
via <code>--save</code> or <code>--save-dev</code> get prefixed.</p>
|
| 1190 |
+
<p>For example if a package has version <code>1.2.3</code>, by default its version
|
| 1191 |
+
is set to <code>^1.2.3</code> which allows minor upgrades for that package, but
|
| 1192 |
+
after <code>npm config set save-prefix='~'</code> it would be set to <code>~1.2.3</code>
|
| 1193 |
+
which only allows patch upgrades.</p>
|
| 1194 |
+
<h4 id="save-prod"><code>save-prod</code></h4>
|
| 1195 |
+
<ul>
|
| 1196 |
+
<li>Default: false</li>
|
| 1197 |
+
<li>Type: Boolean</li>
|
| 1198 |
+
</ul>
|
| 1199 |
+
<p>Save installed packages into <code>dependencies</code> specifically. This is
|
| 1200 |
+
useful if a package already exists in <code>devDependencies</code> or
|
| 1201 |
+
<code>optionalDependencies</code>, but you want to move it to be a non-optional
|
| 1202 |
+
production dependency.</p>
|
| 1203 |
+
<p>This is the default behavior if <code>--save</code> is true, and neither
|
| 1204 |
+
<code>--save-dev</code> or <code>--save-optional</code> are true.</p>
|
| 1205 |
+
<p>This config cannot be used with: <code>save-dev</code>, <code>save-optional</code>,
|
| 1206 |
+
<code>save-peer</code></p>
|
| 1207 |
+
<h4 id="sbom-format"><code>sbom-format</code></h4>
|
| 1208 |
+
<ul>
|
| 1209 |
+
<li>Default: null</li>
|
| 1210 |
+
<li>Type: "cyclonedx" or "spdx"</li>
|
| 1211 |
+
</ul>
|
| 1212 |
+
<p>SBOM format to use when generating SBOMs.</p>
|
| 1213 |
+
<h4 id="sbom-type"><code>sbom-type</code></h4>
|
| 1214 |
+
<ul>
|
| 1215 |
+
<li>Default: "library"</li>
|
| 1216 |
+
<li>Type: "library", "application", or "framework"</li>
|
| 1217 |
+
</ul>
|
| 1218 |
+
<p>The type of package described by the generated SBOM. For SPDX, this
|
| 1219 |
+
is the value for the <code>primaryPackagePurpose</code> field. For CycloneDX,
|
| 1220 |
+
this is the value for the <code>type</code> field.</p>
|
| 1221 |
+
<h4 id="scope"><code>scope</code></h4>
|
| 1222 |
+
<ul>
|
| 1223 |
+
<li>Default: the scope of the current project, if any, or ""</li>
|
| 1224 |
+
<li>Type: String</li>
|
| 1225 |
+
</ul>
|
| 1226 |
+
<p>Associate an operation with a scope for a scoped registry.</p>
|
| 1227 |
+
<p>Useful when logging in to or out of a private registry:</p>
|
| 1228 |
+
<pre><code># log in, linking the scope to the custom registry
|
| 1229 |
+
npm login --scope=@mycorp --registry=https://registry.mycorp.com
|
| 1230 |
+
|
| 1231 |
+
# log out, removing the link and the auth token
|
| 1232 |
+
npm logout --scope=@mycorp
|
| 1233 |
+
</code></pre>
|
| 1234 |
+
<p>This will cause <code>@mycorp</code> to be mapped to the registry for future
|
| 1235 |
+
installation of packages specified according to the pattern
|
| 1236 |
+
<code>@mycorp/package</code>.</p>
|
| 1237 |
+
<p>This will also cause <code>npm init</code> to create a scoped package.</p>
|
| 1238 |
+
<pre><code># accept all defaults, and create a package named "@foo/whatever",
|
| 1239 |
+
# instead of just named "whatever"
|
| 1240 |
+
npm init --scope=@foo --yes
|
| 1241 |
+
</code></pre>
|
| 1242 |
+
<h4 id="script-shell"><code>script-shell</code></h4>
|
| 1243 |
+
<ul>
|
| 1244 |
+
<li>Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows</li>
|
| 1245 |
+
<li>Type: null or String</li>
|
| 1246 |
+
</ul>
|
| 1247 |
+
<p>The shell to use for scripts run with the <code>npm exec</code>, <code>npm run</code> and
|
| 1248 |
+
<code>npm init <package-spec></code> commands.</p>
|
| 1249 |
+
<h4 id="searchexclude"><code>searchexclude</code></h4>
|
| 1250 |
+
<ul>
|
| 1251 |
+
<li>Default: ""</li>
|
| 1252 |
+
<li>Type: String</li>
|
| 1253 |
+
</ul>
|
| 1254 |
+
<p>Space-separated options that limit the results from search.</p>
|
| 1255 |
+
<h4 id="searchlimit"><code>searchlimit</code></h4>
|
| 1256 |
+
<ul>
|
| 1257 |
+
<li>Default: 20</li>
|
| 1258 |
+
<li>Type: Number</li>
|
| 1259 |
+
</ul>
|
| 1260 |
+
<p>Number of items to limit search results to. Will not apply at all to
|
| 1261 |
+
legacy searches.</p>
|
| 1262 |
+
<h4 id="searchopts"><code>searchopts</code></h4>
|
| 1263 |
+
<ul>
|
| 1264 |
+
<li>Default: ""</li>
|
| 1265 |
+
<li>Type: String</li>
|
| 1266 |
+
</ul>
|
| 1267 |
+
<p>Space-separated options that are always passed to search.</p>
|
| 1268 |
+
<h4 id="searchstaleness"><code>searchstaleness</code></h4>
|
| 1269 |
+
<ul>
|
| 1270 |
+
<li>Default: 900</li>
|
| 1271 |
+
<li>Type: Number</li>
|
| 1272 |
+
</ul>
|
| 1273 |
+
<p>The age of the cache, in seconds, before another registry request is
|
| 1274 |
+
made if using legacy search endpoint.</p>
|
| 1275 |
+
<h4 id="shell"><code>shell</code></h4>
|
| 1276 |
+
<ul>
|
| 1277 |
+
<li>Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe"
|
| 1278 |
+
on Windows</li>
|
| 1279 |
+
<li>Type: String</li>
|
| 1280 |
+
</ul>
|
| 1281 |
+
<p>The shell to run for the <code>npm explore</code> command.</p>
|
| 1282 |
+
<h4 id="sign-git-commit"><code>sign-git-commit</code></h4>
|
| 1283 |
+
<ul>
|
| 1284 |
+
<li>Default: false</li>
|
| 1285 |
+
<li>Type: Boolean</li>
|
| 1286 |
+
</ul>
|
| 1287 |
+
<p>If set to true, then the <code>npm version</code> command will commit the new
|
| 1288 |
+
package version using <code>-S</code> to add a signature.</p>
|
| 1289 |
+
<p>Note that git requires you to have set up GPG keys in your git
|
| 1290 |
+
configs for this to work properly.</p>
|
| 1291 |
+
<h4 id="sign-git-tag"><code>sign-git-tag</code></h4>
|
| 1292 |
+
<ul>
|
| 1293 |
+
<li>Default: false</li>
|
| 1294 |
+
<li>Type: Boolean</li>
|
| 1295 |
+
</ul>
|
| 1296 |
+
<p>If set to true, then the <code>npm version</code> command will tag the version
|
| 1297 |
+
using <code>-s</code> to add a signature.</p>
|
| 1298 |
+
<p>Note that git requires you to have set up GPG keys in your git
|
| 1299 |
+
configs for this to work properly.</p>
|
| 1300 |
+
<h4 id="strict-peer-deps"><code>strict-peer-deps</code></h4>
|
| 1301 |
+
<ul>
|
| 1302 |
+
<li>Default: false</li>
|
| 1303 |
+
<li>Type: Boolean</li>
|
| 1304 |
+
</ul>
|
| 1305 |
+
<p>If set to <code>true</code>, and <code>--legacy-peer-deps</code> is not set, then <em>any</em>
|
| 1306 |
+
conflicting <code>peerDependencies</code> will be treated as an install failure,
|
| 1307 |
+
even if npm could reasonably guess the appropriate resolution based
|
| 1308 |
+
on non-peer dependency relationships.</p>
|
| 1309 |
+
<p>By default, conflicting <code>peerDependencies</code> deep in the dependency
|
| 1310 |
+
graph will be resolved using the nearest non-peer dependency
|
| 1311 |
+
specification, even if doing so will result in some packages
|
| 1312 |
+
receiving a peer dependency outside the range set in their package's
|
| 1313 |
+
<code>peerDependencies</code> object.</p>
|
| 1314 |
+
<p>When such an override is performed, a warning is printed, explaining
|
| 1315 |
+
the conflict and the packages involved. If <code>--strict-peer-deps</code> is
|
| 1316 |
+
set, then this warning is treated as a failure.</p>
|
| 1317 |
+
<h4 id="strict-ssl"><code>strict-ssl</code></h4>
|
| 1318 |
+
<ul>
|
| 1319 |
+
<li>Default: true</li>
|
| 1320 |
+
<li>Type: Boolean</li>
|
| 1321 |
+
</ul>
|
| 1322 |
+
<p>Whether or not to do SSL key validation when making requests to the
|
| 1323 |
+
registry via https.</p>
|
| 1324 |
+
<p>See also the <code>ca</code> config.</p>
|
| 1325 |
+
<h4 id="tag"><code>tag</code></h4>
|
| 1326 |
+
<ul>
|
| 1327 |
+
<li>Default: "latest"</li>
|
| 1328 |
+
<li>Type: String</li>
|
| 1329 |
+
</ul>
|
| 1330 |
+
<p>If you ask npm to install a package and don't tell it a specific
|
| 1331 |
+
version, then it will install the specified tag.</p>
|
| 1332 |
+
<p>It is the tag added to the package@version specified in the <code>npm dist-tag add</code> command, if no explicit tag is given.</p>
|
| 1333 |
+
<p>When used by the <code>npm diff</code> command, this is the tag used to fetch
|
| 1334 |
+
the tarball that will be compared with the local files by default.</p>
|
| 1335 |
+
<p>If used in the <code>npm publish</code> command, this is the tag that will be
|
| 1336 |
+
added to the package submitted to the registry.</p>
|
| 1337 |
+
<h4 id="tag-version-prefix"><code>tag-version-prefix</code></h4>
|
| 1338 |
+
<ul>
|
| 1339 |
+
<li>Default: "v"</li>
|
| 1340 |
+
<li>Type: String</li>
|
| 1341 |
+
</ul>
|
| 1342 |
+
<p>If set, alters the prefix used when tagging a new version when
|
| 1343 |
+
performing a version increment using <code>npm version</code>. To remove the
|
| 1344 |
+
prefix altogether, set it to the empty string: <code>""</code>.</p>
|
| 1345 |
+
<p>Because other tools may rely on the convention that npm version tags
|
| 1346 |
+
look like <code>v1.0.0</code>, <em>only use this property if it is absolutely
|
| 1347 |
+
necessary</em>. In particular, use care when overriding this setting for
|
| 1348 |
+
public packages.</p>
|
| 1349 |
+
<h4 id="timing"><code>timing</code></h4>
|
| 1350 |
+
<ul>
|
| 1351 |
+
<li>Default: false</li>
|
| 1352 |
+
<li>Type: Boolean</li>
|
| 1353 |
+
</ul>
|
| 1354 |
+
<p>If true, writes timing information to a process specific json file in
|
| 1355 |
+
the cache or <code>logs-dir</code>. The file name ends with <code>-timing.json</code>.</p>
|
| 1356 |
+
<p>You can quickly view it with this <a href="https://npm.im/json">json</a> command
|
| 1357 |
+
line: <code>cat ~/.npm/_logs/*-timing.json | npm exec -- json -g</code>.</p>
|
| 1358 |
+
<p>Timing information will also be reported in the terminal. To suppress
|
| 1359 |
+
this while still writing the timing file, use <code>--silent</code>.</p>
|
| 1360 |
+
<h4 id="umask"><code>umask</code></h4>
|
| 1361 |
+
<ul>
|
| 1362 |
+
<li>Default: 0</li>
|
| 1363 |
+
<li>Type: Octal numeric string in range 0000..0777 (0..511)</li>
|
| 1364 |
+
</ul>
|
| 1365 |
+
<p>The "umask" value to use when setting the file creation mode on files
|
| 1366 |
+
and folders.</p>
|
| 1367 |
+
<p>Folders and executables are given a mode which is <code>0o777</code> masked
|
| 1368 |
+
against this value. Other files are given a mode which is <code>0o666</code>
|
| 1369 |
+
masked against this value.</p>
|
| 1370 |
+
<p>Note that the underlying system will <em>also</em> apply its own umask value
|
| 1371 |
+
to files and folders that are created, and npm does not circumvent
|
| 1372 |
+
this, but rather adds the <code>--umask</code> config to it.</p>
|
| 1373 |
+
<p>Thus, the effective default umask value on most POSIX systems is
|
| 1374 |
+
0o22, meaning that folders and executables are created with a mode of
|
| 1375 |
+
0o755 and other files are created with a mode of 0o644.</p>
|
| 1376 |
+
<h4 id="unicode"><code>unicode</code></h4>
|
| 1377 |
+
<ul>
|
| 1378 |
+
<li>Default: false on windows, true on mac/unix systems with a unicode
|
| 1379 |
+
locale, as defined by the <code>LC_ALL</code>, <code>LC_CTYPE</code>, or <code>LANG</code> environment
|
| 1380 |
+
variables.</li>
|
| 1381 |
+
<li>Type: Boolean</li>
|
| 1382 |
+
</ul>
|
| 1383 |
+
<p>When set to true, npm uses unicode characters in the tree output.
|
| 1384 |
+
When false, it uses ascii characters instead of unicode glyphs.</p>
|
| 1385 |
+
<h4 id="update-notifier"><code>update-notifier</code></h4>
|
| 1386 |
+
<ul>
|
| 1387 |
+
<li>Default: true</li>
|
| 1388 |
+
<li>Type: Boolean</li>
|
| 1389 |
+
</ul>
|
| 1390 |
+
<p>Set to false to suppress the update notification when using an older
|
| 1391 |
+
version of npm than the latest.</p>
|
| 1392 |
+
<h4 id="usage"><code>usage</code></h4>
|
| 1393 |
+
<ul>
|
| 1394 |
+
<li>Default: false</li>
|
| 1395 |
+
<li>Type: Boolean</li>
|
| 1396 |
+
</ul>
|
| 1397 |
+
<p>Show short usage output about the command specified.</p>
|
| 1398 |
+
<h4 id="user-agent"><code>user-agent</code></h4>
|
| 1399 |
+
<ul>
|
| 1400 |
+
<li>Default: "npm/{npm-version} node/{node-version} {platform} {arch}
|
| 1401 |
+
workspaces/{workspaces} {ci}"</li>
|
| 1402 |
+
<li>Type: String</li>
|
| 1403 |
+
</ul>
|
| 1404 |
+
<p>Sets the User-Agent request header. The following fields are replaced
|
| 1405 |
+
with their actual counterparts:</p>
|
| 1406 |
+
<ul>
|
| 1407 |
+
<li><code>{npm-version}</code> - The npm version in use</li>
|
| 1408 |
+
<li><code>{node-version}</code> - The Node.js version in use</li>
|
| 1409 |
+
<li><code>{platform}</code> - The value of <code>process.platform</code></li>
|
| 1410 |
+
<li><code>{arch}</code> - The value of <code>process.arch</code></li>
|
| 1411 |
+
<li><code>{workspaces}</code> - Set to <code>true</code> if the <code>workspaces</code> or <code>workspace</code>
|
| 1412 |
+
options are set.</li>
|
| 1413 |
+
<li><code>{ci}</code> - The value of the <code>ci-name</code> config, if set, prefixed with
|
| 1414 |
+
<code>ci/</code>, or an empty string if <code>ci-name</code> is empty.</li>
|
| 1415 |
+
</ul>
|
| 1416 |
+
<h4 id="userconfig"><code>userconfig</code></h4>
|
| 1417 |
+
<ul>
|
| 1418 |
+
<li>Default: "~/.npmrc"</li>
|
| 1419 |
+
<li>Type: Path</li>
|
| 1420 |
+
</ul>
|
| 1421 |
+
<p>The location of user-level configuration settings.</p>
|
| 1422 |
+
<p>This may be overridden by the <code>npm_config_userconfig</code> environment
|
| 1423 |
+
variable or the <code>--userconfig</code> command line option, but may <em>not</em> be
|
| 1424 |
+
overridden by settings in the <code>globalconfig</code> file.</p>
|
| 1425 |
+
<h4 id="version"><code>version</code></h4>
|
| 1426 |
+
<ul>
|
| 1427 |
+
<li>Default: false</li>
|
| 1428 |
+
<li>Type: Boolean</li>
|
| 1429 |
+
</ul>
|
| 1430 |
+
<p>If true, output the npm version and exit successfully.</p>
|
| 1431 |
+
<p>Only relevant when specified explicitly on the command line.</p>
|
| 1432 |
+
<h4 id="versions"><code>versions</code></h4>
|
| 1433 |
+
<ul>
|
| 1434 |
+
<li>Default: false</li>
|
| 1435 |
+
<li>Type: Boolean</li>
|
| 1436 |
+
</ul>
|
| 1437 |
+
<p>If true, output the npm version as well as node's <code>process.versions</code>
|
| 1438 |
+
map and the version in the current working directory's <code>package.json</code>
|
| 1439 |
+
file if one exists, and exit successfully.</p>
|
| 1440 |
+
<p>Only relevant when specified explicitly on the command line.</p>
|
| 1441 |
+
<h4 id="viewer"><code>viewer</code></h4>
|
| 1442 |
+
<ul>
|
| 1443 |
+
<li>Default: "man" on Posix, "browser" on Windows</li>
|
| 1444 |
+
<li>Type: String</li>
|
| 1445 |
+
</ul>
|
| 1446 |
+
<p>The program to use to view help content.</p>
|
| 1447 |
+
<p>Set to <code>"browser"</code> to view html help content in the default web
|
| 1448 |
+
browser.</p>
|
| 1449 |
+
<h4 id="which"><code>which</code></h4>
|
| 1450 |
+
<ul>
|
| 1451 |
+
<li>Default: null</li>
|
| 1452 |
+
<li>Type: null or Number</li>
|
| 1453 |
+
</ul>
|
| 1454 |
+
<p>If there are multiple funding sources, which 1-indexed source URL to
|
| 1455 |
+
open.</p>
|
| 1456 |
+
<h4 id="workspace"><code>workspace</code></h4>
|
| 1457 |
+
<ul>
|
| 1458 |
+
<li>Default:</li>
|
| 1459 |
+
<li>Type: String (can be set multiple times)</li>
|
| 1460 |
+
</ul>
|
| 1461 |
+
<p>Enable running a command in the context of the configured workspaces
|
| 1462 |
+
of the current project while filtering by running only the workspaces
|
| 1463 |
+
defined by this configuration option.</p>
|
| 1464 |
+
<p>Valid values for the <code>workspace</code> config are either:</p>
|
| 1465 |
+
<ul>
|
| 1466 |
+
<li>Workspace names</li>
|
| 1467 |
+
<li>Path to a workspace directory</li>
|
| 1468 |
+
<li>Path to a parent workspace directory (will result in selecting all
|
| 1469 |
+
workspaces within that folder)</li>
|
| 1470 |
+
</ul>
|
| 1471 |
+
<p>When set for the <code>npm init</code> command, this may be set to the folder of
|
| 1472 |
+
a workspace which does not yet exist, to create the folder and set it
|
| 1473 |
+
up as a brand new workspace within the project.</p>
|
| 1474 |
+
<p>This value is not exported to the environment for child processes.</p>
|
| 1475 |
+
<h4 id="workspaces"><code>workspaces</code></h4>
|
| 1476 |
+
<ul>
|
| 1477 |
+
<li>Default: null</li>
|
| 1478 |
+
<li>Type: null or Boolean</li>
|
| 1479 |
+
</ul>
|
| 1480 |
+
<p>Set to true to run the command in the context of <strong>all</strong> configured
|
| 1481 |
+
workspaces.</p>
|
| 1482 |
+
<p>Explicitly setting this to false will cause commands like <code>install</code>
|
| 1483 |
+
to ignore workspaces altogether. When not set explicitly:</p>
|
| 1484 |
+
<ul>
|
| 1485 |
+
<li>Commands that operate on the <code>node_modules</code> tree (install, update,
|
| 1486 |
+
etc.) will link workspaces into the <code>node_modules</code> folder. - Commands
|
| 1487 |
+
that do other things (test, exec, publish, etc.) will operate on the
|
| 1488 |
+
root project, <em>unless</em> one or more workspaces are specified in the
|
| 1489 |
+
<code>workspace</code> config.</li>
|
| 1490 |
+
</ul>
|
| 1491 |
+
<p>This value is not exported to the environment for child processes.</p>
|
| 1492 |
+
<h4 id="workspaces-update"><code>workspaces-update</code></h4>
|
| 1493 |
+
<ul>
|
| 1494 |
+
<li>Default: true</li>
|
| 1495 |
+
<li>Type: Boolean</li>
|
| 1496 |
+
</ul>
|
| 1497 |
+
<p>If set to true, the npm cli will run an update after operations that
|
| 1498 |
+
may possibly change the workspaces installed to the <code>node_modules</code>
|
| 1499 |
+
folder.</p>
|
| 1500 |
+
<h4 id="yes"><code>yes</code></h4>
|
| 1501 |
+
<ul>
|
| 1502 |
+
<li>Default: null</li>
|
| 1503 |
+
<li>Type: null or Boolean</li>
|
| 1504 |
+
</ul>
|
| 1505 |
+
<p>Automatically answer "yes" to any prompts that npm might print on the
|
| 1506 |
+
command line.</p>
|
| 1507 |
+
<h4 id="also"><code>also</code></h4>
|
| 1508 |
+
<ul>
|
| 1509 |
+
<li>Default: null</li>
|
| 1510 |
+
<li>Type: null, "dev", or "development"</li>
|
| 1511 |
+
<li>DEPRECATED: Please use --include=dev instead.</li>
|
| 1512 |
+
</ul>
|
| 1513 |
+
<p>When set to <code>dev</code> or <code>development</code>, this is an alias for
|
| 1514 |
+
<code>--include=dev</code>.</p>
|
| 1515 |
+
<h4 id="cache-max"><code>cache-max</code></h4>
|
| 1516 |
+
<ul>
|
| 1517 |
+
<li>Default: Infinity</li>
|
| 1518 |
+
<li>Type: Number</li>
|
| 1519 |
+
<li>DEPRECATED: This option has been deprecated in favor of
|
| 1520 |
+
<code>--prefer-online</code></li>
|
| 1521 |
+
</ul>
|
| 1522 |
+
<p><code>--cache-max=0</code> is an alias for <code>--prefer-online</code></p>
|
| 1523 |
+
<h4 id="cache-min"><code>cache-min</code></h4>
|
| 1524 |
+
<ul>
|
| 1525 |
+
<li>Default: 0</li>
|
| 1526 |
+
<li>Type: Number</li>
|
| 1527 |
+
<li>DEPRECATED: This option has been deprecated in favor of
|
| 1528 |
+
<code>--prefer-offline</code>.</li>
|
| 1529 |
+
</ul>
|
| 1530 |
+
<p><code>--cache-min=9999 (or bigger)</code> is an alias for <code>--prefer-offline</code>.</p>
|
| 1531 |
+
<h4 id="cert"><code>cert</code></h4>
|
| 1532 |
+
<ul>
|
| 1533 |
+
<li>Default: null</li>
|
| 1534 |
+
<li>Type: null or String</li>
|
| 1535 |
+
<li>DEPRECATED: <code>key</code> and <code>cert</code> are no longer used for most registry
|
| 1536 |
+
operations. Use registry scoped <code>keyfile</code> and <code>certfile</code> instead.
|
| 1537 |
+
Example: //other-registry.tld/:keyfile=/path/to/key.pem
|
| 1538 |
+
//other-registry.tld/:certfile=/path/to/cert.crt</li>
|
| 1539 |
+
</ul>
|
| 1540 |
+
<p>A client certificate to pass when accessing the registry. Values
|
| 1541 |
+
should be in PEM format (Windows calls it "Base-64 encoded X.509
|
| 1542 |
+
(.CER)") with newlines replaced by the string "\n". For example:</p>
|
| 1543 |
+
<pre><code class="language-ini">cert="-----BEGIN CERTIFICATE-----\nXXXX\nXXXX\n-----END CERTIFICATE-----"
|
| 1544 |
+
</code></pre>
|
| 1545 |
+
<p>It is <em>not</em> the path to a certificate file, though you can set a
|
| 1546 |
+
registry-scoped "certfile" path like
|
| 1547 |
+
"//other-registry.tld/:certfile=/path/to/cert.pem".</p>
|
| 1548 |
+
<h4 id="dev"><code>dev</code></h4>
|
| 1549 |
+
<ul>
|
| 1550 |
+
<li>Default: false</li>
|
| 1551 |
+
<li>Type: Boolean</li>
|
| 1552 |
+
<li>DEPRECATED: Please use --include=dev instead.</li>
|
| 1553 |
+
</ul>
|
| 1554 |
+
<p>Alias for <code>--include=dev</code>.</p>
|
| 1555 |
+
<h4 id="global-style"><code>global-style</code></h4>
|
| 1556 |
+
<ul>
|
| 1557 |
+
<li>Default: false</li>
|
| 1558 |
+
<li>Type: Boolean</li>
|
| 1559 |
+
<li>DEPRECATED: This option has been deprecated in favor of
|
| 1560 |
+
<code>--install-strategy=shallow</code></li>
|
| 1561 |
+
</ul>
|
| 1562 |
+
<p>Only install direct dependencies in the top level <code>node_modules</code>, but
|
| 1563 |
+
hoist on deeper dependencies. Sets <code>--install-strategy=shallow</code>.</p>
|
| 1564 |
+
<h4 id="initauthoremail"><code>init.author.email</code></h4>
|
| 1565 |
+
<ul>
|
| 1566 |
+
<li>Default: ""</li>
|
| 1567 |
+
<li>Type: String</li>
|
| 1568 |
+
<li>DEPRECATED: Use <code>--init-author-email</code> instead.</li>
|
| 1569 |
+
</ul>
|
| 1570 |
+
<p>Alias for <code>--init-author-email</code></p>
|
| 1571 |
+
<h4 id="initauthorname"><code>init.author.name</code></h4>
|
| 1572 |
+
<ul>
|
| 1573 |
+
<li>Default: ""</li>
|
| 1574 |
+
<li>Type: String</li>
|
| 1575 |
+
<li>DEPRECATED: Use <code>--init-author-name</code> instead.</li>
|
| 1576 |
+
</ul>
|
| 1577 |
+
<p>Alias for <code>--init-author-name</code></p>
|
| 1578 |
+
<h4 id="initauthorurl"><code>init.author.url</code></h4>
|
| 1579 |
+
<ul>
|
| 1580 |
+
<li>Default: ""</li>
|
| 1581 |
+
<li>Type: "" or URL</li>
|
| 1582 |
+
<li>DEPRECATED: Use <code>--init-author-url</code> instead.</li>
|
| 1583 |
+
</ul>
|
| 1584 |
+
<p>Alias for <code>--init-author-url</code></p>
|
| 1585 |
+
<h4 id="initlicense"><code>init.license</code></h4>
|
| 1586 |
+
<ul>
|
| 1587 |
+
<li>Default: "ISC"</li>
|
| 1588 |
+
<li>Type: String</li>
|
| 1589 |
+
<li>DEPRECATED: Use <code>--init-license</code> instead.</li>
|
| 1590 |
+
</ul>
|
| 1591 |
+
<p>Alias for <code>--init-license</code></p>
|
| 1592 |
+
<h4 id="initmodule"><code>init.module</code></h4>
|
| 1593 |
+
<ul>
|
| 1594 |
+
<li>Default: "~/.npm-init.js"</li>
|
| 1595 |
+
<li>Type: Path</li>
|
| 1596 |
+
<li>DEPRECATED: Use <code>--init-module</code> instead.</li>
|
| 1597 |
+
</ul>
|
| 1598 |
+
<p>Alias for <code>--init-module</code></p>
|
| 1599 |
+
<h4 id="initversion"><code>init.version</code></h4>
|
| 1600 |
+
<ul>
|
| 1601 |
+
<li>Default: "1.0.0"</li>
|
| 1602 |
+
<li>Type: SemVer string</li>
|
| 1603 |
+
<li>DEPRECATED: Use <code>--init-version</code> instead.</li>
|
| 1604 |
+
</ul>
|
| 1605 |
+
<p>Alias for <code>--init-version</code></p>
|
| 1606 |
+
<h4 id="key"><code>key</code></h4>
|
| 1607 |
+
<ul>
|
| 1608 |
+
<li>Default: null</li>
|
| 1609 |
+
<li>Type: null or String</li>
|
| 1610 |
+
<li>DEPRECATED: <code>key</code> and <code>cert</code> are no longer used for most registry
|
| 1611 |
+
operations. Use registry scoped <code>keyfile</code> and <code>certfile</code> instead.
|
| 1612 |
+
Example: //other-registry.tld/:keyfile=/path/to/key.pem
|
| 1613 |
+
//other-registry.tld/:certfile=/path/to/cert.crt</li>
|
| 1614 |
+
</ul>
|
| 1615 |
+
<p>A client key to pass when accessing the registry. Values should be in
|
| 1616 |
+
PEM format with newlines replaced by the string "\n". For example:</p>
|
| 1617 |
+
<pre><code class="language-ini">key="-----BEGIN PRIVATE KEY-----\nXXXX\nXXXX\n-----END PRIVATE KEY-----"
|
| 1618 |
+
</code></pre>
|
| 1619 |
+
<p>It is <em>not</em> the path to a key file, though you can set a
|
| 1620 |
+
registry-scoped "keyfile" path like
|
| 1621 |
+
"//other-registry.tld/:keyfile=/path/to/key.pem".</p>
|
| 1622 |
+
<h4 id="legacy-bundling"><code>legacy-bundling</code></h4>
|
| 1623 |
+
<ul>
|
| 1624 |
+
<li>Default: false</li>
|
| 1625 |
+
<li>Type: Boolean</li>
|
| 1626 |
+
<li>DEPRECATED: This option has been deprecated in favor of
|
| 1627 |
+
<code>--install-strategy=nested</code></li>
|
| 1628 |
+
</ul>
|
| 1629 |
+
<p>Instead of hoisting package installs in <code>node_modules</code>, install
|
| 1630 |
+
packages in the same manner that they are depended on. This may cause
|
| 1631 |
+
very deep directory structures and duplicate package installs as
|
| 1632 |
+
there is no de-duplicating. Sets <code>--install-strategy=nested</code>.</p>
|
| 1633 |
+
<h4 id="only"><code>only</code></h4>
|
| 1634 |
+
<ul>
|
| 1635 |
+
<li>Default: null</li>
|
| 1636 |
+
<li>Type: null, "prod", or "production"</li>
|
| 1637 |
+
<li>DEPRECATED: Use <code>--omit=dev</code> to omit dev dependencies from the
|
| 1638 |
+
install.</li>
|
| 1639 |
+
</ul>
|
| 1640 |
+
<p>When set to <code>prod</code> or <code>production</code>, this is an alias for
|
| 1641 |
+
<code>--omit=dev</code>.</p>
|
| 1642 |
+
<h4 id="optional"><code>optional</code></h4>
|
| 1643 |
+
<ul>
|
| 1644 |
+
<li>Default: null</li>
|
| 1645 |
+
<li>Type: null or Boolean</li>
|
| 1646 |
+
<li>DEPRECATED: Use <code>--omit=optional</code> to exclude optional dependencies,
|
| 1647 |
+
or <code>--include=optional</code> to include them.</li>
|
| 1648 |
+
</ul>
|
| 1649 |
+
<p>Default value does install optional deps unless otherwise omitted.</p>
|
| 1650 |
+
<p>Alias for --include=optional or --omit=optional</p>
|
| 1651 |
+
<h4 id="production"><code>production</code></h4>
|
| 1652 |
+
<ul>
|
| 1653 |
+
<li>Default: null</li>
|
| 1654 |
+
<li>Type: null or Boolean</li>
|
| 1655 |
+
<li>DEPRECATED: Use <code>--omit=dev</code> instead.</li>
|
| 1656 |
+
</ul>
|
| 1657 |
+
<p>Alias for <code>--omit=dev</code></p>
|
| 1658 |
+
<h4 id="shrinkwrap"><code>shrinkwrap</code></h4>
|
| 1659 |
+
<ul>
|
| 1660 |
+
<li>Default: true</li>
|
| 1661 |
+
<li>Type: Boolean</li>
|
| 1662 |
+
<li>DEPRECATED: Use the --package-lock setting instead.</li>
|
| 1663 |
+
</ul>
|
| 1664 |
+
<p>Alias for --package-lock</p>
|
| 1665 |
+
<h3 id="see-also">See also</h3>
|
| 1666 |
+
<ul>
|
| 1667 |
+
<li><a href="../commands/npm-config.html">npm config</a></li>
|
| 1668 |
+
<li><a href="../configuring-npm/npmrc.html">npmrc</a></li>
|
| 1669 |
+
<li><a href="../using-npm/scripts.html">npm scripts</a></li>
|
| 1670 |
+
<li><a href="../configuring-npm/folders.html">npm folders</a></li>
|
| 1671 |
+
<li><a href="../commands/npm.html">npm</a></li>
|
| 1672 |
+
</ul></div>
|
| 1673 |
+
|
| 1674 |
+
<footer id="edit">
|
| 1675 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/config.md">
|
| 1676 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 1677 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 1678 |
+
</svg>
|
| 1679 |
+
Edit this page on GitHub
|
| 1680 |
+
</a>
|
| 1681 |
+
</footer>
|
| 1682 |
+
</section>
|
| 1683 |
+
|
| 1684 |
+
|
| 1685 |
+
|
| 1686 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/dependency-selectors.html
ADDED
|
@@ -0,0 +1,380 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>Dependency Selector Syntax & Querying</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----dependency-selector-syntax--querying----1162">
|
| 145 |
+
<span>Dependency Selector Syntax & Querying</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Dependency Selector Syntax & Querying</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#see-also">See Also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>The <a href="../commands/npm-query.html"><code>npm query</code></a> command exposes a new dependency selector syntax (informed by & respecting many aspects of the <a href="https://dev.w3.org/csswg/selectors4/#relational">CSS Selectors 4 Spec</a>) which:</p>
|
| 158 |
+
<ul>
|
| 159 |
+
<li>Standardizes the shape of, & querying of, dependency graphs with a robust object model, metadata & selector syntax</li>
|
| 160 |
+
<li>Leverages existing, known language syntax & operators from CSS to make disparate package information broadly accessible</li>
|
| 161 |
+
<li>Unlocks the ability to answer complex, multi-faceted questions about dependencies, their relationships & associative metadata</li>
|
| 162 |
+
<li>Consolidates redundant logic of similar query commands in <code>npm</code> (ex.
|
| 163 |
+
<code>npm fund</code>, <code>npm ls</code>, <code>npm outdated</code>, <code>npm audit</code> ...)</li>
|
| 164 |
+
</ul>
|
| 165 |
+
<h3 id="dependency-selector-syntax">Dependency Selector Syntax</h3>
|
| 166 |
+
<h4 id="overview">Overview:</h4>
|
| 167 |
+
<ul>
|
| 168 |
+
<li>there is no "type" or "tag" selectors (ex.
|
| 169 |
+
<code>div, h1, a</code>) as a dependency/target is the only type of <code>Node</code> that can be queried</li>
|
| 170 |
+
<li>the term "dependencies" is in reference to any <code>Node</code> found in a <code>tree</code> returned by <code>Arborist</code></li>
|
| 171 |
+
</ul>
|
| 172 |
+
<h4 id="combinators">Combinators</h4>
|
| 173 |
+
<ul>
|
| 174 |
+
<li><code>></code> direct descendant/child</li>
|
| 175 |
+
<li><code> </code> any descendant/child</li>
|
| 176 |
+
<li><code>~</code> sibling</li>
|
| 177 |
+
</ul>
|
| 178 |
+
<h4 id="selectors">Selectors</h4>
|
| 179 |
+
<ul>
|
| 180 |
+
<li><code>*</code> universal selector</li>
|
| 181 |
+
<li><code>#<name></code> dependency selector (equivalent to <code>[name="..."]</code>)</li>
|
| 182 |
+
<li><code>#<name>@<version></code> (equivalent to <code>[name=<name>]:semver(<version>)</code>)</li>
|
| 183 |
+
<li><code>,</code> selector list delimiter</li>
|
| 184 |
+
<li><code>.</code> dependency type selector</li>
|
| 185 |
+
<li><code>:</code> pseudo selector</li>
|
| 186 |
+
</ul>
|
| 187 |
+
<h4 id="dependency-type-selectors">Dependency Type Selectors</h4>
|
| 188 |
+
<ul>
|
| 189 |
+
<li><code>.prod</code> dependency found in the <code>dependencies</code> section of <code>package.json</code>, or is a child of said dependency</li>
|
| 190 |
+
<li><code>.dev</code> dependency found in the <code>devDependencies</code> section of <code>package.json</code>, or is a child of said dependency</li>
|
| 191 |
+
<li><code>.optional</code> dependency found in the <code>optionalDependencies</code> section of <code>package.json</code>, or has <code>"optional": true</code> set in its entry in the <code>peerDependenciesMeta</code> section of <code>package.json</code>, or a child of said dependency</li>
|
| 192 |
+
<li><code>.peer</code> dependency found in the <code>peerDependencies</code> section of <code>package.json</code></li>
|
| 193 |
+
<li><code>.workspace</code> dependency found in the <a href="https://docs.npmjs.com/cli/v8/using-npm/workspaces"><code>workspaces</code></a> section of <code>package.json</code></li>
|
| 194 |
+
<li><code>.bundled</code> dependency found in the <code>bundleDependencies</code> section of <code>package.json</code>, or is a child of said dependency</li>
|
| 195 |
+
</ul>
|
| 196 |
+
<h4 id="pseudo-selectors">Pseudo Selectors</h4>
|
| 197 |
+
<ul>
|
| 198 |
+
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:not"><code>:not(<selector>)</code></a></li>
|
| 199 |
+
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:has"><code>:has(<selector>)</code></a></li>
|
| 200 |
+
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:is"><code>:is(<selector list>)</code></a></li>
|
| 201 |
+
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:root"><code>:root</code></a> matches the root node/dependency</li>
|
| 202 |
+
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:scope"><code>:scope</code></a> matches node/dependency it was queried against</li>
|
| 203 |
+
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:empty"><code>:empty</code></a> when a dependency has no dependencies</li>
|
| 204 |
+
<li><a href="https://docs.npmjs.com/cli/v8/configuring-npm/package-json#private"><code>:private</code></a> when a dependency is private</li>
|
| 205 |
+
<li><code>:link</code> when a dependency is linked (for instance, workspaces or packages manually <a href="https://docs.npmjs.com/cli/v8/commands/npm-link"><code>linked</code></a></li>
|
| 206 |
+
<li><code>:deduped</code> when a dependency has been deduped (note that this does <em>not</em> always mean the dependency has been hoisted to the root of node_modules)</li>
|
| 207 |
+
<li><code>:overridden</code> when a dependency has been overridden</li>
|
| 208 |
+
<li><code>:extraneous</code> when a dependency exists but is not defined as a dependency of any node</li>
|
| 209 |
+
<li><code>:invalid</code> when a dependency version is out of its ancestors specified range</li>
|
| 210 |
+
<li><code>:missing</code> when a dependency is not found on disk</li>
|
| 211 |
+
<li><code>:semver(<spec>, [selector], [function])</code> match a valid <a href="https://github.com/npm/node-semver"><code>node-semver</code></a> version or range to a selector</li>
|
| 212 |
+
<li><code>:path(<path>)</code> <a href="https://www.npmjs.com/package/glob">glob</a> matching based on dependencies path relative to the project</li>
|
| 213 |
+
<li><code>:type(<type>)</code> <a href="https://github.com/npm/npm-package-arg#result-object">based on currently recognized types</a></li>
|
| 214 |
+
<li><code>:outdated(<type>)</code> when a dependency is outdated</li>
|
| 215 |
+
<li><code>:vuln(<selector>)</code> when a dependency has a known vulnerability</li>
|
| 216 |
+
</ul>
|
| 217 |
+
<h5 id="semverspec-selector-function"><code>:semver(<spec>, [selector], [function])</code></h5>
|
| 218 |
+
<p>The <code>:semver()</code> pseudo selector allows comparing fields from each node's <code>package.json</code> using <a href="https://github.com/npm/node-semver#readme">semver</a> methods.
|
| 219 |
+
It accepts up to 3 parameters, all but the first of which are optional.</p>
|
| 220 |
+
<ul>
|
| 221 |
+
<li><code>spec</code> a semver version or range</li>
|
| 222 |
+
<li><code>selector</code> an attribute selector for each node (default <code>[version]</code>)</li>
|
| 223 |
+
<li><code>function</code> a semver method to apply, one of: <code>satisfies</code>, <code>intersects</code>, <code>subset</code>, <code>gt</code>, <code>gte</code>, <code>gtr</code>, <code>lt</code>, <code>lte</code>, <code>ltr</code>, <code>eq</code>, <code>neq</code> or the special function <code>infer</code> (default <code>infer</code>)</li>
|
| 224 |
+
</ul>
|
| 225 |
+
<p>When the special <code>infer</code> function is used the <code>spec</code> and the actual value from the node are compared.
|
| 226 |
+
If both are versions, according to <code>semver.valid()</code>, <code>eq</code> is used.
|
| 227 |
+
If both values are ranges, according to <code>!semver.valid()</code>, <code>intersects</code> is used.
|
| 228 |
+
If the values are mixed types <code>satisfies</code> is used.</p>
|
| 229 |
+
<p>Some examples:</p>
|
| 230 |
+
<ul>
|
| 231 |
+
<li><code>:semver(^1.0.0)</code> returns every node that has a <code>version</code> satisfied by the provided range <code>^1.0.0</code></li>
|
| 232 |
+
<li><code>:semver(16.0.0, :attr(engines, [node]))</code> returns every node which has an <code>engines.node</code> property satisfying the version <code>16.0.0</code></li>
|
| 233 |
+
<li><code>:semver(1.0.0, [version], lt)</code> every node with a <code>version</code> less than <code>1.0.0</code></li>
|
| 234 |
+
</ul>
|
| 235 |
+
<h5 id="outdatedtype"><code>:outdated(<type>)</code></h5>
|
| 236 |
+
<p>The <code>:outdated</code> pseudo selector retrieves data from the registry and returns information about which of your dependencies are outdated.
|
| 237 |
+
The type parameter may be one of the following:</p>
|
| 238 |
+
<ul>
|
| 239 |
+
<li><code>any</code> (default) a version exists that is greater than the current one</li>
|
| 240 |
+
<li><code>in-range</code> a version exists that is greater than the current one, and satisfies at least one if its parent's dependencies</li>
|
| 241 |
+
<li><code>out-of-range</code> a version exists that is greater than the current one, does not satisfy at least one of its parent's dependencies</li>
|
| 242 |
+
<li><code>major</code> a version exists that is a semver major greater than the current one</li>
|
| 243 |
+
<li><code>minor</code> a version exists that is a semver minor greater than the current one</li>
|
| 244 |
+
<li><code>patch</code> a version exists that is a semver patch greater than the current one</li>
|
| 245 |
+
</ul>
|
| 246 |
+
<p>In addition to the filtering performed by the pseudo selector, some extra data is added to the resulting objects.
|
| 247 |
+
The following data can be found under the <code>queryContext</code> property of each node.</p>
|
| 248 |
+
<ul>
|
| 249 |
+
<li><code>versions</code> an array of every available version of the given node</li>
|
| 250 |
+
<li><code>outdated.inRange</code> an array of objects, each with a <code>from</code> and <code>versions</code>, where <code>from</code> is the on-disk location of the node that depends on the current node and <code>versions</code> is an array of all available versions that satisfies that dependency.
|
| 251 |
+
This is only populated if <code>:outdated(in-range)</code> is used.</li>
|
| 252 |
+
<li><code>outdated.outOfRange</code> an array of objects, identical in shape to <code>inRange</code>, but where the <code>versions</code> array is every available version that does not satisfy the dependency.
|
| 253 |
+
This is only populated if <code>:outdated(out-of-range)</code> is used.</li>
|
| 254 |
+
</ul>
|
| 255 |
+
<p>Some examples:</p>
|
| 256 |
+
<ul>
|
| 257 |
+
<li><code>:root > :outdated(major)</code> returns every direct dependency that has a new semver major release</li>
|
| 258 |
+
<li><code>.prod:outdated(in-range)</code> returns production dependencies that have a new release that satisfies at least one of its parent's dependencies</li>
|
| 259 |
+
</ul>
|
| 260 |
+
<h5 id="vuln"><code>:vuln</code></h5>
|
| 261 |
+
<p>The <code>:vuln</code> pseudo selector retrieves data from the registry and returns information about which if your dependencies has a known vulnerability.
|
| 262 |
+
Only dependencies whose current version matches a vulnerability will be returned.
|
| 263 |
+
For example if you have <code>semver@7.6.0</code> in your tree, a vulnerability for <code>semver</code> which affects versions <code><=6.3.1</code> will not match.</p>
|
| 264 |
+
<p>You can also filter results by certain attributes in advisories.
|
| 265 |
+
Currently that includes <code>severity</code> and <code>cwe</code>.
|
| 266 |
+
Note that severity filtering is done per severity, it does not include severities "higher" or "lower" than the one specified.</p>
|
| 267 |
+
<p>In addition to the filtering performed by the pseudo selector, info about each relevant advisory will be added to the <code>queryContext</code> attribute of each node under the <code>advisories</code> attribute.</p>
|
| 268 |
+
<p>Some examples:</p>
|
| 269 |
+
<ul>
|
| 270 |
+
<li><code>:root > .prod:vuln</code> returns direct production dependencies with any known vulnerability</li>
|
| 271 |
+
<li><code>:vuln([severity=high])</code> returns only dependencies with a vulnerability with a <code>high</code> severity.</li>
|
| 272 |
+
<li><code>:vuln([severity=high],[severity=moderate])</code> returns only dependencies with a vulnerability with a <code>high</code> or <code>moderate</code> severity.</li>
|
| 273 |
+
<li><code>:vuln([cwe=1333])</code> returns only dependencies with a vulnerability that includes CWE-1333 (ReDoS)</li>
|
| 274 |
+
</ul>
|
| 275 |
+
<h4 id="attribute-selectors"><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors">Attribute Selectors</a></h4>
|
| 276 |
+
<p>The attribute selector evaluates the key/value pairs in <code>package.json</code> if they are <code>String</code>s.</p>
|
| 277 |
+
<ul>
|
| 278 |
+
<li><code>[]</code> attribute selector (ie.
|
| 279 |
+
existence of attribute)</li>
|
| 280 |
+
<li><code>[attribute=value]</code> attribute value is equivalent...</li>
|
| 281 |
+
<li><code>[attribute~=value]</code> attribute value contains word...</li>
|
| 282 |
+
<li><code>[attribute*=value]</code> attribute value contains string...</li>
|
| 283 |
+
<li><code>[attribute|=value]</code> attribute value is equal to or starts with...</li>
|
| 284 |
+
<li><code>[attribute^=value]</code> attribute value starts with...</li>
|
| 285 |
+
<li><code>[attribute$=value]</code> attribute value ends with...</li>
|
| 286 |
+
</ul>
|
| 287 |
+
<h4 id="array--object-attribute-selectors"><code>Array</code> & <code>Object</code> Attribute Selectors</h4>
|
| 288 |
+
<p>The generic <code>:attr()</code> pseudo selector standardizes a pattern which can be used for attribute selection of <code>Object</code>s, <code>Array</code>s or <code>Arrays</code> of <code>Object</code>s accessible via <code>Arborist</code>'s <code>Node.package</code> metadata.
|
| 289 |
+
This allows for iterative attribute selection beyond top-level <code>String</code> evaluation.
|
| 290 |
+
The last argument passed to <code>:attr()</code> must be an <code>attribute</code> selector or a nested <code>:attr()</code>.
|
| 291 |
+
See examples below:</p>
|
| 292 |
+
<h4 id="objects"><code>Objects</code></h4>
|
| 293 |
+
<pre><code class="language-css">/* return dependencies that have a `scripts.test` containing `"tap"` */
|
| 294 |
+
*:attr(scripts, [test~=tap])
|
| 295 |
+
</code></pre>
|
| 296 |
+
<h4 id="nested-objects">Nested <code>Objects</code></h4>
|
| 297 |
+
<p>Nested objects are expressed as sequential arguments to <code>:attr()</code>.</p>
|
| 298 |
+
<pre><code class="language-css">/* return dependencies that have a [testling config](https://ci.testling.com/guide/advanced_configuration) for opera browsers */
|
| 299 |
+
*:attr(testling, browsers, [~=opera])
|
| 300 |
+
</code></pre>
|
| 301 |
+
<h4 id="arrays"><code>Arrays</code></h4>
|
| 302 |
+
<p><code>Array</code>s specifically uses a special/reserved <code>.</code> character in place of a typical attribute name.
|
| 303 |
+
<code>Arrays</code> also support exact <code>value</code> matching when a <code>String</code> is passed to the selector.</p>
|
| 304 |
+
<h5 id="example-of-an-array-attribute-selection">Example of an <code>Array</code> Attribute Selection:</h5>
|
| 305 |
+
<pre><code class="language-css">/* removes the distinction between properties & arrays */
|
| 306 |
+
/* ie. we'd have to check the property & iterate to match selection */
|
| 307 |
+
*:attr([keywords^=react])
|
| 308 |
+
*:attr(contributors, :attr([name~=Jordan]))
|
| 309 |
+
</code></pre>
|
| 310 |
+
<h5 id="example-of-an-array-matching-directly-to-a-value">Example of an <code>Array</code> matching directly to a value:</h5>
|
| 311 |
+
<pre><code class="language-css">/* return dependencies that have the exact keyword "react" */
|
| 312 |
+
/* this is equivalent to `*:keywords([value="react"])` */
|
| 313 |
+
*:attr([keywords=react])
|
| 314 |
+
</code></pre>
|
| 315 |
+
<h5 id="example-of-an-array-of-objects">Example of an <code>Array</code> of <code>Object</code>s:</h5>
|
| 316 |
+
<pre><code class="language-css">/* returns */
|
| 317 |
+
*:attr(contributors, [email=ruyadorno@github.com])
|
| 318 |
+
</code></pre>
|
| 319 |
+
<h3 id="groups">Groups</h3>
|
| 320 |
+
<p>Dependency groups are defined by the package relationships to their ancestors (ie.
|
| 321 |
+
the dependency types that are defined in <code>package.json</code>).
|
| 322 |
+
This approach is user-centric as the ecosystem has been taught to think about dependencies in these groups first-and-foremost.
|
| 323 |
+
Dependencies are allowed to be included in multiple groups (ex.
|
| 324 |
+
a <code>prod</code> dependency may also be a <code>dev</code> dependency (in that it's also required by another <code>dev</code> dependency) & may also be <code>bundled</code> - a selector for that type of dependency would look like: <code>*.prod.dev.bundled</code>).</p>
|
| 325 |
+
<ul>
|
| 326 |
+
<li><code>.prod</code></li>
|
| 327 |
+
<li><code>.dev</code></li>
|
| 328 |
+
<li><code>.optional</code></li>
|
| 329 |
+
<li><code>.peer</code></li>
|
| 330 |
+
<li><code>.bundled</code></li>
|
| 331 |
+
<li><code>.workspace</code></li>
|
| 332 |
+
</ul>
|
| 333 |
+
<p>Please note that currently <code>workspace</code> deps are always <code>prod</code> dependencies.
|
| 334 |
+
Additionally the <code>.root</code> dependency is also considered a <code>prod</code> dependency.</p>
|
| 335 |
+
<h3 id="programmatic-usage">Programmatic Usage</h3>
|
| 336 |
+
<ul>
|
| 337 |
+
<li><code>Arborist</code>'s <code>Node</code> Class has a <code>.querySelectorAll()</code> method
|
| 338 |
+
<ul>
|
| 339 |
+
<li>this method will return a filtered, flattened dependency Arborist <code>Node</code> list based on a valid query selector</li>
|
| 340 |
+
</ul>
|
| 341 |
+
</li>
|
| 342 |
+
</ul>
|
| 343 |
+
<pre><code class="language-js">const Arborist = require('@npmcli/arborist')
|
| 344 |
+
const arb = new Arborist({})
|
| 345 |
+
</code></pre>
|
| 346 |
+
<pre><code class="language-js">// root-level
|
| 347 |
+
arb.loadActual().then(async (tree) => {
|
| 348 |
+
// query all production dependencies
|
| 349 |
+
const results = await tree.querySelectorAll('.prod')
|
| 350 |
+
console.log(results)
|
| 351 |
+
})
|
| 352 |
+
</code></pre>
|
| 353 |
+
<pre><code class="language-js">// iterative
|
| 354 |
+
arb.loadActual().then(async (tree) => {
|
| 355 |
+
// query for the deduped version of react
|
| 356 |
+
const results = await tree.querySelectorAll('#react:not(:deduped)')
|
| 357 |
+
// query the deduped react for git deps
|
| 358 |
+
const deps = await results[0].querySelectorAll(':type(git)')
|
| 359 |
+
console.log(deps)
|
| 360 |
+
})
|
| 361 |
+
</code></pre>
|
| 362 |
+
<h2 id="see-also">See Also</h2>
|
| 363 |
+
<ul>
|
| 364 |
+
<li><a href="../commands/npm-query.html">npm query</a></li>
|
| 365 |
+
<li><a href="https://npm.im/@npmcli/arborist">@npmcli/arborist</a></li>
|
| 366 |
+
</ul></div>
|
| 367 |
+
|
| 368 |
+
<footer id="edit">
|
| 369 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/dependency-selectors.md">
|
| 370 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 371 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 372 |
+
</svg>
|
| 373 |
+
Edit this page on GitHub
|
| 374 |
+
</a>
|
| 375 |
+
</footer>
|
| 376 |
+
</section>
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/developers.html
ADDED
|
@@ -0,0 +1,330 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>developers</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----developers----1162">
|
| 145 |
+
<span>developers</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Developer Guide</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#about-these-documents">About These Documents</a></li><li><a href="#what-is-a-package">What is a Package</a></li><li><a href="#the-packagejson-file">The package.json File</a></li><li><a href="#keeping-files-out-of-your-package">Keeping files <em>out</em> of your Package</a></li><ul><li><a href="#testing-whether-your-npmignore-or-files-config-works">Testing whether your <code>.npmignore</code> or <code>files</code> config works</a></li></ul><li><a href="#link-packages">Link Packages</a></li><li><a href="#before-publishing-make-sure-your-package-installs-and-works">Before Publishing: Make Sure Your Package Installs and Works</a></li><li><a href="#create-a-user-account">Create a User Account</a></li><li><a href="#publish-your-package">Publish your Package</a></li><li><a href="#brag-about-it">Brag about it</a></li><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>So, you've decided to use npm to develop (and maybe publish/deploy) your project.</p>
|
| 158 |
+
<p>Fantastic!</p>
|
| 159 |
+
<p>There are a few things that you need to do above the simple steps that your users will do to install your program.</p>
|
| 160 |
+
<h3 id="about-these-documents">About These Documents</h3>
|
| 161 |
+
<p>These are man pages.
|
| 162 |
+
If you install npm, you should be able to then do <code>man npm-thing</code> to get the documentation on a particular topic, or <code>npm help thing</code> to see the same information.</p>
|
| 163 |
+
<h3 id="what-is-a-package">What is a Package</h3>
|
| 164 |
+
<p>A package is:</p>
|
| 165 |
+
<ul>
|
| 166 |
+
<li>a) a folder containing a program described by a package.json file</li>
|
| 167 |
+
<li>b) a gzipped tarball containing (a)</li>
|
| 168 |
+
<li>c) a url that resolves to (b)</li>
|
| 169 |
+
<li>d) a <code><name>@<version></code> that is published on the registry with (c)</li>
|
| 170 |
+
<li>e) a <code><name>@<tag></code> that points to (d)</li>
|
| 171 |
+
<li>f) a <code><name></code> that has a "latest" tag satisfying (e)</li>
|
| 172 |
+
<li>g) a <code>git</code> url that, when cloned, results in (a).</li>
|
| 173 |
+
</ul>
|
| 174 |
+
<p>Even if you never publish your package, you can still get a lot of benefits of using npm if you just want to write a node program (a), and perhaps if you also want to be able to easily install it elsewhere after packing it up into a tarball (b).</p>
|
| 175 |
+
<p>Git urls can be of the form:</p>
|
| 176 |
+
<pre><code class="language-bash">git://github.com/user/project.git#commit-ish
|
| 177 |
+
git+ssh://user@hostname:project.git#commit-ish
|
| 178 |
+
git+http://user@hostname/project/blah.git#commit-ish
|
| 179 |
+
git+https://user@hostname/project/blah.git#commit-ish
|
| 180 |
+
</code></pre>
|
| 181 |
+
<p>The <code>commit-ish</code> can be any tag, sha, or branch which can be supplied as an argument to <code>git checkout</code>.
|
| 182 |
+
The default is whatever the repository uses as its default branch.</p>
|
| 183 |
+
<h3 id="the-packagejson-file">The package.json File</h3>
|
| 184 |
+
<p>You need to have a <code>package.json</code> file in the root of your project to do much of anything with npm.
|
| 185 |
+
That is basically the whole interface.</p>
|
| 186 |
+
<p>See <a href="../configuring-npm/package-json.html"><code>package.json</code></a> for details about what goes in that file.
|
| 187 |
+
At the very least, you need:</p>
|
| 188 |
+
<ul>
|
| 189 |
+
<li>
|
| 190 |
+
<p>name: This should be a string that identifies your project.
|
| 191 |
+
Please do not use the name to specify that it runs on node, or is in JavaScript.
|
| 192 |
+
You can use the "engines" field to explicitly state the versions of node (or whatever else) that your program requires, and it's pretty well assumed that it's JavaScript.</p>
|
| 193 |
+
<p>It does not necessarily need to match your github repository name.</p>
|
| 194 |
+
<p>So, <code>node-foo</code> and <code>bar-js</code> are bad names.
|
| 195 |
+
<code>foo</code> or <code>bar</code> are better.</p>
|
| 196 |
+
</li>
|
| 197 |
+
<li>
|
| 198 |
+
<p>version: A semver-compatible version.</p>
|
| 199 |
+
</li>
|
| 200 |
+
<li>
|
| 201 |
+
<p>engines: Specify the versions of node (or whatever else) that your program runs on.
|
| 202 |
+
The node API changes a lot, and there may be bugs or new functionality that you depend on.
|
| 203 |
+
Be explicit.</p>
|
| 204 |
+
</li>
|
| 205 |
+
<li>
|
| 206 |
+
<p>author: Take some credit.</p>
|
| 207 |
+
</li>
|
| 208 |
+
<li>
|
| 209 |
+
<p>scripts: If you have a special compilation or installation script, then you should put it in the <code>scripts</code> object.
|
| 210 |
+
You should definitely have at least a basic smoke-test command as the "scripts.test" field.
|
| 211 |
+
See <a href="../using-npm/scripts.html">scripts</a>.</p>
|
| 212 |
+
</li>
|
| 213 |
+
<li>
|
| 214 |
+
<p>main: If you have a single module that serves as the entry point to your program (like what the "foo" package gives you at require("foo")), then you need to specify that in the "main" field.</p>
|
| 215 |
+
</li>
|
| 216 |
+
<li>
|
| 217 |
+
<p>directories: This is an object mapping names to folders.
|
| 218 |
+
The best ones to include are "lib" and "doc", but if you use "man" to specify a folder full of man pages, they'll get installed just like these ones.</p>
|
| 219 |
+
</li>
|
| 220 |
+
</ul>
|
| 221 |
+
<p>You can use <code>npm init</code> in the root of your package in order to get you started with a pretty basic package.json file.
|
| 222 |
+
See <a href="../commands/npm-init.html"><code>npm init</code></a> for more info.</p>
|
| 223 |
+
<h3 id="keeping-files-out-of-your-package">Keeping files <em>out</em> of your Package</h3>
|
| 224 |
+
<p>Use a <code>.npmignore</code> file to keep stuff out of your package.
|
| 225 |
+
If there's no <code>.npmignore</code> file, but there <em>is</em> a <code>.gitignore</code> file, then npm will ignore the stuff matched by the <code>.gitignore</code> file.
|
| 226 |
+
If you <em>want</em> to include something that is excluded by your <code>.gitignore</code> file, you can create an empty <code>.npmignore</code> file to override it.
|
| 227 |
+
Like <code>git</code>, <code>npm</code> looks for <code>.npmignore</code> and <code>.gitignore</code> files in all subdirectories of your package, not only the root directory.</p>
|
| 228 |
+
<p><code>.npmignore</code> files follow the <a href="https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#_ignoring">same pattern rules</a> as <code>.gitignore</code> files:</p>
|
| 229 |
+
<ul>
|
| 230 |
+
<li>Blank lines or lines starting with <code>#</code> are ignored.</li>
|
| 231 |
+
<li>Standard glob patterns work.</li>
|
| 232 |
+
<li>You can end patterns with a forward slash <code>/</code> to specify a directory.</li>
|
| 233 |
+
<li>You can negate a pattern by starting it with an exclamation point <code>!</code>.</li>
|
| 234 |
+
</ul>
|
| 235 |
+
<p>By default, some paths and files are ignored, so there's no need to add them to <code>.npmignore</code> explicitly.
|
| 236 |
+
Some examples are:</p>
|
| 237 |
+
<ul>
|
| 238 |
+
<li><code>.*.swp</code></li>
|
| 239 |
+
<li><code>._*</code></li>
|
| 240 |
+
<li><code>.DS_Store</code></li>
|
| 241 |
+
<li><code>.git</code></li>
|
| 242 |
+
<li><code>.gitignore</code></li>
|
| 243 |
+
<li><code>.hg</code></li>
|
| 244 |
+
<li><code>.npmignore</code></li>
|
| 245 |
+
<li><code>.npmrc</code></li>
|
| 246 |
+
<li><code>.lock-wscript</code></li>
|
| 247 |
+
<li><code>.svn</code></li>
|
| 248 |
+
<li><code>.wafpickle-*</code></li>
|
| 249 |
+
<li><code>config.gypi</code></li>
|
| 250 |
+
<li><code>CVS</code></li>
|
| 251 |
+
<li><code>npm-debug.log</code></li>
|
| 252 |
+
</ul>
|
| 253 |
+
<p>Additionally, everything in <code>node_modules</code> is ignored, except for bundled dependencies.
|
| 254 |
+
npm automatically handles this for you, so don't bother adding <code>node_modules</code> to <code>.npmignore</code>.</p>
|
| 255 |
+
<p>The following paths and files are never ignored, so adding them to <code>.npmignore</code> is pointless:</p>
|
| 256 |
+
<ul>
|
| 257 |
+
<li><code>package.json</code></li>
|
| 258 |
+
<li><code>README</code> (and its variants)</li>
|
| 259 |
+
<li><code>LICENSE</code> / <code>LICENCE</code></li>
|
| 260 |
+
</ul>
|
| 261 |
+
<p>If, given the structure of your project, you find <code>.npmignore</code> to be a maintenance headache, you might instead try populating the <code>files</code> property of <code>package.json</code>, which is an array of file or directory names that should be included in your package.
|
| 262 |
+
Sometimes manually picking which items to allow is easier to manage than building a block list.</p>
|
| 263 |
+
<p>See <a href="../configuring-npm/package-json.html"><code>package.json</code></a> for more info on what can and can't be ignored.</p>
|
| 264 |
+
<h4 id="testing-whether-your-npmignore-or-files-config-works">Testing whether your <code>.npmignore</code> or <code>files</code> config works</h4>
|
| 265 |
+
<p>If you want to double check that your package will include only the files you intend it to when published, you can run the <code>npm pack</code> command locally which will generate a tarball in the working directory, the same way it does for publishing.</p>
|
| 266 |
+
<h3 id="link-packages">Link Packages</h3>
|
| 267 |
+
<p><code>npm link</code> is designed to install a development package and see the changes in real time without having to keep re-installing it.
|
| 268 |
+
(You do need to either re-link or <code>npm rebuild -g</code> to update compiled packages, of course.)</p>
|
| 269 |
+
<p>More info at <a href="../commands/npm-link.html"><code>npm link</code></a>.</p>
|
| 270 |
+
<h3 id="before-publishing-make-sure-your-package-installs-and-works">Before Publishing: Make Sure Your Package Installs and Works</h3>
|
| 271 |
+
<p><strong>This is important.</strong></p>
|
| 272 |
+
<p>If you cannot install it locally, you'll have problems trying to publish it.
|
| 273 |
+
Or, worse yet, you'll be able to publish it, but you'll be publishing a broken or pointless package.
|
| 274 |
+
So don't do that.</p>
|
| 275 |
+
<p>In the root of your package, do this:</p>
|
| 276 |
+
<pre><code class="language-bash">npm install . -g
|
| 277 |
+
</code></pre>
|
| 278 |
+
<p>That'll show you that it's working.
|
| 279 |
+
If you'd rather just create a symlink package that points to your working directory, then do this:</p>
|
| 280 |
+
<pre><code class="language-bash">npm link
|
| 281 |
+
</code></pre>
|
| 282 |
+
<p>Use <code>npm ls -g</code> to see if it's there.</p>
|
| 283 |
+
<p>To test a local install, go into some other folder, and then do:</p>
|
| 284 |
+
<pre><code class="language-bash">cd ../some-other-folder
|
| 285 |
+
npm install ../my-package
|
| 286 |
+
</code></pre>
|
| 287 |
+
<p>to install it locally into the node_modules folder in that other place.</p>
|
| 288 |
+
<p>Then go into the node-repl, and try using require("my-thing") to bring in your module's main module.</p>
|
| 289 |
+
<h3 id="create-a-user-account">Create a User Account</h3>
|
| 290 |
+
<p>Create a user with the adduser command.
|
| 291 |
+
It works like this:</p>
|
| 292 |
+
<pre><code class="language-bash">npm adduser
|
| 293 |
+
</code></pre>
|
| 294 |
+
<p>and then follow the prompts.</p>
|
| 295 |
+
<p>This is documented better in <a href="../commands/npm-adduser.html">npm adduser</a>.</p>
|
| 296 |
+
<h3 id="publish-your-package">Publish your Package</h3>
|
| 297 |
+
<p>This part's easy.
|
| 298 |
+
In the root of your folder, do this:</p>
|
| 299 |
+
<pre><code class="language-bash">npm publish
|
| 300 |
+
</code></pre>
|
| 301 |
+
<p>You can give publish a url to a tarball, or a filename of a tarball, or a path to a folder.</p>
|
| 302 |
+
<p>Note that pretty much <strong>everything in that folder will be exposed</strong> by default.
|
| 303 |
+
So, if you have secret stuff in there, use a <code>.npmignore</code> file to list out the globs to ignore, or publish from a fresh checkout.</p>
|
| 304 |
+
<h3 id="brag-about-it">Brag about it</h3>
|
| 305 |
+
<p>Send emails, write blogs, blab in IRC.</p>
|
| 306 |
+
<p>Tell the world how easy it is to install your program!</p>
|
| 307 |
+
<h3 id="see-also">See also</h3>
|
| 308 |
+
<ul>
|
| 309 |
+
<li><a href="../commands/npm.html">npm</a></li>
|
| 310 |
+
<li><a href="../commands/npm-init.html">npm init</a></li>
|
| 311 |
+
<li><a href="../configuring-npm/package-json.html">package.json</a></li>
|
| 312 |
+
<li><a href="../using-npm/scripts.html">npm scripts</a></li>
|
| 313 |
+
<li><a href="../commands/npm-publish.html">npm publish</a></li>
|
| 314 |
+
<li><a href="../commands/npm-adduser.html">npm adduser</a></li>
|
| 315 |
+
<li><a href="../using-npm/registry.html">npm registry</a></li>
|
| 316 |
+
</ul></div>
|
| 317 |
+
|
| 318 |
+
<footer id="edit">
|
| 319 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/developers.md">
|
| 320 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 321 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 322 |
+
</svg>
|
| 323 |
+
Edit this page on GitHub
|
| 324 |
+
</a>
|
| 325 |
+
</footer>
|
| 326 |
+
</section>
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/logging.html
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>Logging</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----logging----1162">
|
| 145 |
+
<span>Logging</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Why, What & How We Log</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#setting-log-file-location">Setting Log File Location</a></li><li><a href="#setting-log-levels">Setting Log Levels</a></li><ul><li><a href="#loglevel"><code>loglevel</code></a></li><ul><li><a href="#aliases">Aliases</a></li></ul><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li></ul><li><a href="#timing-information">Timing Information</a></li><li><a href="#registry-response-headers">Registry Response Headers</a></li><ul><li><a href="#npm-notice"><code>npm-notice</code></a></li></ul><li><a href="#logs-and-sensitive-information">Logs and Sensitive Information</a></li><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>The <code>npm</code> CLI has various mechanisms for showing different levels of information back to end-users for certain commands, configurations & environments.</p>
|
| 158 |
+
<h3 id="setting-log-file-location">Setting Log File Location</h3>
|
| 159 |
+
<p>All logs are written to a debug log, with the path to that file printed if the execution of a command fails.</p>
|
| 160 |
+
<p>The default location of the logs directory is a directory named <code>_logs</code> inside the npm cache.
|
| 161 |
+
This can be changed with the <code>logs-dir</code> config option.</p>
|
| 162 |
+
<p>For example, if you wanted to write all your logs to the current working directory, you could run: <code>npm install --logs-dir=.</code>.
|
| 163 |
+
This is especially helpful in debugging a specific <code>npm</code> issue as you can run a command multiple times with different config values and then diff all the log files.</p>
|
| 164 |
+
<p>Log files will be removed from the <code>logs-dir</code> when the number of log files exceeds <code>logs-max</code>, with the oldest logs being deleted first.</p>
|
| 165 |
+
<p>To turn off logs completely set <code>--logs-max=0</code>.</p>
|
| 166 |
+
<h3 id="setting-log-levels">Setting Log Levels</h3>
|
| 167 |
+
<h4 id="loglevel"><code>loglevel</code></h4>
|
| 168 |
+
<p><code>loglevel</code> is a global argument/config that can be set to determine the type of information to be displayed.</p>
|
| 169 |
+
<p>The default value of <code>loglevel</code> is <code>"notice"</code> but there are several levels/types of logs available, including:</p>
|
| 170 |
+
<ul>
|
| 171 |
+
<li><code>"silent"</code></li>
|
| 172 |
+
<li><code>"error"</code></li>
|
| 173 |
+
<li><code>"warn"</code></li>
|
| 174 |
+
<li><code>"notice"</code></li>
|
| 175 |
+
<li><code>"http"</code></li>
|
| 176 |
+
<li><code>"info"</code></li>
|
| 177 |
+
<li><code>"verbose"</code></li>
|
| 178 |
+
<li><code>"silly"</code></li>
|
| 179 |
+
</ul>
|
| 180 |
+
<p>All logs pertaining to a level preceding the current setting will be shown.</p>
|
| 181 |
+
<h5 id="aliases">Aliases</h5>
|
| 182 |
+
<p>The log levels listed above have various corresponding aliases, including:</p>
|
| 183 |
+
<ul>
|
| 184 |
+
<li><code>-d</code>: <code>--loglevel info</code></li>
|
| 185 |
+
<li><code>--dd</code>: <code>--loglevel verbose</code></li>
|
| 186 |
+
<li><code>--verbose</code>: <code>--loglevel verbose</code></li>
|
| 187 |
+
<li><code>--ddd</code>: <code>--loglevel silly</code></li>
|
| 188 |
+
<li><code>-q</code>: <code>--loglevel warn</code></li>
|
| 189 |
+
<li><code>--quiet</code>: <code>--loglevel warn</code></li>
|
| 190 |
+
<li><code>-s</code>: <code>--loglevel silent</code></li>
|
| 191 |
+
<li><code>--silent</code>: <code>--loglevel silent</code></li>
|
| 192 |
+
</ul>
|
| 193 |
+
<h4 id="foreground-scripts"><code>foreground-scripts</code></h4>
|
| 194 |
+
<p>The <code>npm</code> CLI began hiding the output of lifecycle scripts for <code>npm install</code> as of <code>v7</code>.
|
| 195 |
+
Notably, this means you will not see logs/output from packages that may be using "install scripts" to display information back to you or from your own project's scripts defined in <code>package.json</code>.
|
| 196 |
+
If you'd like to change this behavior & log this output you can set <code>foreground-scripts</code> to <code>true</code>.</p>
|
| 197 |
+
<h3 id="timing-information">Timing Information</h3>
|
| 198 |
+
<p>The <a href="../using-npm/config#timing.html"><code>--timing</code> config</a> can be set which does a few things:</p>
|
| 199 |
+
<ol>
|
| 200 |
+
<li>Always shows the full path to the debug log regardless of command exit status</li>
|
| 201 |
+
<li>Write timing information to a process specific timing file in the cache or <code>logs-dir</code></li>
|
| 202 |
+
<li>Output timing information to the terminal</li>
|
| 203 |
+
</ol>
|
| 204 |
+
<p>This file contains a <code>timers</code> object where the keys are an identifier for the portion of the process being timed and the value is the number of milliseconds it took to complete.</p>
|
| 205 |
+
<p>Sometimes it is helpful to get timing information without outputting anything to the terminal.
|
| 206 |
+
For example, the performance might be affected by writing to the terminal.
|
| 207 |
+
In this case you can use
|
| 208 |
+
<code>--timing --silent</code> which will still write the timing file, but not output anything to the terminal while running.</p>
|
| 209 |
+
<h3 id="registry-response-headers">Registry Response Headers</h3>
|
| 210 |
+
<h4 id="npm-notice"><code>npm-notice</code></h4>
|
| 211 |
+
<p>The <code>npm</code> CLI reads from & logs any <code>npm-notice</code> headers that are returned from the configured registry.
|
| 212 |
+
This mechanism can be used by third-party registries to provide useful information when network-dependent requests occur.</p>
|
| 213 |
+
<p>This header is not cached, and will not be logged if the request is served from the cache.</p>
|
| 214 |
+
<h3 id="logs-and-sensitive-information">Logs and Sensitive Information</h3>
|
| 215 |
+
<p>The <code>npm</code> CLI makes a best effort to redact the following from terminal output and log files:</p>
|
| 216 |
+
<ul>
|
| 217 |
+
<li>Passwords inside basic auth URLs</li>
|
| 218 |
+
<li>npm tokens</li>
|
| 219 |
+
</ul>
|
| 220 |
+
<p>However, this behavior should not be relied on to keep all possible sensitive information redacted.
|
| 221 |
+
If you are concerned about secrets in your log file or terminal output, you can use <code>--loglevel=silent</code> and <code>--logs-max=0</code> to ensure no logs are written to your terminal or filesystem.</p>
|
| 222 |
+
<h3 id="see-also">See also</h3>
|
| 223 |
+
<ul>
|
| 224 |
+
<li><a href="../using-npm/config.html">config</a></li>
|
| 225 |
+
</ul></div>
|
| 226 |
+
|
| 227 |
+
<footer id="edit">
|
| 228 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/logging.md">
|
| 229 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 230 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 231 |
+
</svg>
|
| 232 |
+
Edit this page on GitHub
|
| 233 |
+
</a>
|
| 234 |
+
</footer>
|
| 235 |
+
</section>
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/orgs.html
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>orgs</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----orgs----1162">
|
| 145 |
+
<span>orgs</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Working with Teams & Orgs</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#team-admins-create-teams">Team Admins create teams</a></li><li><a href="#publish-a-package-and-adjust-package-access">Publish a package and adjust package access</a></li><li><a href="#monitor-your-package-access">Monitor your package access</a></li><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>There are three levels of org users:</p>
|
| 158 |
+
<ol>
|
| 159 |
+
<li>Super admin, controls billing & adding people to the org.</li>
|
| 160 |
+
<li>Team admin, manages team membership & package access.</li>
|
| 161 |
+
<li>Developer, works on packages they are given access to.</li>
|
| 162 |
+
</ol>
|
| 163 |
+
<p>The super admin is the only person who can add users to the org because it impacts the monthly bill.
|
| 164 |
+
The super admin will use the website to manage membership.
|
| 165 |
+
Every org has a <code>developers</code> team that all users are automatically added to.</p>
|
| 166 |
+
<p>The team admin is the person who manages team creation, team membership, and package access for teams.
|
| 167 |
+
The team admin grants package access to teams, not individuals.</p>
|
| 168 |
+
<p>The developer will be able to access packages based on the teams they are on.
|
| 169 |
+
Access is either read-write or read-only.</p>
|
| 170 |
+
<p>There are two main commands:</p>
|
| 171 |
+
<ol>
|
| 172 |
+
<li><code>npm team</code> see <a href="../commands/npm-team.html">npm team</a> for more details</li>
|
| 173 |
+
<li><code>npm access</code> see <a href="../commands/npm-access.html">npm access</a> for more details</li>
|
| 174 |
+
</ol>
|
| 175 |
+
<h3 id="team-admins-create-teams">Team Admins create teams</h3>
|
| 176 |
+
<ul>
|
| 177 |
+
<li>Check who you’ve added to your org:</li>
|
| 178 |
+
</ul>
|
| 179 |
+
<pre><code class="language-bash">npm team ls <org>:developers
|
| 180 |
+
</code></pre>
|
| 181 |
+
<ul>
|
| 182 |
+
<li>
|
| 183 |
+
<p>Each org is automatically given a <code>developers</code> team, so you can see the whole list of team members in your org.
|
| 184 |
+
This team automatically gets read-write access to all packages, but you can change that with the <code>access</code> command.</p>
|
| 185 |
+
</li>
|
| 186 |
+
<li>
|
| 187 |
+
<p>Create a new team:</p>
|
| 188 |
+
</li>
|
| 189 |
+
</ul>
|
| 190 |
+
<pre><code class="language-bash">npm team create <org:team>
|
| 191 |
+
</code></pre>
|
| 192 |
+
<ul>
|
| 193 |
+
<li>Add members to that team:</li>
|
| 194 |
+
</ul>
|
| 195 |
+
<pre><code class="language-bash">npm team add <org:team> <user>
|
| 196 |
+
</code></pre>
|
| 197 |
+
<h3 id="publish-a-package-and-adjust-package-access">Publish a package and adjust package access</h3>
|
| 198 |
+
<ul>
|
| 199 |
+
<li>In package directory, run</li>
|
| 200 |
+
</ul>
|
| 201 |
+
<pre><code class="language-bash">npm init --scope=<org>
|
| 202 |
+
</code></pre>
|
| 203 |
+
<p>to scope it for your org & publish as usual</p>
|
| 204 |
+
<ul>
|
| 205 |
+
<li>Grant access:</li>
|
| 206 |
+
</ul>
|
| 207 |
+
<pre><code class="language-bash">npm access grant <read-only|read-write> <org:team> [<package>]
|
| 208 |
+
</code></pre>
|
| 209 |
+
<ul>
|
| 210 |
+
<li>Revoke access:</li>
|
| 211 |
+
</ul>
|
| 212 |
+
<pre><code class="language-bash">npm access revoke <org:team> [<package>]
|
| 213 |
+
</code></pre>
|
| 214 |
+
<h3 id="monitor-your-package-access">Monitor your package access</h3>
|
| 215 |
+
<ul>
|
| 216 |
+
<li>See what org packages a team member can access:</li>
|
| 217 |
+
</ul>
|
| 218 |
+
<pre><code class="language-bash">npm access list packages <org> <user>
|
| 219 |
+
</code></pre>
|
| 220 |
+
<ul>
|
| 221 |
+
<li>See packages available to a specific team:</li>
|
| 222 |
+
</ul>
|
| 223 |
+
<pre><code class="language-bash">npm access list packages <org:team>
|
| 224 |
+
</code></pre>
|
| 225 |
+
<ul>
|
| 226 |
+
<li>Check which teams are collaborating on a package:</li>
|
| 227 |
+
</ul>
|
| 228 |
+
<pre><code class="language-bash">npm access list collaborators <pkg>
|
| 229 |
+
</code></pre>
|
| 230 |
+
<h3 id="see-also">See also</h3>
|
| 231 |
+
<ul>
|
| 232 |
+
<li><a href="../commands/npm-team.html">npm team</a></li>
|
| 233 |
+
<li><a href="../commands/npm-access.html">npm access</a></li>
|
| 234 |
+
<li><a href="../using-npm/scope.html">npm scope</a></li>
|
| 235 |
+
</ul></div>
|
| 236 |
+
|
| 237 |
+
<footer id="edit">
|
| 238 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/orgs.md">
|
| 239 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 240 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 241 |
+
</svg>
|
| 242 |
+
Edit this page on GitHub
|
| 243 |
+
</a>
|
| 244 |
+
</footer>
|
| 245 |
+
</section>
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/package-spec.html
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>package-spec</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----package-spec----1162">
|
| 145 |
+
<span>package-spec</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Package name specifier</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#package-name">Package name</a></li><li><a href="#aliases">Aliases</a></li><li><a href="#folders">Folders</a></li><li><a href="#tarballs">Tarballs</a></li><li><a href="#git-urls">git urls</a></li><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>Commands like <code>npm install</code> and the dependency sections in the <code>package.json</code> use a package name specifier.
|
| 158 |
+
This can be many different things that all refer to a "package". Examples include a package name, git url, tarball, or local directory.
|
| 159 |
+
These will generally be referred to as <code><package-spec></code> in the help output for the npm commands that use this package name specifier.</p>
|
| 160 |
+
<h3 id="package-name">Package name</h3>
|
| 161 |
+
<ul>
|
| 162 |
+
<li><code>[<@scope>/]<pkg></code></li>
|
| 163 |
+
<li><code>[<@scope>/]<pkg>@<tag></code></li>
|
| 164 |
+
<li><code>[<@scope>/]<pkg>@<version></code></li>
|
| 165 |
+
<li><code>[<@scope>/]<pkg>@<version range></code></li>
|
| 166 |
+
</ul>
|
| 167 |
+
<p>Refers to a package by name, with or without a scope, and optionally tag, version, or version range.
|
| 168 |
+
This is typically used in combination with the <a href="../using-npm/config#registry.html">registry</a> config to refer to a package in a registry.</p>
|
| 169 |
+
<p>Examples:</p>
|
| 170 |
+
<ul>
|
| 171 |
+
<li><code>npm</code></li>
|
| 172 |
+
<li><code>@npmcli/arborist</code></li>
|
| 173 |
+
<li><code>@npmcli/arborist@latest</code></li>
|
| 174 |
+
<li><code>npm@6.13.1</code></li>
|
| 175 |
+
<li><code>npm@^4.0.0</code></li>
|
| 176 |
+
</ul>
|
| 177 |
+
<h3 id="aliases">Aliases</h3>
|
| 178 |
+
<ul>
|
| 179 |
+
<li><code><alias>@npm:<name></code></li>
|
| 180 |
+
</ul>
|
| 181 |
+
<p>Primarily used by commands like <code>npm install</code> and in the dependency sections in the <code>package.json</code>, this refers to a package by an alias.
|
| 182 |
+
The <code><alias></code> is the name of the package as it is reified in the <code>node_modules</code> folder, and the <code><name></code> refers to a package name as found in the configured registry.</p>
|
| 183 |
+
<p>See <code>Package name</code> above for more info on referring to a package by name, and <a href="../using-npm/config#registry.html">registry</a> for configuring which registry is used when referring to a package by name.</p>
|
| 184 |
+
<p>Examples:</p>
|
| 185 |
+
<ul>
|
| 186 |
+
<li><code>semver:@npm:@npmcli/semver-with-patch</code></li>
|
| 187 |
+
<li><code>semver:@npm:semver@7.2.2</code></li>
|
| 188 |
+
<li><code>semver:@npm:semver@legacy</code></li>
|
| 189 |
+
</ul>
|
| 190 |
+
<h3 id="folders">Folders</h3>
|
| 191 |
+
<ul>
|
| 192 |
+
<li><code><folder></code></li>
|
| 193 |
+
</ul>
|
| 194 |
+
<p>This refers to a package on the local filesystem.
|
| 195 |
+
Specifically this is a folder with a <code>package.json</code> file in it.
|
| 196 |
+
This <em>should</em> always be prefixed with a <code>/</code> or <code>./</code> (or your OS equivalent) to reduce confusion.
|
| 197 |
+
npm currently will parse a string with more than one <code>/</code> in it as a folder, but this is legacy behavior that may be removed in a future version.</p>
|
| 198 |
+
<p>Examples:</p>
|
| 199 |
+
<ul>
|
| 200 |
+
<li><code>./my-package</code></li>
|
| 201 |
+
<li><code>/opt/npm/my-package</code></li>
|
| 202 |
+
</ul>
|
| 203 |
+
<h3 id="tarballs">Tarballs</h3>
|
| 204 |
+
<ul>
|
| 205 |
+
<li><code><tarball file></code></li>
|
| 206 |
+
<li><code><tarball url></code></li>
|
| 207 |
+
</ul>
|
| 208 |
+
<p>Examples:</p>
|
| 209 |
+
<ul>
|
| 210 |
+
<li><code>./my-package.tgz</code></li>
|
| 211 |
+
<li><code>https://registry.npmjs.org/semver/-/semver-1.0.0.tgz</code></li>
|
| 212 |
+
</ul>
|
| 213 |
+
<p>Refers to a package in a tarball format, either on the local filesystem or remotely via url.
|
| 214 |
+
This is the format that packages exist in when uploaded to a registry.</p>
|
| 215 |
+
<h3 id="git-urls">git urls</h3>
|
| 216 |
+
<ul>
|
| 217 |
+
<li><code><git:// url></code></li>
|
| 218 |
+
<li><code><github username>/<github project></code></li>
|
| 219 |
+
</ul>
|
| 220 |
+
<p>Refers to a package in a git repo.
|
| 221 |
+
This can be a full git url, git shorthand, or a username/package on GitHub.
|
| 222 |
+
You can specify a git tag, branch, or other git ref by appending <code>#ref</code>.</p>
|
| 223 |
+
<p>Examples:</p>
|
| 224 |
+
<ul>
|
| 225 |
+
<li><code>https://github.com/npm/cli.git</code></li>
|
| 226 |
+
<li><code>git@github.com:npm/cli.git</code></li>
|
| 227 |
+
<li><code>git+ssh://git@github.com/npm/cli#v6.0.0</code></li>
|
| 228 |
+
<li><code>github:npm/cli#HEAD</code></li>
|
| 229 |
+
<li><code>npm/cli#c12ea07</code></li>
|
| 230 |
+
</ul>
|
| 231 |
+
<h3 id="see-also">See also</h3>
|
| 232 |
+
<ul>
|
| 233 |
+
<li><a href="https://npm.im/npm-package-arg">npm-package-arg</a></li>
|
| 234 |
+
<li><a href="../using-npm/scope.html">scope</a></li>
|
| 235 |
+
<li><a href="../using-npm/config.html">config</a></li>
|
| 236 |
+
</ul></div>
|
| 237 |
+
|
| 238 |
+
<footer id="edit">
|
| 239 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/package-spec.md">
|
| 240 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 241 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 242 |
+
</svg>
|
| 243 |
+
Edit this page on GitHub
|
| 244 |
+
</a>
|
| 245 |
+
</footer>
|
| 246 |
+
</section>
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
</body></html>
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>registry</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----registry----1162">
|
| 145 |
+
<span>registry</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">The JavaScript Package Registry</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#does-npm-send-any-information-about-me-back-to-the-registry">Does npm send any information about me back to the registry?</a></li><li><a href="#how-can-i-prevent-my-package-from-being-published-in-the-official-registry">How can I prevent my package from being published in the official registry?</a></li><li><a href="#where-can-i-find-my-and-others-published-packages">Where can I find my (and others') published packages?</a></li><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>To resolve packages by name and version, npm talks to a registry website that implements the CommonJS Package Registry specification for reading package info.</p>
|
| 158 |
+
<p>npm is configured to use the <strong>npm public registry</strong> at
|
| 159 |
+
<a href="https://registry.npmjs.org">https://registry.npmjs.org</a> by default.
|
| 160 |
+
Use of the npm public registry is subject to terms of use available at <a href="https://docs.npmjs.com/policies/terms">https://docs.npmjs.com/policies/terms</a>.</p>
|
| 161 |
+
<p>You can configure npm to use any compatible registry you like, and even run your own registry.
|
| 162 |
+
Use of someone else's registry may be governed by their terms of use.</p>
|
| 163 |
+
<p>npm's package registry implementation supports several write APIs as well, to allow for publishing packages and managing user account information.</p>
|
| 164 |
+
<p>The registry URL used is determined by the scope of the package (see <a href="../using-npm/scope.html"><code>scope</code></a>.
|
| 165 |
+
If no scope is specified, the default registry is used, which is supplied by the <a href="../using-npm/config#registry.html"><code>registry</code> config</a> parameter.
|
| 166 |
+
See <a href="../commands/npm-config.html"><code>npm config</code></a>, <a href="../configuring-npm/npmrc.html"><code>npmrc</code></a>, and <a href="../using-npm/config.html"><code>config</code></a> for more on managing npm's configuration.
|
| 167 |
+
Authentication configuration such as auth tokens and certificates are configured specifically scoped to an individual registry.
|
| 168 |
+
See <a href="../configuring-npm/npmrc#auth-related-configuration.html">Auth Related Configuration</a></p>
|
| 169 |
+
<p>When the default registry is used in a package-lock or shrinkwrap it has the special meaning of "the currently configured registry". If you create a lock file while using the default registry you can switch to another registry and npm will install packages from the new registry, but if you create a lock file while using a custom registry packages will be installed from that registry even after you change to another registry.</p>
|
| 170 |
+
<h3 id="does-npm-send-any-information-about-me-back-to-the-registry">Does npm send any information about me back to the registry?</h3>
|
| 171 |
+
<p>Yes.</p>
|
| 172 |
+
<p>When making requests of the registry npm adds two headers with information about your environment:</p>
|
| 173 |
+
<ul>
|
| 174 |
+
<li><code>Npm-Scope</code> – If your project is scoped, this header will contain its scope.
|
| 175 |
+
In the future npm hopes to build registry features that use this information to allow you to customize your experience for your organization.</li>
|
| 176 |
+
<li><code>Npm-In-CI</code> – Set to "true" if npm believes this install is running in a continuous integration environment, "false" otherwise.
|
| 177 |
+
This is detected by looking for the following environment variables: <code>CI</code>, <code>TDDIUM</code>,
|
| 178 |
+
<code>JENKINS_URL</code>, <code>bamboo.buildKey</code>.
|
| 179 |
+
If you'd like to learn more you may find the <a href="https://github.com/npm/npm-registry-client/pull/129">original PR</a> interesting.
|
| 180 |
+
This is used to gather better metrics on how npm is used by humans, versus build farms.</li>
|
| 181 |
+
</ul>
|
| 182 |
+
<p>The npm registry does not try to correlate the information in these headers with any authenticated accounts that may be used in the same requests.</p>
|
| 183 |
+
<h3 id="how-can-i-prevent-my-package-from-being-published-in-the-official-registry">How can I prevent my package from being published in the official registry?</h3>
|
| 184 |
+
<p>Set <code>"private": true</code> in your <code>package.json</code> to prevent it from being published at all, or
|
| 185 |
+
<code>"publishConfig":{"registry":"http://my-internal-registry.local"}</code>
|
| 186 |
+
to force it to be published only to your internal/private registry.</p>
|
| 187 |
+
<p>See <a href="../configuring-npm/package-json.html"><code>package.json</code></a> for more info on what goes in the package.json file.</p>
|
| 188 |
+
<h3 id="where-can-i-find-my-and-others-published-packages">Where can I find my (and others') published packages?</h3>
|
| 189 |
+
<p><a href="https://www.npmjs.com/">https://www.npmjs.com/</a></p>
|
| 190 |
+
<h3 id="see-also">See also</h3>
|
| 191 |
+
<ul>
|
| 192 |
+
<li><a href="../commands/npm-config.html">npm config</a></li>
|
| 193 |
+
<li><a href="../using-npm/config.html">config</a></li>
|
| 194 |
+
<li><a href="../configuring-npm/npmrc.html">npmrc</a></li>
|
| 195 |
+
<li><a href="../using-npm/developers.html">npm developers</a></li>
|
| 196 |
+
</ul></div>
|
| 197 |
+
|
| 198 |
+
<footer id="edit">
|
| 199 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/registry.md">
|
| 200 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 201 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 202 |
+
</svg>
|
| 203 |
+
Edit this page on GitHub
|
| 204 |
+
</a>
|
| 205 |
+
</footer>
|
| 206 |
+
</section>
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/removal.html
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>removal</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----removal----1162">
|
| 145 |
+
<span>removal</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Cleaning the Slate</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#more-severe-uninstalling">More Severe Uninstalling</a></li><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
| 157 |
+
<p>So sad to see you go.</p>
|
| 158 |
+
<pre><code class="language-bash">sudo npm uninstall npm -g
|
| 159 |
+
</code></pre>
|
| 160 |
+
<p>Or, if that fails, please proceed to more severe uninstalling methods.</p>
|
| 161 |
+
<h3 id="more-severe-uninstalling">More Severe Uninstalling</h3>
|
| 162 |
+
<p>Usually, the above instructions are sufficient.
|
| 163 |
+
That will remove npm, but leave behind anything you've installed.</p>
|
| 164 |
+
<p>If that doesn't work, or if you require more drastic measures, continue reading.</p>
|
| 165 |
+
<p>Note that this is only necessary for globally-installed packages.
|
| 166 |
+
Local installs are completely contained within a project's <code>node_modules</code> folder.
|
| 167 |
+
Delete that folder, and everything is gone unless a package's install script is particularly ill-behaved.</p>
|
| 168 |
+
<p>This assumes that you installed node and npm in the default place.
|
| 169 |
+
If you configured node with a different <code>--prefix</code>, or installed npm with a different prefix setting, then adjust the paths accordingly, replacing
|
| 170 |
+
<code>/usr/local</code> with your install prefix.</p>
|
| 171 |
+
<p>To remove everything npm-related manually:</p>
|
| 172 |
+
<pre><code class="language-bash">rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*
|
| 173 |
+
</code></pre>
|
| 174 |
+
<p>If you installed things <em>with</em> npm, then your best bet is to uninstall them with npm first, and then install them again once you have a proper install.
|
| 175 |
+
This can help find any symlinks that are lying around:</p>
|
| 176 |
+
<pre><code class="language-bash">ls -laF /usr/local/{lib/node{,/.npm},bin,share/man} | grep npm
|
| 177 |
+
</code></pre>
|
| 178 |
+
<p>Prior to version 0.3, npm used shim files for executables and node modules.
|
| 179 |
+
To track those down, you can do the following:</p>
|
| 180 |
+
<pre><code class="language-bash">find /usr/local/{lib/node,bin} -exec grep -l npm \{\} \; ;
|
| 181 |
+
</code></pre>
|
| 182 |
+
<h3 id="see-also">See also</h3>
|
| 183 |
+
<ul>
|
| 184 |
+
<li><a href="../commands/npm-uninstall.html">npm uninstall</a></li>
|
| 185 |
+
<li><a href="../commands/npm-prune.html">npm prune</a></li>
|
| 186 |
+
</ul></div>
|
| 187 |
+
|
| 188 |
+
<footer id="edit">
|
| 189 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/removal.md">
|
| 190 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 191 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 192 |
+
</svg>
|
| 193 |
+
Edit this page on GitHub
|
| 194 |
+
</a>
|
| 195 |
+
</footer>
|
| 196 |
+
</section>
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/scope.html
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>scope</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----scope----1162">
|
| 145 |
+
<span>scope</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Scoped packages</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#installing-scoped-packages">Installing scoped packages</a></li><li><a href="#requiring-scoped-packages">Requiring scoped packages</a></li><li><a href="#publishing-scoped-packages">Publishing scoped packages</a></li><ul><li><a href="#publishing-public-scoped-packages-to-the-primary-npm-registry">Publishing public scoped packages to the primary npm registry</a></li><li><a href="#publishing-private-scoped-packages-to-the-npm-registry">Publishing private scoped packages to the npm registry</a></li></ul><li><a href="#associating-a-scope-with-a-registry">Associating a scope with a registry</a></li><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>All npm packages have a name.
|
| 158 |
+
Some package names also have a scope.
|
| 159 |
+
A scope follows the usual rules for package names (URL-safe characters, no leading dots or underscores).
|
| 160 |
+
When used in package names, scopes are preceded by an <code>@</code> symbol and followed by a slash, e.g.</p>
|
| 161 |
+
<pre><code class="language-bash">@somescope/somepackagename
|
| 162 |
+
</code></pre>
|
| 163 |
+
<p>Scopes are a way of grouping related packages together, and also affect a few things about the way npm treats the package.</p>
|
| 164 |
+
<p>Each npm user/organization has their own scope, and only you can add packages in your scope.
|
| 165 |
+
This means you don't have to worry about someone taking your package name ahead of you.
|
| 166 |
+
Thus it is also a good way to signal official packages for organizations.</p>
|
| 167 |
+
<p>Scoped packages can be published and installed as of <code>npm@2</code> and are supported by the primary npm registry.
|
| 168 |
+
Unscoped packages can depend on scoped packages and vice versa.
|
| 169 |
+
The npm client is backwards-compatible with unscoped registries, so it can be used to work with scoped and unscoped registries at the same time.</p>
|
| 170 |
+
<h3 id="installing-scoped-packages">Installing scoped packages</h3>
|
| 171 |
+
<p>Scoped packages are installed to a sub-folder of the regular installation folder, e.g. if your other packages are installed in <code>node_modules/packagename</code>, scoped modules will be installed in <code>node_modules/@myorg/packagename</code>.
|
| 172 |
+
The scope folder (<code>@myorg</code>) is simply the name of the scope preceded by an <code>@</code> symbol, and can contain any number of scoped packages.</p>
|
| 173 |
+
<p>A scoped package is installed by referencing it by name, preceded by an
|
| 174 |
+
<code>@</code> symbol, in <code>npm install</code>:</p>
|
| 175 |
+
<pre><code class="language-bash">npm install @myorg/mypackage
|
| 176 |
+
</code></pre>
|
| 177 |
+
<p>Or in <code>package.json</code>:</p>
|
| 178 |
+
<pre><code class="language-json">"dependencies": {
|
| 179 |
+
"@myorg/mypackage": "^1.3.0"
|
| 180 |
+
}
|
| 181 |
+
</code></pre>
|
| 182 |
+
<p>Note that if the <code>@</code> symbol is omitted, in either case, npm will instead attempt to install from GitHub; see <a href="../commands/npm-install.html"><code>npm install</code></a>.</p>
|
| 183 |
+
<h3 id="requiring-scoped-packages">Requiring scoped packages</h3>
|
| 184 |
+
<p>Because scoped packages are installed into a scope folder, you have to include the name of the scope when requiring them in your code, e.g.</p>
|
| 185 |
+
<pre><code class="language-javascript">require('@myorg/mypackage')
|
| 186 |
+
</code></pre>
|
| 187 |
+
<p>There is nothing special about the way Node treats scope folders.
|
| 188 |
+
This simply requires the <code>mypackage</code> module in the folder named <code>@myorg</code>.</p>
|
| 189 |
+
<h3 id="publishing-scoped-packages">Publishing scoped packages</h3>
|
| 190 |
+
<p>Scoped packages can be published from the CLI as of <code>npm@2</code> and can be published to any registry that supports them, including the primary npm registry.</p>
|
| 191 |
+
<p>(As of 2015-04-19, and with npm 2.0 or better, the primary npm registry
|
| 192 |
+
<strong>does</strong> support scoped packages.)</p>
|
| 193 |
+
<p>If you wish, you may associate a scope with a registry; see below.</p>
|
| 194 |
+
<h4 id="publishing-public-scoped-packages-to-the-primary-npm-registry">Publishing public scoped packages to the primary npm registry</h4>
|
| 195 |
+
<p>Publishing to a scope, you have two options:</p>
|
| 196 |
+
<ul>
|
| 197 |
+
<li>Publishing to your user scope (example: <code>@username/module</code>)</li>
|
| 198 |
+
<li>Publishing to an organization scope (example: <code>@org/module</code>)</li>
|
| 199 |
+
</ul>
|
| 200 |
+
<p>If publishing a public module to an organization scope, you must first either create an organization with the name of the scope that you'd like to publish to or be added to an existing organization with the appropriate permissions.
|
| 201 |
+
For example, if you'd like to publish to <code>@org</code>, you would need to create the <code>org</code> organization on npmjs.com prior to trying to publish.</p>
|
| 202 |
+
<p>Scoped packages are not public by default.
|
| 203 |
+
You will need to specify
|
| 204 |
+
<code>--access public</code> with the initial <code>npm publish</code> command.
|
| 205 |
+
This will publish the package and set access to <code>public</code> as if you had run <code>npm access public</code> after publishing.
|
| 206 |
+
You do not need to do this when publishing new versions of an existing scoped package.</p>
|
| 207 |
+
<h4 id="publishing-private-scoped-packages-to-the-npm-registry">Publishing private scoped packages to the npm registry</h4>
|
| 208 |
+
<p>To publish a private scoped package to the npm registry, you must have an <a href="https://docs.npmjs.com/private-modules/intro">npm Private Modules</a> account.</p>
|
| 209 |
+
<p>You can then publish the module with <code>npm publish</code> or <code>npm publish --access restricted</code>, and it will be present in the npm registry, with restricted access.
|
| 210 |
+
You can then change the access permissions, if desired, with <code>npm access</code> or on the npmjs.com website.</p>
|
| 211 |
+
<h3 id="associating-a-scope-with-a-registry">Associating a scope with a registry</h3>
|
| 212 |
+
<p>Scopes can be associated with a separate registry.
|
| 213 |
+
This allows you to seamlessly use a mix of packages from the primary npm registry and one or more private registries, such as <a href="https://github.com/features/packages">GitHub Packages</a> or the open source <a href="https://verdaccio.org">Verdaccio</a> project.</p>
|
| 214 |
+
<p>You can associate a scope with a registry at login, e.g.</p>
|
| 215 |
+
<pre><code class="language-bash">npm login --registry=http://reg.example.com --scope=@myco
|
| 216 |
+
</code></pre>
|
| 217 |
+
<p>Scopes have a many-to-one relationship with registries: one registry can host multiple scopes, but a scope only ever points to one registry.</p>
|
| 218 |
+
<p>You can also associate a scope with a registry using <code>npm config</code>:</p>
|
| 219 |
+
<pre><code class="language-bash">npm config set @myco:registry=http://reg.example.com
|
| 220 |
+
</code></pre>
|
| 221 |
+
<p>Once a scope is associated with a registry, any <code>npm install</code> for a package with that scope will request packages from that registry instead.
|
| 222 |
+
Any
|
| 223 |
+
<code>npm publish</code> for a package name that contains the scope will be published to
|
| 224 |
+
that registry instead.</p>
|
| 225 |
+
<h3 id="see-also">See also</h3>
|
| 226 |
+
<ul>
|
| 227 |
+
<li><a href="../commands/npm-install.html">npm install</a></li>
|
| 228 |
+
<li><a href="../commands/npm-publish.html">npm publish</a></li>
|
| 229 |
+
<li><a href="../commands/npm-access.html">npm access</a></li>
|
| 230 |
+
<li><a href="../using-npm/registry.html">npm registry</a></li>
|
| 231 |
+
</ul></div>
|
| 232 |
+
|
| 233 |
+
<footer id="edit">
|
| 234 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/scope.md">
|
| 235 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 236 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 237 |
+
</svg>
|
| 238 |
+
Edit this page on GitHub
|
| 239 |
+
</a>
|
| 240 |
+
</footer>
|
| 241 |
+
</section>
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/scripts.html
ADDED
|
@@ -0,0 +1,470 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>scripts</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----scripts----1162">
|
| 145 |
+
<span>scripts</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">How npm handles the "scripts" field</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#pre--post-scripts">Pre & Post Scripts</a></li><li><a href="#life-cycle-scripts">Life Cycle Scripts</a></li><ul><li><a href="#prepare-and-prepublish">Prepare and Prepublish</a></li><li><a href="#dependencies">Dependencies</a></li></ul><li><a href="#life-cycle-operation-order">Life Cycle Operation Order</a></li><ul><li><a href="#npm-cache-add"><a href="../commands/npm-cache.html"><code>npm cache add</code></a></a></li><li><a href="#npm-ci"><a href="../commands/npm-ci.html"><code>npm ci</code></a></a></li><li><a href="#npm-diff"><a href="../commands/npm-diff.html"><code>npm diff</code></a></a></li><li><a href="#npm-install"><a href="../commands/npm-install.html"><code>npm install</code></a></a></li><li><a href="#npm-pack"><a href="../commands/npm-pack.html"><code>npm pack</code></a></a></li><li><a href="#npm-publish"><a href="../commands/npm-publish.html"><code>npm publish</code></a></a></li><li><a href="#npm-rebuild"><a href="../commands/npm-rebuild.html"><code>npm rebuild</code></a></a></li><li><a href="#npm-restart"><a href="../commands/npm-restart.html"><code>npm restart</code></a></a></li><li><a href="#npm-run-user-defined"><a href="../commands/npm-run.html"><code>npm run <user defined></code></a></a></li><li><a href="#npm-start"><a href="../commands/npm-start.html"><code>npm start</code></a></a></li><li><a href="#npm-stop"><a href="../commands/npm-stop.html"><code>npm stop</code></a></a></li><li><a href="#npm-test"><a href="../commands/npm-test.html"><code>npm test</code></a></a></li><li><a href="#npm-version"><a href="../commands/npm-version.html"><code>npm version</code></a></a></li><li><a href="#a-note-on-a-lack-of-npm-uninstall-scripts">A Note on a lack of <a href="../commands/npm-uninstall.html"><code>npm uninstall</code></a> scripts</a></li></ul><li><a href="#working-directory-for-scripts">Working Directory for Scripts</a></li><ul><li><a href="#historical-behavior-in-older-npm-versions">Historical Behavior in Older npm Versions</a></li></ul><li><a href="#user">User</a></li><li><a href="#environment">Environment</a></li><ul><li><a href="#path">path</a></li><li><a href="#packagejson-vars">package.json vars</a></li><li><a href="#current-lifecycle-event">current lifecycle event</a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#exiting">Exiting</a></li><li><a href="#best-practices">Best Practices</a></li><li><a href="#see-also">See Also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p>The <code>"scripts"</code> property of your <code>package.json</code> file supports a number of built-in scripts and their preset life cycle events as well as arbitrary scripts.
|
| 158 |
+
These all can be executed by running <code>npm run <stage></code>.
|
| 159 |
+
<em>Pre</em> and <em>post</em> commands with matching names will be run for those as well (e.g.
|
| 160 |
+
<code>premyscript</code>,
|
| 161 |
+
<code>myscript</code>, <code>postmyscript</code>).
|
| 162 |
+
Scripts from dependencies can be run with <code>npm explore <pkg> -- npm run <stage></code>.</p>
|
| 163 |
+
<h3 id="pre--post-scripts">Pre & Post Scripts</h3>
|
| 164 |
+
<p>To create "pre" or "post" scripts for any scripts defined in the
|
| 165 |
+
<code>"scripts"</code> section of the <code>package.json</code>, simply create another script
|
| 166 |
+
<em>with a matching name</em> and add "pre" or "post" to the beginning of them.</p>
|
| 167 |
+
<pre><code class="language-json">{
|
| 168 |
+
"scripts": {
|
| 169 |
+
"precompress": "{{ executes BEFORE the `compress` script }}",
|
| 170 |
+
"compress": "{{ run command to compress files }}",
|
| 171 |
+
"postcompress": "{{ executes AFTER `compress` script }}"
|
| 172 |
+
}
|
| 173 |
+
}
|
| 174 |
+
</code></pre>
|
| 175 |
+
<p>In this example <code>npm run compress</code> would execute these scripts as described.</p>
|
| 176 |
+
<h3 id="life-cycle-scripts">Life Cycle Scripts</h3>
|
| 177 |
+
<p>There are some special life cycle scripts that happen only in certain situations.
|
| 178 |
+
These scripts happen in addition to the <code>pre<event></code>, <code>post<event></code>, and
|
| 179 |
+
<code><event></code> scripts.</p>
|
| 180 |
+
<ul>
|
| 181 |
+
<li><code>prepare</code>, <code>prepublish</code>, <code>prepublishOnly</code>, <code>prepack</code>, <code>postpack</code>, <code>dependencies</code></li>
|
| 182 |
+
</ul>
|
| 183 |
+
<p><strong>prepare</strong> (since <code>npm@4.0.0</code>)</p>
|
| 184 |
+
<ul>
|
| 185 |
+
<li>
|
| 186 |
+
<p>Runs BEFORE the package is packed, i.e.
|
| 187 |
+
during <code>npm publish</code> and <code>npm pack</code></p>
|
| 188 |
+
</li>
|
| 189 |
+
<li>
|
| 190 |
+
<p>Runs on local <code>npm install</code> without any arguments</p>
|
| 191 |
+
</li>
|
| 192 |
+
<li>
|
| 193 |
+
<p>Runs AFTER <code>prepublish</code>, but BEFORE <code>prepublishOnly</code></p>
|
| 194 |
+
</li>
|
| 195 |
+
<li>
|
| 196 |
+
<p>Runs for a package if it's being installed as a link through <code>npm install <folder></code></p>
|
| 197 |
+
</li>
|
| 198 |
+
<li>
|
| 199 |
+
<p>NOTE: If a package being installed through git contains a <code>prepare</code> script, its <code>dependencies</code> and <code>devDependencies</code> will be installed, and the prepare script will be run, before the package is packaged and installed.</p>
|
| 200 |
+
</li>
|
| 201 |
+
<li>
|
| 202 |
+
<p>As of <code>npm@7</code> these scripts run in the background.
|
| 203 |
+
To see the output, run with: <code>--foreground-scripts</code>.</p>
|
| 204 |
+
</li>
|
| 205 |
+
</ul>
|
| 206 |
+
<p><strong>prepublish</strong> (DEPRECATED)</p>
|
| 207 |
+
<ul>
|
| 208 |
+
<li>Does not run during <code>npm publish</code>, but does run during <code>npm ci</code> and <code>npm install</code>.
|
| 209 |
+
See below for more info.</li>
|
| 210 |
+
</ul>
|
| 211 |
+
<p><strong>prepublishOnly</strong></p>
|
| 212 |
+
<ul>
|
| 213 |
+
<li>Runs BEFORE the package is prepared and packed, ONLY on <code>npm publish</code>.</li>
|
| 214 |
+
</ul>
|
| 215 |
+
<p><strong>prepack</strong></p>
|
| 216 |
+
<ul>
|
| 217 |
+
<li>Runs BEFORE a tarball is packed (on "<code>npm pack</code>", "<code>npm publish</code>", and when installing a git dependency).</li>
|
| 218 |
+
<li>NOTE: "<code>npm run pack</code>" is NOT the same as "<code>npm pack</code>". "<code>npm run pack</code>" is an arbitrary user defined script name, whereas, "<code>npm pack</code>" is a CLI defined command.</li>
|
| 219 |
+
</ul>
|
| 220 |
+
<p><strong>postpack</strong></p>
|
| 221 |
+
<ul>
|
| 222 |
+
<li>Runs AFTER the tarball has been generated but before it is moved to its final destination (if at all, publish does not save the tarball locally)</li>
|
| 223 |
+
</ul>
|
| 224 |
+
<p><strong>dependencies</strong></p>
|
| 225 |
+
<ul>
|
| 226 |
+
<li>Runs AFTER any operations that modify the <code>node_modules</code> directory IF changes occurred.</li>
|
| 227 |
+
<li>Does NOT run in global mode</li>
|
| 228 |
+
</ul>
|
| 229 |
+
<h4 id="prepare-and-prepublish">Prepare and Prepublish</h4>
|
| 230 |
+
<p><strong>Deprecation Note: prepublish</strong></p>
|
| 231 |
+
<p>Since <code>npm@1.1.71</code>, the npm CLI has run the <code>prepublish</code> script for both <code>npm publish</code> and <code>npm install</code>, because it's a convenient way to prepare a package for use (some common use cases are described in the section below).
|
| 232 |
+
It has also turned out to be, in practice, <a href="https://github.com/npm/npm/issues/10074">very confusing</a>.
|
| 233 |
+
As of <code>npm@4.0.0</code>, a new event has been introduced, <code>prepare</code>, that preserves this existing behavior.
|
| 234 |
+
A <em>new</em> event, <code>prepublishOnly</code> has been added as a transitional strategy to allow users to avoid the confusing behavior of existing npm versions and only run on <code>npm publish</code> (for instance, running the tests one last time to ensure they're in good shape).</p>
|
| 235 |
+
<p>See <a href="https://github.com/npm/npm/issues/10074">https://github.com/npm/npm/issues/10074</a> for a much lengthier justification, with further reading, for this change.</p>
|
| 236 |
+
<p><strong>Use Cases</strong></p>
|
| 237 |
+
<p>If you need to perform operations on your package before it is used, in a way that is not dependent on the operating system or architecture of the target system, use a <code>prepublish</code> script.
|
| 238 |
+
This includes tasks such as:</p>
|
| 239 |
+
<ul>
|
| 240 |
+
<li>Compiling CoffeeScript source code into JavaScript.</li>
|
| 241 |
+
<li>Creating minified versions of JavaScript source code.</li>
|
| 242 |
+
<li>Fetching remote resources that your package will use.</li>
|
| 243 |
+
</ul>
|
| 244 |
+
<p>The advantage of doing these things at <code>prepublish</code> time is that they can be done once, in a single place, thus reducing complexity and variability.
|
| 245 |
+
Additionally, this means that:</p>
|
| 246 |
+
<ul>
|
| 247 |
+
<li>You can depend on <code>coffee-script</code> as a <code>devDependency</code>, and thus your users don't need to have it installed.</li>
|
| 248 |
+
<li>You don't need to include minifiers in your package, reducing the size for your users.</li>
|
| 249 |
+
<li>You don't need to rely on your users having <code>curl</code> or <code>wget</code> or other system tools on the target machines.</li>
|
| 250 |
+
</ul>
|
| 251 |
+
<h4 id="dependencies">Dependencies</h4>
|
| 252 |
+
<p>The <code>dependencies</code> script is run any time an <code>npm</code> command causes changes to the <code>node_modules</code> directory.
|
| 253 |
+
It is run AFTER the changes have been applied and the <code>package.json</code> and <code>package-lock.json</code> files have been updated.</p>
|
| 254 |
+
<h3 id="life-cycle-operation-order">Life Cycle Operation Order</h3>
|
| 255 |
+
<h4 id="npm-cache-add"><a href="../commands/npm-cache.html"><code>npm cache add</code></a></h4>
|
| 256 |
+
<ul>
|
| 257 |
+
<li><code>prepare</code></li>
|
| 258 |
+
</ul>
|
| 259 |
+
<h4 id="npm-ci"><a href="../commands/npm-ci.html"><code>npm ci</code></a></h4>
|
| 260 |
+
<ul>
|
| 261 |
+
<li><code>preinstall</code></li>
|
| 262 |
+
<li><code>install</code></li>
|
| 263 |
+
<li><code>postinstall</code></li>
|
| 264 |
+
<li><code>prepublish</code></li>
|
| 265 |
+
<li><code>preprepare</code></li>
|
| 266 |
+
<li><code>prepare</code></li>
|
| 267 |
+
<li><code>postprepare</code></li>
|
| 268 |
+
</ul>
|
| 269 |
+
<p>These all run after the actual installation of modules into
|
| 270 |
+
<code>node_modules</code>, in order, with no internal actions happening in between</p>
|
| 271 |
+
<h4 id="npm-diff"><a href="../commands/npm-diff.html"><code>npm diff</code></a></h4>
|
| 272 |
+
<ul>
|
| 273 |
+
<li><code>prepare</code></li>
|
| 274 |
+
</ul>
|
| 275 |
+
<h4 id="npm-install"><a href="../commands/npm-install.html"><code>npm install</code></a></h4>
|
| 276 |
+
<p>These also run when you run <code>npm install -g <pkg-name></code></p>
|
| 277 |
+
<ul>
|
| 278 |
+
<li><code>preinstall</code></li>
|
| 279 |
+
<li><code>install</code></li>
|
| 280 |
+
<li><code>postinstall</code></li>
|
| 281 |
+
<li><code>prepublish</code></li>
|
| 282 |
+
<li><code>preprepare</code></li>
|
| 283 |
+
<li><code>prepare</code></li>
|
| 284 |
+
<li><code>postprepare</code></li>
|
| 285 |
+
</ul>
|
| 286 |
+
<p>If there is a <code>binding.gyp</code> file in the root of your package and you haven't defined your own <code>install</code> or <code>preinstall</code> scripts, npm will default the <code>install</code> command to compile using node-gyp via <code>node-gyp rebuild</code></p>
|
| 287 |
+
<p>These are run from the scripts of <code><pkg-name></code></p>
|
| 288 |
+
<h4 id="npm-pack"><a href="../commands/npm-pack.html"><code>npm pack</code></a></h4>
|
| 289 |
+
<ul>
|
| 290 |
+
<li><code>prepack</code></li>
|
| 291 |
+
<li><code>prepare</code></li>
|
| 292 |
+
<li><code>postpack</code></li>
|
| 293 |
+
</ul>
|
| 294 |
+
<h4 id="npm-publish"><a href="../commands/npm-publish.html"><code>npm publish</code></a></h4>
|
| 295 |
+
<ul>
|
| 296 |
+
<li><code>prepublishOnly</code></li>
|
| 297 |
+
<li><code>prepack</code></li>
|
| 298 |
+
<li><code>prepare</code></li>
|
| 299 |
+
<li><code>postpack</code></li>
|
| 300 |
+
<li><code>publish</code></li>
|
| 301 |
+
<li><code>postpublish</code></li>
|
| 302 |
+
</ul>
|
| 303 |
+
<h4 id="npm-rebuild"><a href="../commands/npm-rebuild.html"><code>npm rebuild</code></a></h4>
|
| 304 |
+
<ul>
|
| 305 |
+
<li><code>preinstall</code></li>
|
| 306 |
+
<li><code>install</code></li>
|
| 307 |
+
<li><code>postinstall</code></li>
|
| 308 |
+
<li><code>prepare</code></li>
|
| 309 |
+
</ul>
|
| 310 |
+
<p><code>prepare</code> is only run if the current directory is a symlink (e.g.
|
| 311 |
+
with linked packages)</p>
|
| 312 |
+
<h4 id="npm-restart"><a href="../commands/npm-restart.html"><code>npm restart</code></a></h4>
|
| 313 |
+
<p>If there is a <code>restart</code> script defined, these events are run; otherwise,
|
| 314 |
+
<code>stop</code> and <code>start</code> are both run if present, including their <code>pre</code> and <code>post</code> iterations)</p>
|
| 315 |
+
<ul>
|
| 316 |
+
<li><code>prerestart</code></li>
|
| 317 |
+
<li><code>restart</code></li>
|
| 318 |
+
<li><code>postrestart</code></li>
|
| 319 |
+
</ul>
|
| 320 |
+
<h4 id="npm-run-user-defined"><a href="../commands/npm-run.html"><code>npm run <user defined></code></a></h4>
|
| 321 |
+
<ul>
|
| 322 |
+
<li><code>pre<user-defined></code></li>
|
| 323 |
+
<li><code><user-defined></code></li>
|
| 324 |
+
<li><code>post<user-defined></code></li>
|
| 325 |
+
</ul>
|
| 326 |
+
<h4 id="npm-start"><a href="../commands/npm-start.html"><code>npm start</code></a></h4>
|
| 327 |
+
<ul>
|
| 328 |
+
<li><code>prestart</code></li>
|
| 329 |
+
<li><code>start</code></li>
|
| 330 |
+
<li><code>poststart</code></li>
|
| 331 |
+
</ul>
|
| 332 |
+
<p>If there is a <code>server.js</code> file in the root of your package, then npm will default the <code>start</code> command to <code>node server.js</code>.
|
| 333 |
+
<code>prestart</code> and <code>poststart</code> will still run in this case.</p>
|
| 334 |
+
<h4 id="npm-stop"><a href="../commands/npm-stop.html"><code>npm stop</code></a></h4>
|
| 335 |
+
<ul>
|
| 336 |
+
<li><code>prestop</code></li>
|
| 337 |
+
<li><code>stop</code></li>
|
| 338 |
+
<li><code>poststop</code></li>
|
| 339 |
+
</ul>
|
| 340 |
+
<h4 id="npm-test"><a href="../commands/npm-test.html"><code>npm test</code></a></h4>
|
| 341 |
+
<ul>
|
| 342 |
+
<li><code>pretest</code></li>
|
| 343 |
+
<li><code>test</code></li>
|
| 344 |
+
<li><code>posttest</code></li>
|
| 345 |
+
</ul>
|
| 346 |
+
<h4 id="npm-version"><a href="../commands/npm-version.html"><code>npm version</code></a></h4>
|
| 347 |
+
<ul>
|
| 348 |
+
<li><code>preversion</code></li>
|
| 349 |
+
<li><code>version</code></li>
|
| 350 |
+
<li><code>postversion</code></li>
|
| 351 |
+
</ul>
|
| 352 |
+
<h4 id="a-note-on-a-lack-of-npm-uninstall-scripts">A Note on a lack of <a href="../commands/npm-uninstall.html"><code>npm uninstall</code></a> scripts</h4>
|
| 353 |
+
<p>While npm v6 had <code>uninstall</code> lifecycle scripts, npm v7 does not.
|
| 354 |
+
Removal of a package can happen for a wide variety of reasons, and there's no clear way to currently give the script enough context to be useful.</p>
|
| 355 |
+
<p>Reasons for a package removal include:</p>
|
| 356 |
+
<ul>
|
| 357 |
+
<li>a user directly uninstalled this package</li>
|
| 358 |
+
<li>a user uninstalled a dependent package and so this dependency is being uninstalled</li>
|
| 359 |
+
<li>a user uninstalled a dependent package but another package also depends on this version</li>
|
| 360 |
+
<li>this version has been merged as a duplicate with another version</li>
|
| 361 |
+
<li>etc.</li>
|
| 362 |
+
</ul>
|
| 363 |
+
<p>Due to the lack of necessary context, <code>uninstall</code> lifecycle scripts are not implemented and will not function.</p>
|
| 364 |
+
<h3 id="working-directory-for-scripts">Working Directory for Scripts</h3>
|
| 365 |
+
<p>Scripts are always run from the root of the package folder, regardless of what the current working directory is when <code>npm</code> is invoked.
|
| 366 |
+
This means your scripts can reliably assume they are running in the package root.</p>
|
| 367 |
+
<p>If you want your script to behave differently based on the directory you were in when you ran <code>npm</code>, you can use the <code>INIT_CWD</code> environment variable, which holds the full path you were in when you ran <code>npm run</code>.</p>
|
| 368 |
+
<h4 id="historical-behavior-in-older-npm-versions">Historical Behavior in Older npm Versions</h4>
|
| 369 |
+
<p>For npm v6 and earlier, scripts were generally run from the root of the package, but there were rare cases and bugs in older versions where this was not guaranteed.
|
| 370 |
+
If your package must support very old npm versions, you may wish to add a safeguard in your scripts (for example, by checking process.cwd()).</p>
|
| 371 |
+
<p>For more details, see:</p>
|
| 372 |
+
<ul>
|
| 373 |
+
<li><a href="https://github.com/npm/cli/releases/tag/v7.0.0">npm v7 release notes</a></li>
|
| 374 |
+
<li><a href="https://github.com/npm/npm/issues/12356">Discussion about script working directory reliability in npm v6 and earlier</a></li>
|
| 375 |
+
</ul>
|
| 376 |
+
<h3 id="user">User</h3>
|
| 377 |
+
<p>When npm is run as root, scripts are always run with the effective uid and gid of the working directory owner.</p>
|
| 378 |
+
<h3 id="environment">Environment</h3>
|
| 379 |
+
<p>Package scripts run in an environment where many pieces of information are made available regarding the setup of npm and the current state of the process.</p>
|
| 380 |
+
<h4 id="path">path</h4>
|
| 381 |
+
<p>If you depend on modules that define executable scripts, like test suites, then those executables will be added to the <code>PATH</code> for executing the scripts.
|
| 382 |
+
So, if your package.json has this:</p>
|
| 383 |
+
<pre><code class="language-json">{
|
| 384 |
+
"name" : "foo",
|
| 385 |
+
"dependencies" : {
|
| 386 |
+
"bar" : "0.1.x"
|
| 387 |
+
},
|
| 388 |
+
"scripts": {
|
| 389 |
+
"start" : "bar ./test"
|
| 390 |
+
}
|
| 391 |
+
}
|
| 392 |
+
</code></pre>
|
| 393 |
+
<p>then you could run <code>npm start</code> to execute the <code>bar</code> script, which is exported into the <code>node_modules/.bin</code> directory on <code>npm install</code>.</p>
|
| 394 |
+
<h4 id="packagejson-vars">package.json vars</h4>
|
| 395 |
+
<p>The package.json fields are tacked onto the <code>npm_package_</code> prefix.
|
| 396 |
+
So, for instance, if you had <code>{"name":"foo", "version":"1.2.5"}</code> in your package.json file, then your package scripts would have the <code>npm_package_name</code> environment variable set to "foo", and the <code>npm_package_version</code> set to "1.2.5". You can access these variables in your code with <code>process.env.npm_package_name</code> and <code>process.env.npm_package_version</code>, and so on for other fields.</p>
|
| 397 |
+
<p>See <a href="../configuring-npm/package-json.html"><code>package.json</code></a> for more on package configs.</p>
|
| 398 |
+
<h4 id="current-lifecycle-event">current lifecycle event</h4>
|
| 399 |
+
<p>Lastly, the <code>npm_lifecycle_event</code> environment variable is set to whichever stage of the cycle is being executed.
|
| 400 |
+
So, you could have a single script used for different parts of the process which switches based on what's currently happening.</p>
|
| 401 |
+
<p>Objects are flattened following this format, so if you had
|
| 402 |
+
<code>{"scripts":{"install":"foo.js"}}</code> in your package.json, then you'd see this in the script:</p>
|
| 403 |
+
<pre><code class="language-bash">process.env.npm_package_scripts_install === "foo.js"
|
| 404 |
+
</code></pre>
|
| 405 |
+
<h3 id="examples">Examples</h3>
|
| 406 |
+
<p>For example, if your package.json contains this:</p>
|
| 407 |
+
<pre><code class="language-json">{
|
| 408 |
+
"scripts" : {
|
| 409 |
+
"install" : "scripts/install.js",
|
| 410 |
+
"postinstall" : "scripts/install.js"
|
| 411 |
+
}
|
| 412 |
+
}
|
| 413 |
+
</code></pre>
|
| 414 |
+
<p>then <code>scripts/install.js</code> will be called for the install and post-install stages of the lifecycle.
|
| 415 |
+
Since <code>scripts/install.js</code> is running for two different phases, it would be wise in this case to look at the
|
| 416 |
+
<code>npm_lifecycle_event</code> environment variable.</p>
|
| 417 |
+
<p>If you want to run a make command, you can do so.
|
| 418 |
+
This works just fine:</p>
|
| 419 |
+
<pre><code class="language-json">{
|
| 420 |
+
"scripts" : {
|
| 421 |
+
"preinstall" : "./configure",
|
| 422 |
+
"install" : "make && make install",
|
| 423 |
+
"test" : "make test"
|
| 424 |
+
}
|
| 425 |
+
}
|
| 426 |
+
</code></pre>
|
| 427 |
+
<h3 id="exiting">Exiting</h3>
|
| 428 |
+
<p>Scripts are run by passing the line as a script argument to <code>/bin/sh</code> on POSIX systems or <code>cmd.exe</code> on Windows.
|
| 429 |
+
You can control which shell is used by setting the <a href="../using-npm/config#script-shell.html"><code>script-shell</code></a> configuration option.</p>
|
| 430 |
+
<p>If the script exits with a code other than 0, then this will abort the process.</p>
|
| 431 |
+
<p>Note that these script files don't have to be Node.js or even JavaScript programs.
|
| 432 |
+
They just have to be some kind of executable file.</p>
|
| 433 |
+
<h3 id="best-practices">Best Practices</h3>
|
| 434 |
+
<ul>
|
| 435 |
+
<li>Don't exit with a non-zero error code unless you <em>really</em> mean it.
|
| 436 |
+
If the failure is minor or only will prevent some optional features, then it's better to just print a warning and exit successfully.</li>
|
| 437 |
+
<li>Try not to use scripts to do what npm can do for you.
|
| 438 |
+
Read through <a href="../configuring-npm/package-json.html"><code>package.json</code></a> to see all the things that you can specify and enable by simply describing your package appropriately.
|
| 439 |
+
In general, this will lead to a more robust and consistent state.</li>
|
| 440 |
+
<li>Inspect the env to determine where to put things.
|
| 441 |
+
For instance, if the <code>npm_config_binroot</code> environment variable is set to <code>/home/user/bin</code>, then don't try to install executables into <code>/usr/local/bin</code>.
|
| 442 |
+
The user probably set it up that way for a reason.</li>
|
| 443 |
+
<li>Don't prefix your script commands with "sudo". If root permissions are required for some reason, then it'll fail with that error, and the user will sudo the npm command in question.</li>
|
| 444 |
+
<li>Don't use <code>install</code>.
|
| 445 |
+
Use a <code>.gyp</code> file for compilation, and <code>prepare</code> for anything else.
|
| 446 |
+
You should almost never have to explicitly set a preinstall or install script.
|
| 447 |
+
If you are doing this, please consider if there is another option.
|
| 448 |
+
The only valid use of <code>install</code> or <code>preinstall</code> scripts is for compilation which must be done on the target architecture.</li>
|
| 449 |
+
</ul>
|
| 450 |
+
<h3 id="see-also">See Also</h3>
|
| 451 |
+
<ul>
|
| 452 |
+
<li><a href="../commands/npm-run.html">npm run</a></li>
|
| 453 |
+
<li><a href="../configuring-npm/package-json.html">package.json</a></li>
|
| 454 |
+
<li><a href="../using-npm/developers.html">npm developers</a></li>
|
| 455 |
+
<li><a href="../commands/npm-install.html">npm install</a></li>
|
| 456 |
+
</ul></div>
|
| 457 |
+
|
| 458 |
+
<footer id="edit">
|
| 459 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/scripts.md">
|
| 460 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 461 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 462 |
+
</svg>
|
| 463 |
+
Edit this page on GitHub
|
| 464 |
+
</a>
|
| 465 |
+
</footer>
|
| 466 |
+
</section>
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/docs/output/using-npm/workspaces.html
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html><html><head>
|
| 2 |
+
<meta charset="utf-8">
|
| 3 |
+
<title>workspaces</title>
|
| 4 |
+
<style>
|
| 5 |
+
body {
|
| 6 |
+
background-color: #ffffff;
|
| 7 |
+
color: #24292e;
|
| 8 |
+
|
| 9 |
+
margin: 0;
|
| 10 |
+
|
| 11 |
+
line-height: 1.5;
|
| 12 |
+
|
| 13 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
| 14 |
+
}
|
| 15 |
+
#rainbar {
|
| 16 |
+
height: 10px;
|
| 17 |
+
background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
a {
|
| 21 |
+
text-decoration: none;
|
| 22 |
+
color: #0366d6;
|
| 23 |
+
}
|
| 24 |
+
a:hover {
|
| 25 |
+
text-decoration: underline;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
pre {
|
| 29 |
+
margin: 1em 0px;
|
| 30 |
+
padding: 1em;
|
| 31 |
+
border: solid 1px #e1e4e8;
|
| 32 |
+
border-radius: 6px;
|
| 33 |
+
|
| 34 |
+
display: block;
|
| 35 |
+
overflow: auto;
|
| 36 |
+
|
| 37 |
+
white-space: pre;
|
| 38 |
+
|
| 39 |
+
background-color: #f6f8fa;
|
| 40 |
+
color: #393a34;
|
| 41 |
+
}
|
| 42 |
+
code {
|
| 43 |
+
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
| 44 |
+
font-size: 85%;
|
| 45 |
+
padding: 0.2em 0.4em;
|
| 46 |
+
background-color: #f6f8fa;
|
| 47 |
+
color: #393a34;
|
| 48 |
+
}
|
| 49 |
+
pre > code {
|
| 50 |
+
padding: 0;
|
| 51 |
+
background-color: inherit;
|
| 52 |
+
color: inherit;
|
| 53 |
+
}
|
| 54 |
+
h1, h2, h3 {
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#logobar {
|
| 59 |
+
background-color: #333333;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
padding: 1em 4em;
|
| 62 |
+
}
|
| 63 |
+
#logobar .logo {
|
| 64 |
+
float: left;
|
| 65 |
+
}
|
| 66 |
+
#logobar .title {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: #dddddd;
|
| 69 |
+
float: left;
|
| 70 |
+
margin: 5px 0 0 1em;
|
| 71 |
+
}
|
| 72 |
+
#logobar:after {
|
| 73 |
+
content: "";
|
| 74 |
+
display: block;
|
| 75 |
+
clear: both;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
#content {
|
| 79 |
+
margin: 0 auto;
|
| 80 |
+
padding: 0 4em;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#table_of_contents > h2 {
|
| 84 |
+
font-size: 1.17em;
|
| 85 |
+
}
|
| 86 |
+
#table_of_contents ul:first-child {
|
| 87 |
+
border: solid 1px #e1e4e8;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
padding: 1em;
|
| 90 |
+
background-color: #f6f8fa;
|
| 91 |
+
color: #393a34;
|
| 92 |
+
}
|
| 93 |
+
#table_of_contents ul {
|
| 94 |
+
list-style-type: none;
|
| 95 |
+
padding-left: 1.5em;
|
| 96 |
+
}
|
| 97 |
+
#table_of_contents li {
|
| 98 |
+
font-size: 0.9em;
|
| 99 |
+
}
|
| 100 |
+
#table_of_contents li a {
|
| 101 |
+
color: #000000;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
header.title {
|
| 105 |
+
border-bottom: solid 1px #e1e4e8;
|
| 106 |
+
}
|
| 107 |
+
header.title > h1 {
|
| 108 |
+
margin-bottom: 0.25em;
|
| 109 |
+
}
|
| 110 |
+
header.title > .description {
|
| 111 |
+
display: block;
|
| 112 |
+
margin-bottom: 0.5em;
|
| 113 |
+
line-height: 1;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
header.title .version {
|
| 117 |
+
font-size: 0.8em;
|
| 118 |
+
color: #666666;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
footer#edit {
|
| 122 |
+
border-top: solid 1px #e1e4e8;
|
| 123 |
+
margin: 3em 0 4em 0;
|
| 124 |
+
padding-top: 2em;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div id="banner">
|
| 130 |
+
<div id="rainbar"></div>
|
| 131 |
+
<div id="logobar">
|
| 132 |
+
<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
|
| 133 |
+
<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
|
| 134 |
+
<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
|
| 135 |
+
</svg>
|
| 136 |
+
<div class="title">
|
| 137 |
+
npm command-line interface
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<section id="content">
|
| 143 |
+
<header class="title">
|
| 144 |
+
<h1 id="----workspaces----1162">
|
| 145 |
+
<span>workspaces</span>
|
| 146 |
+
<span class="version">@11.6.2</span>
|
| 147 |
+
</h1>
|
| 148 |
+
<span class="description">Working with workspaces</span>
|
| 149 |
+
</header>
|
| 150 |
+
|
| 151 |
+
<section id="table_of_contents">
|
| 152 |
+
<h2 id="table-of-contents">Table of contents</h2>
|
| 153 |
+
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#defining-workspaces">Defining workspaces</a></li><li><a href="#getting-started-with-workspaces">Getting started with workspaces</a></li><li><a href="#adding-dependencies-to-a-workspace">Adding dependencies to a workspace</a></li><li><a href="#using-workspaces">Using workspaces</a></li><li><a href="#running-commands-in-the-context-of-workspaces">Running commands in the context of workspaces</a></li><li><a href="#ignoring-missing-scripts">Ignoring missing scripts</a></li><li><a href="#see-also">See also</a></li></ul></div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<div id="_content"><h3 id="description">Description</h3>
|
| 157 |
+
<p><strong>Workspaces</strong> is a generic term that refers to the set of features in the npm cli that provides support for managing multiple packages from your local file system from within a singular top-level, root package.</p>
|
| 158 |
+
<p>This set of features makes up for a much more streamlined workflow handling linked packages from the local file system.
|
| 159 |
+
It automates the linking process as part of <code>npm install</code> and removes the need to manually use <code>npm link</code> in order to add references to packages that should be symlinked into the current <code>node_modules</code> folder.</p>
|
| 160 |
+
<p>We also refer to these packages being auto-symlinked during <code>npm install</code> as a single <strong>workspace</strong>, meaning it's a nested package within the current local file system that is explicitly defined in the <a href="../configuring-npm/package-json#workspaces.html"><code>package.json</code></a>
|
| 161 |
+
<code>workspaces</code> configuration.</p>
|
| 162 |
+
<h3 id="defining-workspaces">Defining workspaces</h3>
|
| 163 |
+
<p>Workspaces are usually defined via the <code>workspaces</code> property of the <a href="../configuring-npm/package-json#workspaces.html"><code>package.json</code></a> file, e.g:</p>
|
| 164 |
+
<pre><code class="language-json">{
|
| 165 |
+
"name": "my-workspaces-powered-project",
|
| 166 |
+
"workspaces": [
|
| 167 |
+
"packages/a"
|
| 168 |
+
]
|
| 169 |
+
}
|
| 170 |
+
</code></pre>
|
| 171 |
+
<p>Given the above <code>package.json</code> example living at a current working directory <code>.</code> that contains a folder named <code>packages/a</code> that itself contains a <code>package.json</code> inside it, defining a Node.js package, e.g:</p>
|
| 172 |
+
<pre><code>.
|
| 173 |
+
+-- package.json
|
| 174 |
+
`-- packages
|
| 175 |
+
+-- a
|
| 176 |
+
| `-- package.json
|
| 177 |
+
</code></pre>
|
| 178 |
+
<p>The expected result once running <code>npm install</code> in this current working directory <code>.</code> is that the folder <code>packages/a</code> will get symlinked to the <code>node_modules</code> folder of the current working dir.</p>
|
| 179 |
+
<p>Below is a post <code>npm install</code> example, given that same previous example structure of files and folders:</p>
|
| 180 |
+
<pre><code>.
|
| 181 |
+
+-- node_modules
|
| 182 |
+
| `-- a -> ../packages/a
|
| 183 |
+
+-- package-lock.json
|
| 184 |
+
+-- package.json
|
| 185 |
+
`-- packages
|
| 186 |
+
+-- a
|
| 187 |
+
| `-- package.json
|
| 188 |
+
</code></pre>
|
| 189 |
+
<h3 id="getting-started-with-workspaces">Getting started with workspaces</h3>
|
| 190 |
+
<p>You may automate the required steps to define a new workspace using <a href="../commands/npm-init.html">npm init</a>.
|
| 191 |
+
For example in a project that already has a <code>package.json</code> defined you can run:</p>
|
| 192 |
+
<pre><code>npm init -w ./packages/a
|
| 193 |
+
</code></pre>
|
| 194 |
+
<p>This command will create the missing folders and a new <code>package.json</code> file (if needed) while also making sure to properly configure the
|
| 195 |
+
<code>"workspaces"</code> property of your root project <code>package.json</code>.</p>
|
| 196 |
+
<h3 id="adding-dependencies-to-a-workspace">Adding dependencies to a workspace</h3>
|
| 197 |
+
<p>It's possible to directly add/remove/update dependencies of your workspaces using the <a href="../using-npm/config#workspace.html"><code>workspace</code> config</a>.</p>
|
| 198 |
+
<p>For example, assuming the following structure:</p>
|
| 199 |
+
<pre><code>.
|
| 200 |
+
+-- package.json
|
| 201 |
+
`-- packages
|
| 202 |
+
+-- a
|
| 203 |
+
| `-- package.json
|
| 204 |
+
`-- b
|
| 205 |
+
`-- package.json
|
| 206 |
+
</code></pre>
|
| 207 |
+
<p>If you want to add a dependency named <code>abbrev</code> from the registry as a dependency of your workspace <strong>a</strong>, you may use the workspace config to tell the npm installer that package should be added as a dependency of the provided workspace:</p>
|
| 208 |
+
<pre><code>npm install abbrev -w a
|
| 209 |
+
</code></pre>
|
| 210 |
+
<p>Note: other installing commands such as <code>uninstall</code>, <code>ci</code>, etc will also respect the provided <code>workspace</code> configuration.</p>
|
| 211 |
+
<h3 id="using-workspaces">Using workspaces</h3>
|
| 212 |
+
<p>Given the <a href="https://nodejs.org/dist/latest-v14.x/docs/api/modules.html#modules_all_together">specifics of how Node.js handles module resolution</a> it's possible to consume any defined workspace by its declared <code>package.json</code> <code>name</code>.
|
| 213 |
+
Continuing from the example defined above, let's also create a Node.js script that will require the workspace <code>a</code> example module, e.g:</p>
|
| 214 |
+
<pre><code>// ./packages/a/index.js
|
| 215 |
+
module.exports = 'a'
|
| 216 |
+
|
| 217 |
+
// ./lib/index.js
|
| 218 |
+
const moduleA = require('a')
|
| 219 |
+
console.log(moduleA) // -> a
|
| 220 |
+
</code></pre>
|
| 221 |
+
<p>When running it with:</p>
|
| 222 |
+
<p><code>node lib/index.js</code></p>
|
| 223 |
+
<p>This demonstrates how the nature of <code>node_modules</code> resolution allows for
|
| 224 |
+
<strong>workspaces</strong> to enable a portable workflow for requiring each <strong>workspace</strong> in such a way that is also easy to <a href="../commands/npm-publish.html">publish</a> these nested workspaces to be consumed elsewhere.</p>
|
| 225 |
+
<h3 id="running-commands-in-the-context-of-workspaces">Running commands in the context of workspaces</h3>
|
| 226 |
+
<p>You can use the <code>workspace</code> configuration option to run commands in the context of a configured workspace.
|
| 227 |
+
Additionally, if your current directory is in a workspace, the <code>workspace</code> configuration is implicitly set, and <code>prefix</code> is set to the root workspace.</p>
|
| 228 |
+
<p>Following is a quick example on how to use the <code>npm run</code> command in the context of nested workspaces.
|
| 229 |
+
For a project containing multiple workspaces, e.g:</p>
|
| 230 |
+
<pre><code>.
|
| 231 |
+
+-- package.json
|
| 232 |
+
`-- packages
|
| 233 |
+
+-- a
|
| 234 |
+
| `-- package.json
|
| 235 |
+
`-- b
|
| 236 |
+
`-- package.json
|
| 237 |
+
</code></pre>
|
| 238 |
+
<p>By running a command using the <code>workspace</code> option, it's possible to run the given command in the context of that specific workspace.
|
| 239 |
+
e.g:</p>
|
| 240 |
+
<pre><code>npm run test --workspace=a
|
| 241 |
+
</code></pre>
|
| 242 |
+
<p>You could also run the command within the workspace.</p>
|
| 243 |
+
<pre><code>cd packages/a && npm run test
|
| 244 |
+
</code></pre>
|
| 245 |
+
<p>Either will run the <code>test</code> script defined within the
|
| 246 |
+
<code>./packages/a/package.json</code> file.</p>
|
| 247 |
+
<p>Please note that you can also specify this argument multiple times in the command-line in order to target multiple workspaces, e.g:</p>
|
| 248 |
+
<pre><code>npm run test --workspace=a --workspace=b
|
| 249 |
+
</code></pre>
|
| 250 |
+
<p>Or run the command for each workspace within the 'packages' folder:</p>
|
| 251 |
+
<pre><code>npm run test --workspace=packages
|
| 252 |
+
</code></pre>
|
| 253 |
+
<p>It's also possible to use the <code>workspaces</code> (plural) configuration option to enable the same behavior but running that command in the context of <strong>all</strong> configured workspaces.
|
| 254 |
+
e.g:</p>
|
| 255 |
+
<pre><code>npm run test --workspaces
|
| 256 |
+
</code></pre>
|
| 257 |
+
<p>Will run the <code>test</code> script in both <code>./packages/a</code> and <code>./packages/b</code>.</p>
|
| 258 |
+
<p>Commands will be run in each workspace in the order they appear in your <code>package.json</code></p>
|
| 259 |
+
<pre><code>{
|
| 260 |
+
"workspaces": [ "packages/a", "packages/b" ]
|
| 261 |
+
}
|
| 262 |
+
</code></pre>
|
| 263 |
+
<p>Order of run is different with:</p>
|
| 264 |
+
<pre><code>{
|
| 265 |
+
"workspaces": [ "packages/b", "packages/a" ]
|
| 266 |
+
}
|
| 267 |
+
</code></pre>
|
| 268 |
+
<h3 id="ignoring-missing-scripts">Ignoring missing scripts</h3>
|
| 269 |
+
<p>It is not required for all of the workspaces to implement scripts run with the <code>npm run</code> command.</p>
|
| 270 |
+
<p>By running the command with the <code>--if-present</code> flag, npm will ignore workspaces missing target script.</p>
|
| 271 |
+
<pre><code>npm run test --workspaces --if-present
|
| 272 |
+
</code></pre>
|
| 273 |
+
<h3 id="see-also">See also</h3>
|
| 274 |
+
<ul>
|
| 275 |
+
<li><a href="../commands/npm-install.html">npm install</a></li>
|
| 276 |
+
<li><a href="../commands/npm-publish.html">npm publish</a></li>
|
| 277 |
+
<li><a href="../commands/npm-run.html">npm run</a></li>
|
| 278 |
+
<li><a href="../using-npm/config.html">config</a></li>
|
| 279 |
+
</ul></div>
|
| 280 |
+
|
| 281 |
+
<footer id="edit">
|
| 282 |
+
<a href="https://github.com/npm/cli/edit/latest/docs/lib/content/using-npm/workspaces.md">
|
| 283 |
+
<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
|
| 284 |
+
<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
|
| 285 |
+
</svg>
|
| 286 |
+
Edit this page on GitHub
|
| 287 |
+
</a>
|
| 288 |
+
</footer>
|
| 289 |
+
</section>
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
</body></html>
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/LICENSE.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(MIT)
|
| 2 |
+
|
| 3 |
+
Original code Copyright Julian Gruber <julian@juliangruber.com>
|
| 4 |
+
|
| 5 |
+
Port to TypeScript Copyright Isaac Z. Schlueter <i@izs.me>
|
| 6 |
+
|
| 7 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 8 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 9 |
+
the Software without restriction, including without limitation the rights to
|
| 10 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
| 11 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
| 12 |
+
so, subject to the following conditions:
|
| 13 |
+
|
| 14 |
+
The above copyright notice and this permission notice shall be included in all
|
| 15 |
+
copies or substantial portions of the Software.
|
| 16 |
+
|
| 17 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 18 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 19 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 20 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 21 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 22 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 23 |
+
SOFTWARE.
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/dist/commonjs/index.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.range = exports.balanced = void 0;
|
| 4 |
+
const balanced = (a, b, str) => {
|
| 5 |
+
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
| 6 |
+
const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
|
| 7 |
+
const r = ma !== null && mb != null && (0, exports.range)(ma, mb, str);
|
| 8 |
+
return (r && {
|
| 9 |
+
start: r[0],
|
| 10 |
+
end: r[1],
|
| 11 |
+
pre: str.slice(0, r[0]),
|
| 12 |
+
body: str.slice(r[0] + ma.length, r[1]),
|
| 13 |
+
post: str.slice(r[1] + mb.length),
|
| 14 |
+
});
|
| 15 |
+
};
|
| 16 |
+
exports.balanced = balanced;
|
| 17 |
+
const maybeMatch = (reg, str) => {
|
| 18 |
+
const m = str.match(reg);
|
| 19 |
+
return m ? m[0] : null;
|
| 20 |
+
};
|
| 21 |
+
const range = (a, b, str) => {
|
| 22 |
+
let begs, beg, left, right = undefined, result;
|
| 23 |
+
let ai = str.indexOf(a);
|
| 24 |
+
let bi = str.indexOf(b, ai + 1);
|
| 25 |
+
let i = ai;
|
| 26 |
+
if (ai >= 0 && bi > 0) {
|
| 27 |
+
if (a === b) {
|
| 28 |
+
return [ai, bi];
|
| 29 |
+
}
|
| 30 |
+
begs = [];
|
| 31 |
+
left = str.length;
|
| 32 |
+
while (i >= 0 && !result) {
|
| 33 |
+
if (i === ai) {
|
| 34 |
+
begs.push(i);
|
| 35 |
+
ai = str.indexOf(a, i + 1);
|
| 36 |
+
}
|
| 37 |
+
else if (begs.length === 1) {
|
| 38 |
+
const r = begs.pop();
|
| 39 |
+
if (r !== undefined)
|
| 40 |
+
result = [r, bi];
|
| 41 |
+
}
|
| 42 |
+
else {
|
| 43 |
+
beg = begs.pop();
|
| 44 |
+
if (beg !== undefined && beg < left) {
|
| 45 |
+
left = beg;
|
| 46 |
+
right = bi;
|
| 47 |
+
}
|
| 48 |
+
bi = str.indexOf(b, i + 1);
|
| 49 |
+
}
|
| 50 |
+
i = ai < bi && ai >= 0 ? ai : bi;
|
| 51 |
+
}
|
| 52 |
+
if (begs.length && right !== undefined) {
|
| 53 |
+
result = [left, right];
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
return result;
|
| 57 |
+
};
|
| 58 |
+
exports.range = range;
|
| 59 |
+
//# sourceMappingURL=index.js.map
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/dist/commonjs/package.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "commonjs"
|
| 3 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/dist/esm/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export const balanced = (a, b, str) => {
|
| 2 |
+
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
| 3 |
+
const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
|
| 4 |
+
const r = ma !== null && mb != null && range(ma, mb, str);
|
| 5 |
+
return (r && {
|
| 6 |
+
start: r[0],
|
| 7 |
+
end: r[1],
|
| 8 |
+
pre: str.slice(0, r[0]),
|
| 9 |
+
body: str.slice(r[0] + ma.length, r[1]),
|
| 10 |
+
post: str.slice(r[1] + mb.length),
|
| 11 |
+
});
|
| 12 |
+
};
|
| 13 |
+
const maybeMatch = (reg, str) => {
|
| 14 |
+
const m = str.match(reg);
|
| 15 |
+
return m ? m[0] : null;
|
| 16 |
+
};
|
| 17 |
+
export const range = (a, b, str) => {
|
| 18 |
+
let begs, beg, left, right = undefined, result;
|
| 19 |
+
let ai = str.indexOf(a);
|
| 20 |
+
let bi = str.indexOf(b, ai + 1);
|
| 21 |
+
let i = ai;
|
| 22 |
+
if (ai >= 0 && bi > 0) {
|
| 23 |
+
if (a === b) {
|
| 24 |
+
return [ai, bi];
|
| 25 |
+
}
|
| 26 |
+
begs = [];
|
| 27 |
+
left = str.length;
|
| 28 |
+
while (i >= 0 && !result) {
|
| 29 |
+
if (i === ai) {
|
| 30 |
+
begs.push(i);
|
| 31 |
+
ai = str.indexOf(a, i + 1);
|
| 32 |
+
}
|
| 33 |
+
else if (begs.length === 1) {
|
| 34 |
+
const r = begs.pop();
|
| 35 |
+
if (r !== undefined)
|
| 36 |
+
result = [r, bi];
|
| 37 |
+
}
|
| 38 |
+
else {
|
| 39 |
+
beg = begs.pop();
|
| 40 |
+
if (beg !== undefined && beg < left) {
|
| 41 |
+
left = beg;
|
| 42 |
+
right = bi;
|
| 43 |
+
}
|
| 44 |
+
bi = str.indexOf(b, i + 1);
|
| 45 |
+
}
|
| 46 |
+
i = ai < bi && ai >= 0 ? ai : bi;
|
| 47 |
+
}
|
| 48 |
+
if (begs.length && right !== undefined) {
|
| 49 |
+
result = [left, right];
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
return result;
|
| 53 |
+
};
|
| 54 |
+
//# sourceMappingURL=index.js.map
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/dist/esm/package.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "module"
|
| 3 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/balanced-match/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@isaacs/balanced-match",
|
| 3 |
+
"description": "Match balanced character pairs, like \"{\" and \"}\"",
|
| 4 |
+
"version": "4.0.1",
|
| 5 |
+
"files": [
|
| 6 |
+
"dist"
|
| 7 |
+
],
|
| 8 |
+
"repository": {
|
| 9 |
+
"type": "git",
|
| 10 |
+
"url": "git://github.com/isaacs/balanced-match.git"
|
| 11 |
+
},
|
| 12 |
+
"exports": {
|
| 13 |
+
"./package.json": "./package.json",
|
| 14 |
+
".": {
|
| 15 |
+
"import": {
|
| 16 |
+
"types": "./dist/esm/index.d.ts",
|
| 17 |
+
"default": "./dist/esm/index.js"
|
| 18 |
+
},
|
| 19 |
+
"require": {
|
| 20 |
+
"types": "./dist/commonjs/index.d.ts",
|
| 21 |
+
"default": "./dist/commonjs/index.js"
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
"type": "module",
|
| 26 |
+
"scripts": {
|
| 27 |
+
"preversion": "npm test",
|
| 28 |
+
"postversion": "npm publish",
|
| 29 |
+
"prepublishOnly": "git push origin --follow-tags",
|
| 30 |
+
"prepare": "tshy",
|
| 31 |
+
"pretest": "npm run prepare",
|
| 32 |
+
"presnap": "npm run prepare",
|
| 33 |
+
"test": "tap",
|
| 34 |
+
"snap": "tap",
|
| 35 |
+
"format": "prettier --write . --loglevel warn",
|
| 36 |
+
"benchmark": "node benchmark/index.js",
|
| 37 |
+
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
|
| 38 |
+
},
|
| 39 |
+
"prettier": {
|
| 40 |
+
"semi": false,
|
| 41 |
+
"printWidth": 80,
|
| 42 |
+
"tabWidth": 2,
|
| 43 |
+
"useTabs": false,
|
| 44 |
+
"singleQuote": true,
|
| 45 |
+
"jsxSingleQuote": false,
|
| 46 |
+
"bracketSameLine": true,
|
| 47 |
+
"arrowParens": "avoid",
|
| 48 |
+
"endOfLine": "lf"
|
| 49 |
+
},
|
| 50 |
+
"devDependencies": {
|
| 51 |
+
"@types/brace-expansion": "^1.1.2",
|
| 52 |
+
"@types/node": "^24.0.0",
|
| 53 |
+
"mkdirp": "^3.0.1",
|
| 54 |
+
"prettier": "^3.3.2",
|
| 55 |
+
"tap": "^21.1.0",
|
| 56 |
+
"tshy": "^3.0.2",
|
| 57 |
+
"typedoc": "^0.28.5"
|
| 58 |
+
},
|
| 59 |
+
"keywords": [
|
| 60 |
+
"match",
|
| 61 |
+
"regexp",
|
| 62 |
+
"test",
|
| 63 |
+
"balanced",
|
| 64 |
+
"parse"
|
| 65 |
+
],
|
| 66 |
+
"license": "MIT",
|
| 67 |
+
"engines": {
|
| 68 |
+
"node": "20 || >=22"
|
| 69 |
+
},
|
| 70 |
+
"tshy": {
|
| 71 |
+
"exports": {
|
| 72 |
+
"./package.json": "./package.json",
|
| 73 |
+
".": "./src/index.ts"
|
| 74 |
+
}
|
| 75 |
+
},
|
| 76 |
+
"main": "./dist/commonjs/index.js",
|
| 77 |
+
"types": "./dist/commonjs/index.d.ts",
|
| 78 |
+
"module": "./dist/esm/index.js"
|
| 79 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright Julian Gruber <julian@juliangruber.com>
|
| 4 |
+
|
| 5 |
+
TypeScript port Copyright Isaac Z. Schlueter <i@izs.me>
|
| 6 |
+
|
| 7 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 8 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 9 |
+
in the Software without restriction, including without limitation the rights
|
| 10 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 11 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 12 |
+
furnished to do so, subject to the following conditions:
|
| 13 |
+
|
| 14 |
+
The above copyright notice and this permission notice shall be included in all
|
| 15 |
+
copies or substantial portions of the Software.
|
| 16 |
+
|
| 17 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 18 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 19 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 20 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 21 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 22 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 23 |
+
SOFTWARE.
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.expand = expand;
|
| 4 |
+
const balanced_match_1 = require("@isaacs/balanced-match");
|
| 5 |
+
const escSlash = '\0SLASH' + Math.random() + '\0';
|
| 6 |
+
const escOpen = '\0OPEN' + Math.random() + '\0';
|
| 7 |
+
const escClose = '\0CLOSE' + Math.random() + '\0';
|
| 8 |
+
const escComma = '\0COMMA' + Math.random() + '\0';
|
| 9 |
+
const escPeriod = '\0PERIOD' + Math.random() + '\0';
|
| 10 |
+
const escSlashPattern = new RegExp(escSlash, 'g');
|
| 11 |
+
const escOpenPattern = new RegExp(escOpen, 'g');
|
| 12 |
+
const escClosePattern = new RegExp(escClose, 'g');
|
| 13 |
+
const escCommaPattern = new RegExp(escComma, 'g');
|
| 14 |
+
const escPeriodPattern = new RegExp(escPeriod, 'g');
|
| 15 |
+
const slashPattern = /\\\\/g;
|
| 16 |
+
const openPattern = /\\{/g;
|
| 17 |
+
const closePattern = /\\}/g;
|
| 18 |
+
const commaPattern = /\\,/g;
|
| 19 |
+
const periodPattern = /\\./g;
|
| 20 |
+
function numeric(str) {
|
| 21 |
+
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
| 22 |
+
}
|
| 23 |
+
function escapeBraces(str) {
|
| 24 |
+
return str
|
| 25 |
+
.replace(slashPattern, escSlash)
|
| 26 |
+
.replace(openPattern, escOpen)
|
| 27 |
+
.replace(closePattern, escClose)
|
| 28 |
+
.replace(commaPattern, escComma)
|
| 29 |
+
.replace(periodPattern, escPeriod);
|
| 30 |
+
}
|
| 31 |
+
function unescapeBraces(str) {
|
| 32 |
+
return str
|
| 33 |
+
.replace(escSlashPattern, '\\')
|
| 34 |
+
.replace(escOpenPattern, '{')
|
| 35 |
+
.replace(escClosePattern, '}')
|
| 36 |
+
.replace(escCommaPattern, ',')
|
| 37 |
+
.replace(escPeriodPattern, '.');
|
| 38 |
+
}
|
| 39 |
+
/**
|
| 40 |
+
* Basically just str.split(","), but handling cases
|
| 41 |
+
* where we have nested braced sections, which should be
|
| 42 |
+
* treated as individual members, like {a,{b,c},d}
|
| 43 |
+
*/
|
| 44 |
+
function parseCommaParts(str) {
|
| 45 |
+
if (!str) {
|
| 46 |
+
return [''];
|
| 47 |
+
}
|
| 48 |
+
const parts = [];
|
| 49 |
+
const m = (0, balanced_match_1.balanced)('{', '}', str);
|
| 50 |
+
if (!m) {
|
| 51 |
+
return str.split(',');
|
| 52 |
+
}
|
| 53 |
+
const { pre, body, post } = m;
|
| 54 |
+
const p = pre.split(',');
|
| 55 |
+
p[p.length - 1] += '{' + body + '}';
|
| 56 |
+
const postParts = parseCommaParts(post);
|
| 57 |
+
if (post.length) {
|
| 58 |
+
;
|
| 59 |
+
p[p.length - 1] += postParts.shift();
|
| 60 |
+
p.push.apply(p, postParts);
|
| 61 |
+
}
|
| 62 |
+
parts.push.apply(parts, p);
|
| 63 |
+
return parts;
|
| 64 |
+
}
|
| 65 |
+
function expand(str) {
|
| 66 |
+
if (!str) {
|
| 67 |
+
return [];
|
| 68 |
+
}
|
| 69 |
+
// I don't know why Bash 4.3 does this, but it does.
|
| 70 |
+
// Anything starting with {} will have the first two bytes preserved
|
| 71 |
+
// but *only* at the top level, so {},a}b will not expand to anything,
|
| 72 |
+
// but a{},b}c will be expanded to [a}c,abc].
|
| 73 |
+
// One could argue that this is a bug in Bash, but since the goal of
|
| 74 |
+
// this module is to match Bash's rules, we escape a leading {}
|
| 75 |
+
if (str.slice(0, 2) === '{}') {
|
| 76 |
+
str = '\\{\\}' + str.slice(2);
|
| 77 |
+
}
|
| 78 |
+
return expand_(escapeBraces(str), true).map(unescapeBraces);
|
| 79 |
+
}
|
| 80 |
+
function embrace(str) {
|
| 81 |
+
return '{' + str + '}';
|
| 82 |
+
}
|
| 83 |
+
function isPadded(el) {
|
| 84 |
+
return /^-?0\d/.test(el);
|
| 85 |
+
}
|
| 86 |
+
function lte(i, y) {
|
| 87 |
+
return i <= y;
|
| 88 |
+
}
|
| 89 |
+
function gte(i, y) {
|
| 90 |
+
return i >= y;
|
| 91 |
+
}
|
| 92 |
+
function expand_(str, isTop) {
|
| 93 |
+
/** @type {string[]} */
|
| 94 |
+
const expansions = [];
|
| 95 |
+
const m = (0, balanced_match_1.balanced)('{', '}', str);
|
| 96 |
+
if (!m)
|
| 97 |
+
return [str];
|
| 98 |
+
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
| 99 |
+
const pre = m.pre;
|
| 100 |
+
const post = m.post.length ? expand_(m.post, false) : [''];
|
| 101 |
+
if (/\$$/.test(m.pre)) {
|
| 102 |
+
for (let k = 0; k < post.length; k++) {
|
| 103 |
+
const expansion = pre + '{' + m.body + '}' + post[k];
|
| 104 |
+
expansions.push(expansion);
|
| 105 |
+
}
|
| 106 |
+
}
|
| 107 |
+
else {
|
| 108 |
+
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
| 109 |
+
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
| 110 |
+
const isSequence = isNumericSequence || isAlphaSequence;
|
| 111 |
+
const isOptions = m.body.indexOf(',') >= 0;
|
| 112 |
+
if (!isSequence && !isOptions) {
|
| 113 |
+
// {a},b}
|
| 114 |
+
if (m.post.match(/,(?!,).*\}/)) {
|
| 115 |
+
str = m.pre + '{' + m.body + escClose + m.post;
|
| 116 |
+
return expand_(str);
|
| 117 |
+
}
|
| 118 |
+
return [str];
|
| 119 |
+
}
|
| 120 |
+
let n;
|
| 121 |
+
if (isSequence) {
|
| 122 |
+
n = m.body.split(/\.\./);
|
| 123 |
+
}
|
| 124 |
+
else {
|
| 125 |
+
n = parseCommaParts(m.body);
|
| 126 |
+
if (n.length === 1 && n[0] !== undefined) {
|
| 127 |
+
// x{{a,b}}y ==> x{a}y x{b}y
|
| 128 |
+
n = expand_(n[0], false).map(embrace);
|
| 129 |
+
//XXX is this necessary? Can't seem to hit it in tests.
|
| 130 |
+
/* c8 ignore start */
|
| 131 |
+
if (n.length === 1) {
|
| 132 |
+
return post.map(p => m.pre + n[0] + p);
|
| 133 |
+
}
|
| 134 |
+
/* c8 ignore stop */
|
| 135 |
+
}
|
| 136 |
+
}
|
| 137 |
+
// at this point, n is the parts, and we know it's not a comma set
|
| 138 |
+
// with a single entry.
|
| 139 |
+
let N;
|
| 140 |
+
if (isSequence && n[0] !== undefined && n[1] !== undefined) {
|
| 141 |
+
const x = numeric(n[0]);
|
| 142 |
+
const y = numeric(n[1]);
|
| 143 |
+
const width = Math.max(n[0].length, n[1].length);
|
| 144 |
+
let incr = n.length === 3 && n[2] !== undefined ? Math.abs(numeric(n[2])) : 1;
|
| 145 |
+
let test = lte;
|
| 146 |
+
const reverse = y < x;
|
| 147 |
+
if (reverse) {
|
| 148 |
+
incr *= -1;
|
| 149 |
+
test = gte;
|
| 150 |
+
}
|
| 151 |
+
const pad = n.some(isPadded);
|
| 152 |
+
N = [];
|
| 153 |
+
for (let i = x; test(i, y); i += incr) {
|
| 154 |
+
let c;
|
| 155 |
+
if (isAlphaSequence) {
|
| 156 |
+
c = String.fromCharCode(i);
|
| 157 |
+
if (c === '\\') {
|
| 158 |
+
c = '';
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
else {
|
| 162 |
+
c = String(i);
|
| 163 |
+
if (pad) {
|
| 164 |
+
const need = width - c.length;
|
| 165 |
+
if (need > 0) {
|
| 166 |
+
const z = new Array(need + 1).join('0');
|
| 167 |
+
if (i < 0) {
|
| 168 |
+
c = '-' + z + c.slice(1);
|
| 169 |
+
}
|
| 170 |
+
else {
|
| 171 |
+
c = z + c;
|
| 172 |
+
}
|
| 173 |
+
}
|
| 174 |
+
}
|
| 175 |
+
}
|
| 176 |
+
N.push(c);
|
| 177 |
+
}
|
| 178 |
+
}
|
| 179 |
+
else {
|
| 180 |
+
N = [];
|
| 181 |
+
for (let j = 0; j < n.length; j++) {
|
| 182 |
+
N.push.apply(N, expand_(n[j], false));
|
| 183 |
+
}
|
| 184 |
+
}
|
| 185 |
+
for (let j = 0; j < N.length; j++) {
|
| 186 |
+
for (let k = 0; k < post.length; k++) {
|
| 187 |
+
const expansion = pre + N[j] + post[k];
|
| 188 |
+
if (!isTop || isSequence || expansion) {
|
| 189 |
+
expansions.push(expansion);
|
| 190 |
+
}
|
| 191 |
+
}
|
| 192 |
+
}
|
| 193 |
+
}
|
| 194 |
+
return expansions;
|
| 195 |
+
}
|
| 196 |
+
//# sourceMappingURL=index.js.map
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/dist/commonjs/package.json
ADD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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { balanced } from '@isaacs/balanced-match';
|
| 2 |
+
const escSlash = '\0SLASH' + Math.random() + '\0';
|
| 3 |
+
const escOpen = '\0OPEN' + Math.random() + '\0';
|
| 4 |
+
const escClose = '\0CLOSE' + Math.random() + '\0';
|
| 5 |
+
const escComma = '\0COMMA' + Math.random() + '\0';
|
| 6 |
+
const escPeriod = '\0PERIOD' + Math.random() + '\0';
|
| 7 |
+
const escSlashPattern = new RegExp(escSlash, 'g');
|
| 8 |
+
const escOpenPattern = new RegExp(escOpen, 'g');
|
| 9 |
+
const escClosePattern = new RegExp(escClose, 'g');
|
| 10 |
+
const escCommaPattern = new RegExp(escComma, 'g');
|
| 11 |
+
const escPeriodPattern = new RegExp(escPeriod, 'g');
|
| 12 |
+
const slashPattern = /\\\\/g;
|
| 13 |
+
const openPattern = /\\{/g;
|
| 14 |
+
const closePattern = /\\}/g;
|
| 15 |
+
const commaPattern = /\\,/g;
|
| 16 |
+
const periodPattern = /\\./g;
|
| 17 |
+
function numeric(str) {
|
| 18 |
+
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
| 19 |
+
}
|
| 20 |
+
function escapeBraces(str) {
|
| 21 |
+
return str
|
| 22 |
+
.replace(slashPattern, escSlash)
|
| 23 |
+
.replace(openPattern, escOpen)
|
| 24 |
+
.replace(closePattern, escClose)
|
| 25 |
+
.replace(commaPattern, escComma)
|
| 26 |
+
.replace(periodPattern, escPeriod);
|
| 27 |
+
}
|
| 28 |
+
function unescapeBraces(str) {
|
| 29 |
+
return str
|
| 30 |
+
.replace(escSlashPattern, '\\')
|
| 31 |
+
.replace(escOpenPattern, '{')
|
| 32 |
+
.replace(escClosePattern, '}')
|
| 33 |
+
.replace(escCommaPattern, ',')
|
| 34 |
+
.replace(escPeriodPattern, '.');
|
| 35 |
+
}
|
| 36 |
+
/**
|
| 37 |
+
* Basically just str.split(","), but handling cases
|
| 38 |
+
* where we have nested braced sections, which should be
|
| 39 |
+
* treated as individual members, like {a,{b,c},d}
|
| 40 |
+
*/
|
| 41 |
+
function parseCommaParts(str) {
|
| 42 |
+
if (!str) {
|
| 43 |
+
return [''];
|
| 44 |
+
}
|
| 45 |
+
const parts = [];
|
| 46 |
+
const m = balanced('{', '}', str);
|
| 47 |
+
if (!m) {
|
| 48 |
+
return str.split(',');
|
| 49 |
+
}
|
| 50 |
+
const { pre, body, post } = m;
|
| 51 |
+
const p = pre.split(',');
|
| 52 |
+
p[p.length - 1] += '{' + body + '}';
|
| 53 |
+
const postParts = parseCommaParts(post);
|
| 54 |
+
if (post.length) {
|
| 55 |
+
;
|
| 56 |
+
p[p.length - 1] += postParts.shift();
|
| 57 |
+
p.push.apply(p, postParts);
|
| 58 |
+
}
|
| 59 |
+
parts.push.apply(parts, p);
|
| 60 |
+
return parts;
|
| 61 |
+
}
|
| 62 |
+
export function expand(str) {
|
| 63 |
+
if (!str) {
|
| 64 |
+
return [];
|
| 65 |
+
}
|
| 66 |
+
// I don't know why Bash 4.3 does this, but it does.
|
| 67 |
+
// Anything starting with {} will have the first two bytes preserved
|
| 68 |
+
// but *only* at the top level, so {},a}b will not expand to anything,
|
| 69 |
+
// but a{},b}c will be expanded to [a}c,abc].
|
| 70 |
+
// One could argue that this is a bug in Bash, but since the goal of
|
| 71 |
+
// this module is to match Bash's rules, we escape a leading {}
|
| 72 |
+
if (str.slice(0, 2) === '{}') {
|
| 73 |
+
str = '\\{\\}' + str.slice(2);
|
| 74 |
+
}
|
| 75 |
+
return expand_(escapeBraces(str), true).map(unescapeBraces);
|
| 76 |
+
}
|
| 77 |
+
function embrace(str) {
|
| 78 |
+
return '{' + str + '}';
|
| 79 |
+
}
|
| 80 |
+
function isPadded(el) {
|
| 81 |
+
return /^-?0\d/.test(el);
|
| 82 |
+
}
|
| 83 |
+
function lte(i, y) {
|
| 84 |
+
return i <= y;
|
| 85 |
+
}
|
| 86 |
+
function gte(i, y) {
|
| 87 |
+
return i >= y;
|
| 88 |
+
}
|
| 89 |
+
function expand_(str, isTop) {
|
| 90 |
+
/** @type {string[]} */
|
| 91 |
+
const expansions = [];
|
| 92 |
+
const m = balanced('{', '}', str);
|
| 93 |
+
if (!m)
|
| 94 |
+
return [str];
|
| 95 |
+
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
| 96 |
+
const pre = m.pre;
|
| 97 |
+
const post = m.post.length ? expand_(m.post, false) : [''];
|
| 98 |
+
if (/\$$/.test(m.pre)) {
|
| 99 |
+
for (let k = 0; k < post.length; k++) {
|
| 100 |
+
const expansion = pre + '{' + m.body + '}' + post[k];
|
| 101 |
+
expansions.push(expansion);
|
| 102 |
+
}
|
| 103 |
+
}
|
| 104 |
+
else {
|
| 105 |
+
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
| 106 |
+
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
| 107 |
+
const isSequence = isNumericSequence || isAlphaSequence;
|
| 108 |
+
const isOptions = m.body.indexOf(',') >= 0;
|
| 109 |
+
if (!isSequence && !isOptions) {
|
| 110 |
+
// {a},b}
|
| 111 |
+
if (m.post.match(/,(?!,).*\}/)) {
|
| 112 |
+
str = m.pre + '{' + m.body + escClose + m.post;
|
| 113 |
+
return expand_(str);
|
| 114 |
+
}
|
| 115 |
+
return [str];
|
| 116 |
+
}
|
| 117 |
+
let n;
|
| 118 |
+
if (isSequence) {
|
| 119 |
+
n = m.body.split(/\.\./);
|
| 120 |
+
}
|
| 121 |
+
else {
|
| 122 |
+
n = parseCommaParts(m.body);
|
| 123 |
+
if (n.length === 1 && n[0] !== undefined) {
|
| 124 |
+
// x{{a,b}}y ==> x{a}y x{b}y
|
| 125 |
+
n = expand_(n[0], false).map(embrace);
|
| 126 |
+
//XXX is this necessary? Can't seem to hit it in tests.
|
| 127 |
+
/* c8 ignore start */
|
| 128 |
+
if (n.length === 1) {
|
| 129 |
+
return post.map(p => m.pre + n[0] + p);
|
| 130 |
+
}
|
| 131 |
+
/* c8 ignore stop */
|
| 132 |
+
}
|
| 133 |
+
}
|
| 134 |
+
// at this point, n is the parts, and we know it's not a comma set
|
| 135 |
+
// with a single entry.
|
| 136 |
+
let N;
|
| 137 |
+
if (isSequence && n[0] !== undefined && n[1] !== undefined) {
|
| 138 |
+
const x = numeric(n[0]);
|
| 139 |
+
const y = numeric(n[1]);
|
| 140 |
+
const width = Math.max(n[0].length, n[1].length);
|
| 141 |
+
let incr = n.length === 3 && n[2] !== undefined ? Math.abs(numeric(n[2])) : 1;
|
| 142 |
+
let test = lte;
|
| 143 |
+
const reverse = y < x;
|
| 144 |
+
if (reverse) {
|
| 145 |
+
incr *= -1;
|
| 146 |
+
test = gte;
|
| 147 |
+
}
|
| 148 |
+
const pad = n.some(isPadded);
|
| 149 |
+
N = [];
|
| 150 |
+
for (let i = x; test(i, y); i += incr) {
|
| 151 |
+
let c;
|
| 152 |
+
if (isAlphaSequence) {
|
| 153 |
+
c = String.fromCharCode(i);
|
| 154 |
+
if (c === '\\') {
|
| 155 |
+
c = '';
|
| 156 |
+
}
|
| 157 |
+
}
|
| 158 |
+
else {
|
| 159 |
+
c = String(i);
|
| 160 |
+
if (pad) {
|
| 161 |
+
const need = width - c.length;
|
| 162 |
+
if (need > 0) {
|
| 163 |
+
const z = new Array(need + 1).join('0');
|
| 164 |
+
if (i < 0) {
|
| 165 |
+
c = '-' + z + c.slice(1);
|
| 166 |
+
}
|
| 167 |
+
else {
|
| 168 |
+
c = z + c;
|
| 169 |
+
}
|
| 170 |
+
}
|
| 171 |
+
}
|
| 172 |
+
}
|
| 173 |
+
N.push(c);
|
| 174 |
+
}
|
| 175 |
+
}
|
| 176 |
+
else {
|
| 177 |
+
N = [];
|
| 178 |
+
for (let j = 0; j < n.length; j++) {
|
| 179 |
+
N.push.apply(N, expand_(n[j], false));
|
| 180 |
+
}
|
| 181 |
+
}
|
| 182 |
+
for (let j = 0; j < N.length; j++) {
|
| 183 |
+
for (let k = 0; k < post.length; k++) {
|
| 184 |
+
const expansion = pre + N[j] + post[k];
|
| 185 |
+
if (!isTop || isSequence || expansion) {
|
| 186 |
+
expansions.push(expansion);
|
| 187 |
+
}
|
| 188 |
+
}
|
| 189 |
+
}
|
| 190 |
+
}
|
| 191 |
+
return expansions;
|
| 192 |
+
}
|
| 193 |
+
//# sourceMappingURL=index.js.map
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/dist/esm/package.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "module"
|
| 3 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/brace-expansion/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@isaacs/brace-expansion",
|
| 3 |
+
"description": "Brace expansion as known from sh/bash",
|
| 4 |
+
"version": "5.0.0",
|
| 5 |
+
"files": [
|
| 6 |
+
"dist"
|
| 7 |
+
],
|
| 8 |
+
"exports": {
|
| 9 |
+
"./package.json": "./package.json",
|
| 10 |
+
".": {
|
| 11 |
+
"import": {
|
| 12 |
+
"types": "./dist/esm/index.d.ts",
|
| 13 |
+
"default": "./dist/esm/index.js"
|
| 14 |
+
},
|
| 15 |
+
"require": {
|
| 16 |
+
"types": "./dist/commonjs/index.d.ts",
|
| 17 |
+
"default": "./dist/commonjs/index.js"
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
},
|
| 21 |
+
"type": "module",
|
| 22 |
+
"scripts": {
|
| 23 |
+
"preversion": "npm test",
|
| 24 |
+
"postversion": "npm publish",
|
| 25 |
+
"prepublishOnly": "git push origin --follow-tags",
|
| 26 |
+
"prepare": "tshy",
|
| 27 |
+
"pretest": "npm run prepare",
|
| 28 |
+
"presnap": "npm run prepare",
|
| 29 |
+
"test": "tap",
|
| 30 |
+
"snap": "tap",
|
| 31 |
+
"format": "prettier --write . --loglevel warn",
|
| 32 |
+
"benchmark": "node benchmark/index.js",
|
| 33 |
+
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
|
| 34 |
+
},
|
| 35 |
+
"prettier": {
|
| 36 |
+
"semi": false,
|
| 37 |
+
"printWidth": 80,
|
| 38 |
+
"tabWidth": 2,
|
| 39 |
+
"useTabs": false,
|
| 40 |
+
"singleQuote": true,
|
| 41 |
+
"jsxSingleQuote": false,
|
| 42 |
+
"bracketSameLine": true,
|
| 43 |
+
"arrowParens": "avoid",
|
| 44 |
+
"endOfLine": "lf"
|
| 45 |
+
},
|
| 46 |
+
"devDependencies": {
|
| 47 |
+
"@types/brace-expansion": "^1.1.2",
|
| 48 |
+
"@types/node": "^24.0.0",
|
| 49 |
+
"mkdirp": "^3.0.1",
|
| 50 |
+
"prettier": "^3.3.2",
|
| 51 |
+
"tap": "^21.1.0",
|
| 52 |
+
"tshy": "^3.0.2",
|
| 53 |
+
"typedoc": "^0.28.5"
|
| 54 |
+
},
|
| 55 |
+
"dependencies": {
|
| 56 |
+
"@isaacs/balanced-match": "^4.0.1"
|
| 57 |
+
},
|
| 58 |
+
"license": "MIT",
|
| 59 |
+
"engines": {
|
| 60 |
+
"node": "20 || >=22"
|
| 61 |
+
},
|
| 62 |
+
"tshy": {
|
| 63 |
+
"exports": {
|
| 64 |
+
"./package.json": "./package.json",
|
| 65 |
+
".": "./src/index.ts"
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
"main": "./dist/commonjs/index.js",
|
| 69 |
+
"types": "./dist/commonjs/index.d.ts",
|
| 70 |
+
"module": "./dist/esm/index.js"
|
| 71 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/LICENSE.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2015, Contributors
|
| 2 |
+
|
| 3 |
+
Permission to use, copy, modify, and/or distribute this software
|
| 4 |
+
for any purpose with or without fee is hereby granted, provided
|
| 5 |
+
that the above copyright notice and this permission notice
|
| 6 |
+
appear in all copies.
|
| 7 |
+
|
| 8 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
| 9 |
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
| 10 |
+
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
|
| 11 |
+
LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
| 12 |
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 13 |
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
| 14 |
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/build/index.cjs
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
const align = {
|
| 4 |
+
right: alignRight,
|
| 5 |
+
center: alignCenter
|
| 6 |
+
};
|
| 7 |
+
const top = 0;
|
| 8 |
+
const right = 1;
|
| 9 |
+
const bottom = 2;
|
| 10 |
+
const left = 3;
|
| 11 |
+
class UI {
|
| 12 |
+
constructor(opts) {
|
| 13 |
+
var _a;
|
| 14 |
+
this.width = opts.width;
|
| 15 |
+
/* c8 ignore start */
|
| 16 |
+
this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
|
| 17 |
+
/* c8 ignore stop */
|
| 18 |
+
this.rows = [];
|
| 19 |
+
}
|
| 20 |
+
span(...args) {
|
| 21 |
+
const cols = this.div(...args);
|
| 22 |
+
cols.span = true;
|
| 23 |
+
}
|
| 24 |
+
resetOutput() {
|
| 25 |
+
this.rows = [];
|
| 26 |
+
}
|
| 27 |
+
div(...args) {
|
| 28 |
+
if (args.length === 0) {
|
| 29 |
+
this.div('');
|
| 30 |
+
}
|
| 31 |
+
if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {
|
| 32 |
+
return this.applyLayoutDSL(args[0]);
|
| 33 |
+
}
|
| 34 |
+
const cols = args.map(arg => {
|
| 35 |
+
if (typeof arg === 'string') {
|
| 36 |
+
return this.colFromString(arg);
|
| 37 |
+
}
|
| 38 |
+
return arg;
|
| 39 |
+
});
|
| 40 |
+
this.rows.push(cols);
|
| 41 |
+
return cols;
|
| 42 |
+
}
|
| 43 |
+
shouldApplyLayoutDSL(...args) {
|
| 44 |
+
return args.length === 1 && typeof args[0] === 'string' &&
|
| 45 |
+
/[\t\n]/.test(args[0]);
|
| 46 |
+
}
|
| 47 |
+
applyLayoutDSL(str) {
|
| 48 |
+
const rows = str.split('\n').map(row => row.split('\t'));
|
| 49 |
+
let leftColumnWidth = 0;
|
| 50 |
+
// simple heuristic for layout, make sure the
|
| 51 |
+
// second column lines up along the left-hand.
|
| 52 |
+
// don't allow the first column to take up more
|
| 53 |
+
// than 50% of the screen.
|
| 54 |
+
rows.forEach(columns => {
|
| 55 |
+
if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
|
| 56 |
+
leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
|
| 57 |
+
}
|
| 58 |
+
});
|
| 59 |
+
// generate a table:
|
| 60 |
+
// replacing ' ' with padding calculations.
|
| 61 |
+
// using the algorithmically generated width.
|
| 62 |
+
rows.forEach(columns => {
|
| 63 |
+
this.div(...columns.map((r, i) => {
|
| 64 |
+
return {
|
| 65 |
+
text: r.trim(),
|
| 66 |
+
padding: this.measurePadding(r),
|
| 67 |
+
width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
|
| 68 |
+
};
|
| 69 |
+
}));
|
| 70 |
+
});
|
| 71 |
+
return this.rows[this.rows.length - 1];
|
| 72 |
+
}
|
| 73 |
+
colFromString(text) {
|
| 74 |
+
return {
|
| 75 |
+
text,
|
| 76 |
+
padding: this.measurePadding(text)
|
| 77 |
+
};
|
| 78 |
+
}
|
| 79 |
+
measurePadding(str) {
|
| 80 |
+
// measure padding without ansi escape codes
|
| 81 |
+
const noAnsi = mixin.stripAnsi(str);
|
| 82 |
+
return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
|
| 83 |
+
}
|
| 84 |
+
toString() {
|
| 85 |
+
const lines = [];
|
| 86 |
+
this.rows.forEach(row => {
|
| 87 |
+
this.rowToString(row, lines);
|
| 88 |
+
});
|
| 89 |
+
// don't display any lines with the
|
| 90 |
+
// hidden flag set.
|
| 91 |
+
return lines
|
| 92 |
+
.filter(line => !line.hidden)
|
| 93 |
+
.map(line => line.text)
|
| 94 |
+
.join('\n');
|
| 95 |
+
}
|
| 96 |
+
rowToString(row, lines) {
|
| 97 |
+
this.rasterize(row).forEach((rrow, r) => {
|
| 98 |
+
let str = '';
|
| 99 |
+
rrow.forEach((col, c) => {
|
| 100 |
+
const { width } = row[c]; // the width with padding.
|
| 101 |
+
const wrapWidth = this.negatePadding(row[c]); // the width without padding.
|
| 102 |
+
let ts = col; // temporary string used during alignment/padding.
|
| 103 |
+
if (wrapWidth > mixin.stringWidth(col)) {
|
| 104 |
+
ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
|
| 105 |
+
}
|
| 106 |
+
// align the string within its column.
|
| 107 |
+
if (row[c].align && row[c].align !== 'left' && this.wrap) {
|
| 108 |
+
const fn = align[row[c].align];
|
| 109 |
+
ts = fn(ts, wrapWidth);
|
| 110 |
+
if (mixin.stringWidth(ts) < wrapWidth) {
|
| 111 |
+
/* c8 ignore start */
|
| 112 |
+
const w = width || 0;
|
| 113 |
+
/* c8 ignore stop */
|
| 114 |
+
ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
|
| 115 |
+
}
|
| 116 |
+
}
|
| 117 |
+
// apply border and padding to string.
|
| 118 |
+
const padding = row[c].padding || [0, 0, 0, 0];
|
| 119 |
+
if (padding[left]) {
|
| 120 |
+
str += ' '.repeat(padding[left]);
|
| 121 |
+
}
|
| 122 |
+
str += addBorder(row[c], ts, '| ');
|
| 123 |
+
str += ts;
|
| 124 |
+
str += addBorder(row[c], ts, ' |');
|
| 125 |
+
if (padding[right]) {
|
| 126 |
+
str += ' '.repeat(padding[right]);
|
| 127 |
+
}
|
| 128 |
+
// if prior row is span, try to render the
|
| 129 |
+
// current row on the prior line.
|
| 130 |
+
if (r === 0 && lines.length > 0) {
|
| 131 |
+
str = this.renderInline(str, lines[lines.length - 1]);
|
| 132 |
+
}
|
| 133 |
+
});
|
| 134 |
+
// remove trailing whitespace.
|
| 135 |
+
lines.push({
|
| 136 |
+
text: str.replace(/ +$/, ''),
|
| 137 |
+
span: row.span
|
| 138 |
+
});
|
| 139 |
+
});
|
| 140 |
+
return lines;
|
| 141 |
+
}
|
| 142 |
+
// if the full 'source' can render in
|
| 143 |
+
// the target line, do so.
|
| 144 |
+
renderInline(source, previousLine) {
|
| 145 |
+
const match = source.match(/^ */);
|
| 146 |
+
/* c8 ignore start */
|
| 147 |
+
const leadingWhitespace = match ? match[0].length : 0;
|
| 148 |
+
/* c8 ignore stop */
|
| 149 |
+
const target = previousLine.text;
|
| 150 |
+
const targetTextWidth = mixin.stringWidth(target.trimEnd());
|
| 151 |
+
if (!previousLine.span) {
|
| 152 |
+
return source;
|
| 153 |
+
}
|
| 154 |
+
// if we're not applying wrapping logic,
|
| 155 |
+
// just always append to the span.
|
| 156 |
+
if (!this.wrap) {
|
| 157 |
+
previousLine.hidden = true;
|
| 158 |
+
return target + source;
|
| 159 |
+
}
|
| 160 |
+
if (leadingWhitespace < targetTextWidth) {
|
| 161 |
+
return source;
|
| 162 |
+
}
|
| 163 |
+
previousLine.hidden = true;
|
| 164 |
+
return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart();
|
| 165 |
+
}
|
| 166 |
+
rasterize(row) {
|
| 167 |
+
const rrows = [];
|
| 168 |
+
const widths = this.columnWidths(row);
|
| 169 |
+
let wrapped;
|
| 170 |
+
// word wrap all columns, and create
|
| 171 |
+
// a data-structure that is easy to rasterize.
|
| 172 |
+
row.forEach((col, c) => {
|
| 173 |
+
// leave room for left and right padding.
|
| 174 |
+
col.width = widths[c];
|
| 175 |
+
if (this.wrap) {
|
| 176 |
+
wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n');
|
| 177 |
+
}
|
| 178 |
+
else {
|
| 179 |
+
wrapped = col.text.split('\n');
|
| 180 |
+
}
|
| 181 |
+
if (col.border) {
|
| 182 |
+
wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');
|
| 183 |
+
wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'");
|
| 184 |
+
}
|
| 185 |
+
// add top and bottom padding.
|
| 186 |
+
if (col.padding) {
|
| 187 |
+
wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));
|
| 188 |
+
wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));
|
| 189 |
+
}
|
| 190 |
+
wrapped.forEach((str, r) => {
|
| 191 |
+
if (!rrows[r]) {
|
| 192 |
+
rrows.push([]);
|
| 193 |
+
}
|
| 194 |
+
const rrow = rrows[r];
|
| 195 |
+
for (let i = 0; i < c; i++) {
|
| 196 |
+
if (rrow[i] === undefined) {
|
| 197 |
+
rrow.push('');
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
rrow.push(str);
|
| 201 |
+
});
|
| 202 |
+
});
|
| 203 |
+
return rrows;
|
| 204 |
+
}
|
| 205 |
+
negatePadding(col) {
|
| 206 |
+
/* c8 ignore start */
|
| 207 |
+
let wrapWidth = col.width || 0;
|
| 208 |
+
/* c8 ignore stop */
|
| 209 |
+
if (col.padding) {
|
| 210 |
+
wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
|
| 211 |
+
}
|
| 212 |
+
if (col.border) {
|
| 213 |
+
wrapWidth -= 4;
|
| 214 |
+
}
|
| 215 |
+
return wrapWidth;
|
| 216 |
+
}
|
| 217 |
+
columnWidths(row) {
|
| 218 |
+
if (!this.wrap) {
|
| 219 |
+
return row.map(col => {
|
| 220 |
+
return col.width || mixin.stringWidth(col.text);
|
| 221 |
+
});
|
| 222 |
+
}
|
| 223 |
+
let unset = row.length;
|
| 224 |
+
let remainingWidth = this.width;
|
| 225 |
+
// column widths can be set in config.
|
| 226 |
+
const widths = row.map(col => {
|
| 227 |
+
if (col.width) {
|
| 228 |
+
unset--;
|
| 229 |
+
remainingWidth -= col.width;
|
| 230 |
+
return col.width;
|
| 231 |
+
}
|
| 232 |
+
return undefined;
|
| 233 |
+
});
|
| 234 |
+
// any unset widths should be calculated.
|
| 235 |
+
/* c8 ignore start */
|
| 236 |
+
const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
|
| 237 |
+
/* c8 ignore stop */
|
| 238 |
+
return widths.map((w, i) => {
|
| 239 |
+
if (w === undefined) {
|
| 240 |
+
return Math.max(unsetWidth, _minWidth(row[i]));
|
| 241 |
+
}
|
| 242 |
+
return w;
|
| 243 |
+
});
|
| 244 |
+
}
|
| 245 |
+
}
|
| 246 |
+
function addBorder(col, ts, style) {
|
| 247 |
+
if (col.border) {
|
| 248 |
+
if (/[.']-+[.']/.test(ts)) {
|
| 249 |
+
return '';
|
| 250 |
+
}
|
| 251 |
+
if (ts.trim().length !== 0) {
|
| 252 |
+
return style;
|
| 253 |
+
}
|
| 254 |
+
return ' ';
|
| 255 |
+
}
|
| 256 |
+
return '';
|
| 257 |
+
}
|
| 258 |
+
// calculates the minimum width of
|
| 259 |
+
// a column, based on padding preferences.
|
| 260 |
+
function _minWidth(col) {
|
| 261 |
+
const padding = col.padding || [];
|
| 262 |
+
const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
|
| 263 |
+
if (col.border) {
|
| 264 |
+
return minWidth + 4;
|
| 265 |
+
}
|
| 266 |
+
return minWidth;
|
| 267 |
+
}
|
| 268 |
+
function getWindowWidth() {
|
| 269 |
+
/* c8 ignore start */
|
| 270 |
+
if (typeof process === 'object' && process.stdout && process.stdout.columns) {
|
| 271 |
+
return process.stdout.columns;
|
| 272 |
+
}
|
| 273 |
+
return 80;
|
| 274 |
+
}
|
| 275 |
+
/* c8 ignore stop */
|
| 276 |
+
function alignRight(str, width) {
|
| 277 |
+
str = str.trim();
|
| 278 |
+
const strWidth = mixin.stringWidth(str);
|
| 279 |
+
if (strWidth < width) {
|
| 280 |
+
return ' '.repeat(width - strWidth) + str;
|
| 281 |
+
}
|
| 282 |
+
return str;
|
| 283 |
+
}
|
| 284 |
+
function alignCenter(str, width) {
|
| 285 |
+
str = str.trim();
|
| 286 |
+
const strWidth = mixin.stringWidth(str);
|
| 287 |
+
/* c8 ignore start */
|
| 288 |
+
if (strWidth >= width) {
|
| 289 |
+
return str;
|
| 290 |
+
}
|
| 291 |
+
/* c8 ignore stop */
|
| 292 |
+
return ' '.repeat((width - strWidth) >> 1) + str;
|
| 293 |
+
}
|
| 294 |
+
let mixin;
|
| 295 |
+
function cliui(opts, _mixin) {
|
| 296 |
+
mixin = _mixin;
|
| 297 |
+
return new UI({
|
| 298 |
+
/* c8 ignore start */
|
| 299 |
+
width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
|
| 300 |
+
wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
|
| 301 |
+
/* c8 ignore stop */
|
| 302 |
+
});
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
// Bootstrap cliui with CommonJS dependencies:
|
| 306 |
+
const stringWidth = require('string-width-cjs');
|
| 307 |
+
const stripAnsi = require('strip-ansi-cjs');
|
| 308 |
+
const wrap = require('wrap-ansi-cjs');
|
| 309 |
+
function ui(opts) {
|
| 310 |
+
return cliui(opts, {
|
| 311 |
+
stringWidth,
|
| 312 |
+
stripAnsi,
|
| 313 |
+
wrap
|
| 314 |
+
});
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
module.exports = ui;
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/build/index.d.cts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface UIOptions {
|
| 2 |
+
width: number;
|
| 3 |
+
wrap?: boolean;
|
| 4 |
+
rows?: string[];
|
| 5 |
+
}
|
| 6 |
+
interface Column {
|
| 7 |
+
text: string;
|
| 8 |
+
width?: number;
|
| 9 |
+
align?: "right" | "left" | "center";
|
| 10 |
+
padding: number[];
|
| 11 |
+
border?: boolean;
|
| 12 |
+
}
|
| 13 |
+
interface ColumnArray extends Array<Column> {
|
| 14 |
+
span: boolean;
|
| 15 |
+
}
|
| 16 |
+
interface Line {
|
| 17 |
+
hidden?: boolean;
|
| 18 |
+
text: string;
|
| 19 |
+
span?: boolean;
|
| 20 |
+
}
|
| 21 |
+
declare class UI {
|
| 22 |
+
width: number;
|
| 23 |
+
wrap: boolean;
|
| 24 |
+
rows: ColumnArray[];
|
| 25 |
+
constructor(opts: UIOptions);
|
| 26 |
+
span(...args: ColumnArray): void;
|
| 27 |
+
resetOutput(): void;
|
| 28 |
+
div(...args: (Column | string)[]): ColumnArray;
|
| 29 |
+
private shouldApplyLayoutDSL;
|
| 30 |
+
private applyLayoutDSL;
|
| 31 |
+
private colFromString;
|
| 32 |
+
private measurePadding;
|
| 33 |
+
toString(): string;
|
| 34 |
+
rowToString(row: ColumnArray, lines: Line[]): Line[];
|
| 35 |
+
// if the full 'source' can render in
|
| 36 |
+
// the target line, do so.
|
| 37 |
+
private renderInline;
|
| 38 |
+
private rasterize;
|
| 39 |
+
private negatePadding;
|
| 40 |
+
private columnWidths;
|
| 41 |
+
}
|
| 42 |
+
declare function ui(opts: UIOptions): UI;
|
| 43 |
+
export { ui as default };
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/build/lib/index.js
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
const align = {
|
| 3 |
+
right: alignRight,
|
| 4 |
+
center: alignCenter
|
| 5 |
+
};
|
| 6 |
+
const top = 0;
|
| 7 |
+
const right = 1;
|
| 8 |
+
const bottom = 2;
|
| 9 |
+
const left = 3;
|
| 10 |
+
export class UI {
|
| 11 |
+
constructor(opts) {
|
| 12 |
+
var _a;
|
| 13 |
+
this.width = opts.width;
|
| 14 |
+
/* c8 ignore start */
|
| 15 |
+
this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
|
| 16 |
+
/* c8 ignore stop */
|
| 17 |
+
this.rows = [];
|
| 18 |
+
}
|
| 19 |
+
span(...args) {
|
| 20 |
+
const cols = this.div(...args);
|
| 21 |
+
cols.span = true;
|
| 22 |
+
}
|
| 23 |
+
resetOutput() {
|
| 24 |
+
this.rows = [];
|
| 25 |
+
}
|
| 26 |
+
div(...args) {
|
| 27 |
+
if (args.length === 0) {
|
| 28 |
+
this.div('');
|
| 29 |
+
}
|
| 30 |
+
if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {
|
| 31 |
+
return this.applyLayoutDSL(args[0]);
|
| 32 |
+
}
|
| 33 |
+
const cols = args.map(arg => {
|
| 34 |
+
if (typeof arg === 'string') {
|
| 35 |
+
return this.colFromString(arg);
|
| 36 |
+
}
|
| 37 |
+
return arg;
|
| 38 |
+
});
|
| 39 |
+
this.rows.push(cols);
|
| 40 |
+
return cols;
|
| 41 |
+
}
|
| 42 |
+
shouldApplyLayoutDSL(...args) {
|
| 43 |
+
return args.length === 1 && typeof args[0] === 'string' &&
|
| 44 |
+
/[\t\n]/.test(args[0]);
|
| 45 |
+
}
|
| 46 |
+
applyLayoutDSL(str) {
|
| 47 |
+
const rows = str.split('\n').map(row => row.split('\t'));
|
| 48 |
+
let leftColumnWidth = 0;
|
| 49 |
+
// simple heuristic for layout, make sure the
|
| 50 |
+
// second column lines up along the left-hand.
|
| 51 |
+
// don't allow the first column to take up more
|
| 52 |
+
// than 50% of the screen.
|
| 53 |
+
rows.forEach(columns => {
|
| 54 |
+
if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
|
| 55 |
+
leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
|
| 56 |
+
}
|
| 57 |
+
});
|
| 58 |
+
// generate a table:
|
| 59 |
+
// replacing ' ' with padding calculations.
|
| 60 |
+
// using the algorithmically generated width.
|
| 61 |
+
rows.forEach(columns => {
|
| 62 |
+
this.div(...columns.map((r, i) => {
|
| 63 |
+
return {
|
| 64 |
+
text: r.trim(),
|
| 65 |
+
padding: this.measurePadding(r),
|
| 66 |
+
width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
|
| 67 |
+
};
|
| 68 |
+
}));
|
| 69 |
+
});
|
| 70 |
+
return this.rows[this.rows.length - 1];
|
| 71 |
+
}
|
| 72 |
+
colFromString(text) {
|
| 73 |
+
return {
|
| 74 |
+
text,
|
| 75 |
+
padding: this.measurePadding(text)
|
| 76 |
+
};
|
| 77 |
+
}
|
| 78 |
+
measurePadding(str) {
|
| 79 |
+
// measure padding without ansi escape codes
|
| 80 |
+
const noAnsi = mixin.stripAnsi(str);
|
| 81 |
+
return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
|
| 82 |
+
}
|
| 83 |
+
toString() {
|
| 84 |
+
const lines = [];
|
| 85 |
+
this.rows.forEach(row => {
|
| 86 |
+
this.rowToString(row, lines);
|
| 87 |
+
});
|
| 88 |
+
// don't display any lines with the
|
| 89 |
+
// hidden flag set.
|
| 90 |
+
return lines
|
| 91 |
+
.filter(line => !line.hidden)
|
| 92 |
+
.map(line => line.text)
|
| 93 |
+
.join('\n');
|
| 94 |
+
}
|
| 95 |
+
rowToString(row, lines) {
|
| 96 |
+
this.rasterize(row).forEach((rrow, r) => {
|
| 97 |
+
let str = '';
|
| 98 |
+
rrow.forEach((col, c) => {
|
| 99 |
+
const { width } = row[c]; // the width with padding.
|
| 100 |
+
const wrapWidth = this.negatePadding(row[c]); // the width without padding.
|
| 101 |
+
let ts = col; // temporary string used during alignment/padding.
|
| 102 |
+
if (wrapWidth > mixin.stringWidth(col)) {
|
| 103 |
+
ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
|
| 104 |
+
}
|
| 105 |
+
// align the string within its column.
|
| 106 |
+
if (row[c].align && row[c].align !== 'left' && this.wrap) {
|
| 107 |
+
const fn = align[row[c].align];
|
| 108 |
+
ts = fn(ts, wrapWidth);
|
| 109 |
+
if (mixin.stringWidth(ts) < wrapWidth) {
|
| 110 |
+
/* c8 ignore start */
|
| 111 |
+
const w = width || 0;
|
| 112 |
+
/* c8 ignore stop */
|
| 113 |
+
ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
// apply border and padding to string.
|
| 117 |
+
const padding = row[c].padding || [0, 0, 0, 0];
|
| 118 |
+
if (padding[left]) {
|
| 119 |
+
str += ' '.repeat(padding[left]);
|
| 120 |
+
}
|
| 121 |
+
str += addBorder(row[c], ts, '| ');
|
| 122 |
+
str += ts;
|
| 123 |
+
str += addBorder(row[c], ts, ' |');
|
| 124 |
+
if (padding[right]) {
|
| 125 |
+
str += ' '.repeat(padding[right]);
|
| 126 |
+
}
|
| 127 |
+
// if prior row is span, try to render the
|
| 128 |
+
// current row on the prior line.
|
| 129 |
+
if (r === 0 && lines.length > 0) {
|
| 130 |
+
str = this.renderInline(str, lines[lines.length - 1]);
|
| 131 |
+
}
|
| 132 |
+
});
|
| 133 |
+
// remove trailing whitespace.
|
| 134 |
+
lines.push({
|
| 135 |
+
text: str.replace(/ +$/, ''),
|
| 136 |
+
span: row.span
|
| 137 |
+
});
|
| 138 |
+
});
|
| 139 |
+
return lines;
|
| 140 |
+
}
|
| 141 |
+
// if the full 'source' can render in
|
| 142 |
+
// the target line, do so.
|
| 143 |
+
renderInline(source, previousLine) {
|
| 144 |
+
const match = source.match(/^ */);
|
| 145 |
+
/* c8 ignore start */
|
| 146 |
+
const leadingWhitespace = match ? match[0].length : 0;
|
| 147 |
+
/* c8 ignore stop */
|
| 148 |
+
const target = previousLine.text;
|
| 149 |
+
const targetTextWidth = mixin.stringWidth(target.trimEnd());
|
| 150 |
+
if (!previousLine.span) {
|
| 151 |
+
return source;
|
| 152 |
+
}
|
| 153 |
+
// if we're not applying wrapping logic,
|
| 154 |
+
// just always append to the span.
|
| 155 |
+
if (!this.wrap) {
|
| 156 |
+
previousLine.hidden = true;
|
| 157 |
+
return target + source;
|
| 158 |
+
}
|
| 159 |
+
if (leadingWhitespace < targetTextWidth) {
|
| 160 |
+
return source;
|
| 161 |
+
}
|
| 162 |
+
previousLine.hidden = true;
|
| 163 |
+
return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart();
|
| 164 |
+
}
|
| 165 |
+
rasterize(row) {
|
| 166 |
+
const rrows = [];
|
| 167 |
+
const widths = this.columnWidths(row);
|
| 168 |
+
let wrapped;
|
| 169 |
+
// word wrap all columns, and create
|
| 170 |
+
// a data-structure that is easy to rasterize.
|
| 171 |
+
row.forEach((col, c) => {
|
| 172 |
+
// leave room for left and right padding.
|
| 173 |
+
col.width = widths[c];
|
| 174 |
+
if (this.wrap) {
|
| 175 |
+
wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n');
|
| 176 |
+
}
|
| 177 |
+
else {
|
| 178 |
+
wrapped = col.text.split('\n');
|
| 179 |
+
}
|
| 180 |
+
if (col.border) {
|
| 181 |
+
wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');
|
| 182 |
+
wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'");
|
| 183 |
+
}
|
| 184 |
+
// add top and bottom padding.
|
| 185 |
+
if (col.padding) {
|
| 186 |
+
wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));
|
| 187 |
+
wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));
|
| 188 |
+
}
|
| 189 |
+
wrapped.forEach((str, r) => {
|
| 190 |
+
if (!rrows[r]) {
|
| 191 |
+
rrows.push([]);
|
| 192 |
+
}
|
| 193 |
+
const rrow = rrows[r];
|
| 194 |
+
for (let i = 0; i < c; i++) {
|
| 195 |
+
if (rrow[i] === undefined) {
|
| 196 |
+
rrow.push('');
|
| 197 |
+
}
|
| 198 |
+
}
|
| 199 |
+
rrow.push(str);
|
| 200 |
+
});
|
| 201 |
+
});
|
| 202 |
+
return rrows;
|
| 203 |
+
}
|
| 204 |
+
negatePadding(col) {
|
| 205 |
+
/* c8 ignore start */
|
| 206 |
+
let wrapWidth = col.width || 0;
|
| 207 |
+
/* c8 ignore stop */
|
| 208 |
+
if (col.padding) {
|
| 209 |
+
wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
|
| 210 |
+
}
|
| 211 |
+
if (col.border) {
|
| 212 |
+
wrapWidth -= 4;
|
| 213 |
+
}
|
| 214 |
+
return wrapWidth;
|
| 215 |
+
}
|
| 216 |
+
columnWidths(row) {
|
| 217 |
+
if (!this.wrap) {
|
| 218 |
+
return row.map(col => {
|
| 219 |
+
return col.width || mixin.stringWidth(col.text);
|
| 220 |
+
});
|
| 221 |
+
}
|
| 222 |
+
let unset = row.length;
|
| 223 |
+
let remainingWidth = this.width;
|
| 224 |
+
// column widths can be set in config.
|
| 225 |
+
const widths = row.map(col => {
|
| 226 |
+
if (col.width) {
|
| 227 |
+
unset--;
|
| 228 |
+
remainingWidth -= col.width;
|
| 229 |
+
return col.width;
|
| 230 |
+
}
|
| 231 |
+
return undefined;
|
| 232 |
+
});
|
| 233 |
+
// any unset widths should be calculated.
|
| 234 |
+
/* c8 ignore start */
|
| 235 |
+
const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
|
| 236 |
+
/* c8 ignore stop */
|
| 237 |
+
return widths.map((w, i) => {
|
| 238 |
+
if (w === undefined) {
|
| 239 |
+
return Math.max(unsetWidth, _minWidth(row[i]));
|
| 240 |
+
}
|
| 241 |
+
return w;
|
| 242 |
+
});
|
| 243 |
+
}
|
| 244 |
+
}
|
| 245 |
+
function addBorder(col, ts, style) {
|
| 246 |
+
if (col.border) {
|
| 247 |
+
if (/[.']-+[.']/.test(ts)) {
|
| 248 |
+
return '';
|
| 249 |
+
}
|
| 250 |
+
if (ts.trim().length !== 0) {
|
| 251 |
+
return style;
|
| 252 |
+
}
|
| 253 |
+
return ' ';
|
| 254 |
+
}
|
| 255 |
+
return '';
|
| 256 |
+
}
|
| 257 |
+
// calculates the minimum width of
|
| 258 |
+
// a column, based on padding preferences.
|
| 259 |
+
function _minWidth(col) {
|
| 260 |
+
const padding = col.padding || [];
|
| 261 |
+
const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
|
| 262 |
+
if (col.border) {
|
| 263 |
+
return minWidth + 4;
|
| 264 |
+
}
|
| 265 |
+
return minWidth;
|
| 266 |
+
}
|
| 267 |
+
function getWindowWidth() {
|
| 268 |
+
/* c8 ignore start */
|
| 269 |
+
if (typeof process === 'object' && process.stdout && process.stdout.columns) {
|
| 270 |
+
return process.stdout.columns;
|
| 271 |
+
}
|
| 272 |
+
return 80;
|
| 273 |
+
}
|
| 274 |
+
/* c8 ignore stop */
|
| 275 |
+
function alignRight(str, width) {
|
| 276 |
+
str = str.trim();
|
| 277 |
+
const strWidth = mixin.stringWidth(str);
|
| 278 |
+
if (strWidth < width) {
|
| 279 |
+
return ' '.repeat(width - strWidth) + str;
|
| 280 |
+
}
|
| 281 |
+
return str;
|
| 282 |
+
}
|
| 283 |
+
function alignCenter(str, width) {
|
| 284 |
+
str = str.trim();
|
| 285 |
+
const strWidth = mixin.stringWidth(str);
|
| 286 |
+
/* c8 ignore start */
|
| 287 |
+
if (strWidth >= width) {
|
| 288 |
+
return str;
|
| 289 |
+
}
|
| 290 |
+
/* c8 ignore stop */
|
| 291 |
+
return ' '.repeat((width - strWidth) >> 1) + str;
|
| 292 |
+
}
|
| 293 |
+
let mixin;
|
| 294 |
+
export function cliui(opts, _mixin) {
|
| 295 |
+
mixin = _mixin;
|
| 296 |
+
return new UI({
|
| 297 |
+
/* c8 ignore start */
|
| 298 |
+
width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
|
| 299 |
+
wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
|
| 300 |
+
/* c8 ignore stop */
|
| 301 |
+
});
|
| 302 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Bootstrap cliui with ESM dependencies:
|
| 2 |
+
import { cliui } from './build/lib/index.js'
|
| 3 |
+
|
| 4 |
+
import stringWidth from 'string-width'
|
| 5 |
+
import stripAnsi from 'strip-ansi'
|
| 6 |
+
import wrap from 'wrap-ansi'
|
| 7 |
+
|
| 8 |
+
export default function ui (opts) {
|
| 9 |
+
return cliui(opts, {
|
| 10 |
+
stringWidth,
|
| 11 |
+
stripAnsi,
|
| 12 |
+
wrap
|
| 13 |
+
})
|
| 14 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default function ansiRegex({onlyFirst = false} = {}) {
|
| 2 |
+
// Valid string terminator sequences are BEL, ESC\, and 0x9c
|
| 3 |
+
const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
|
| 4 |
+
|
| 5 |
+
// OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
|
| 6 |
+
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
| 7 |
+
|
| 8 |
+
// CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
|
| 9 |
+
const csi = '[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]';
|
| 10 |
+
|
| 11 |
+
const pattern = `${osc}|${csi}`;
|
| 12 |
+
|
| 13 |
+
return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
| 14 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex/license
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "ansi-regex",
|
| 3 |
+
"version": "6.2.2",
|
| 4 |
+
"description": "Regular expression for matching ANSI escape codes",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "chalk/ansi-regex",
|
| 7 |
+
"funding": "https://github.com/chalk/ansi-regex?sponsor=1",
|
| 8 |
+
"author": {
|
| 9 |
+
"name": "Sindre Sorhus",
|
| 10 |
+
"email": "sindresorhus@gmail.com",
|
| 11 |
+
"url": "https://sindresorhus.com"
|
| 12 |
+
},
|
| 13 |
+
"type": "module",
|
| 14 |
+
"exports": "./index.js",
|
| 15 |
+
"types": "./index.d.ts",
|
| 16 |
+
"sideEffects": false,
|
| 17 |
+
"engines": {
|
| 18 |
+
"node": ">=12"
|
| 19 |
+
},
|
| 20 |
+
"scripts": {
|
| 21 |
+
"test": "xo && ava && tsd",
|
| 22 |
+
"view-supported": "node fixtures/view-codes.js"
|
| 23 |
+
},
|
| 24 |
+
"files": [
|
| 25 |
+
"index.js",
|
| 26 |
+
"index.d.ts"
|
| 27 |
+
],
|
| 28 |
+
"keywords": [
|
| 29 |
+
"ansi",
|
| 30 |
+
"styles",
|
| 31 |
+
"color",
|
| 32 |
+
"colour",
|
| 33 |
+
"colors",
|
| 34 |
+
"terminal",
|
| 35 |
+
"console",
|
| 36 |
+
"cli",
|
| 37 |
+
"string",
|
| 38 |
+
"tty",
|
| 39 |
+
"escape",
|
| 40 |
+
"formatting",
|
| 41 |
+
"rgb",
|
| 42 |
+
"256",
|
| 43 |
+
"shell",
|
| 44 |
+
"xterm",
|
| 45 |
+
"command-line",
|
| 46 |
+
"text",
|
| 47 |
+
"regex",
|
| 48 |
+
"regexp",
|
| 49 |
+
"re",
|
| 50 |
+
"match",
|
| 51 |
+
"test",
|
| 52 |
+
"find",
|
| 53 |
+
"pattern"
|
| 54 |
+
],
|
| 55 |
+
"devDependencies": {
|
| 56 |
+
"ansi-escapes": "^5.0.0",
|
| 57 |
+
"ava": "^3.15.0",
|
| 58 |
+
"tsd": "^0.21.0",
|
| 59 |
+
"xo": "^0.54.2"
|
| 60 |
+
}
|
| 61 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/LICENSE-MIT.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 4 |
+
a copy of this software and associated documentation files (the
|
| 5 |
+
"Software"), to deal in the Software without restriction, including
|
| 6 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 7 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 8 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 9 |
+
the following conditions:
|
| 10 |
+
|
| 11 |
+
The above copyright notice and this permission notice shall be
|
| 12 |
+
included in all copies or substantial portions of the Software.
|
| 13 |
+
|
| 14 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 15 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 16 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 17 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 18 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 19 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 20 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
module.exports = function () {
|
| 4 |
+
// https://mths.be/emoji
|
| 5 |
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF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D])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E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C3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]/g;
|
| 6 |
+
};
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
module.exports = () => {
|
| 4 |
+
// https://mths.be/emoji
|
| 5 |
+
return /\u{1F3F4}\u{E0067}\u{E0062}(?:\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074}|\u{E0065}\u{E006E}\u{E0067})\u{E007F}|(?:\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FE}]|(?:\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FC}-\u{1F3FF}]|\u{1F468}(?:\u{1F3FB}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u{1F91D}\u200D\u{1F468}[\u{1F3FC}-\u{1F3FF}]|[\u2695\u2696\u2708]\uFE0F|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]))?|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FE}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FE}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FD}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FC}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|\u{1F3FF}|\u{1F3FE}|\u{1F3FD}|\u{1F3FC})?|(?:\u{1F469}(?:\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}]))|\u{1F9D1}[\u{1F3FB}-\u{1F3FF}]\u200D\u{1F91D}\u200D\u{1F9D1})[\u{1F3FB}-\u{1F3FF}]|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F469}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4B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{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FE}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FD}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FC}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FB}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F9D1}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F469}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F636}\u200D\u{1F32B}|\u{1F3F3}\uFE0F\u200D\u26A7|\u{1F43B}\u200D\u2744|(?:[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\uFE0F\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u{1F3F4}\u200D\u2620|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F202}\u{1F237}\u{1F321}\u{1F324}-\u{1F32C}\u{1F336}\u{1F37D}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}\u{1F39F}\u{1F3CD}\u{1F3CE}\u{1F3D4}-\u{1F3DF}\u{1F3F5}\u{1F3F7}\u{1F43F}\u{1F4FD}\u{1F549}\u{1F54A}\u{1F56F}\u{1F570}\u{1F573}\u{1F576}-\u{1F579}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}\u{1F6CB}\u{1F6CD}-\u{1F6CF}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6F0}\u{1F6F3}])\uFE0F|\u{1F3F3}\uFE0F\u200D\u{1F308}|\u{1F469}\u200D\u{1F467}|\u{1F469}\u200D\u{1F466}|\u{1F635}\u200D\u{1F4AB}|\u{1F62E}\u200D\u{1F4A8}|\u{1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}-\u{1F1FA}\u{1F1FC}\u{1F1FD}\u{1F1FF}]|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\uFE0F\u{1F3FB}-\u{1F3FF}]|\u{1F3F4}|[\u270A\u270B\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F46B}-\u{1F46D}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270C\u270D\u{1F574}\u{1F590}][\uFE0F\u{1F3FB}-\u{1F3FF}]|[\u270A\u270B\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F408}\u{1F415}\u{1F43B}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F46B}-\u{1F46D}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F62E}\u{1F635}\u{1F636}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F384}\u{1F386}-\u{1F393}\u{1F3A0}-\u{1F3C1}\u{1F3C5}\u{1F3C6}\u{1F3C8}\u{1F3C9}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F8}-\u{1F407}\u{1F409}-\u{1F414}\u{1F416}-\u{1F43A}\u{1F43C}-\u{1F43E}\u{1F440}\u{1F444}\u{1F445}\u{1F451}-\u{1F465}\u{1F46A}\u{1F479}-\u{1F47B}\u{1F47D}-\u{1F480}\u{1F484}\u{1F488}-\u{1F48E}\u{1F490}\u{1F492}-\u{1F4A9}\u{1F4AB}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F5A4}\u{1F5FB}-\u{1F62D}\u{1F62F}-\u{1F634}\u{1F637}-\u{1F644}\u{1F648}-\u{1F64A}\u{1F680}-\u{1F6A2}\u{1F6A4}-\u{1F6B3}\u{1F6B7}-\u{1F6BF}\u{1F6C1}-\u{1F6C5}\u{1F6D0}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90D}\u{1F90E}\u{1F910}-\u{1F917}\u{1F91D}\u{1F920}-\u{1F925}\u{1F927}-\u{1F92F}\u{1F93A}\u{1F93F}-\u{1F945}\u{1F947}-\u{1F976}\u{1F978}\u{1F97A}-\u{1F9B4}\u{1F9B7}\u{1F9BA}\u{1F9BC}-\u{1F9CB}\u{1F9D0}\u{1F9E0}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]/gu;
|
| 6 |
+
};
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
module.exports = () => {
|
| 4 |
+
// https://mths.be/emoji
|
| 5 |
+
return /\u{1F3F4}\u{E0067}\u{E0062}(?:\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074}|\u{E0065}\u{E006E}\u{E0067})\u{E007F}|(?:\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FE}]|(?:\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FC}-\u{1F3FF}]|\u{1F468}(?:\u{1F3FB}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u{1F91D}\u200D\u{1F468}[\u{1F3FC}-\u{1F3FF}]|[\u2695\u2696\u2708]\uFE0F|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]))?|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FE}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FE}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FD}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FC}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|\u{1F3FF}|\u{1F3FE}|\u{1F3FD}|\u{1F3FC})?|(?:\u{1F469}(?:\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}]))|\u{1F9D1}[\u{1F3FB}-\u{1F3FF}]\u200D\u{1F91D}\u200D\u{1F9D1})[\u{1F3FB}-\u{1F3FF}]|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F469}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FE}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FD}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FC}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FB}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9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{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F9D1}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F469}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F636}\u200D\u{1F32B}|\u{1F3F3}\uFE0F\u200D\u26A7|\u{1F43B}\u200D\u2744|(?:[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\uFE0F\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u{1F3F4}\u200D\u2620|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F202}\u{1F237}\u{1F321}\u{1F324}-\u{1F32C}\u{1F336}\u{1F37D}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}\u{1F39F}\u{1F3CD}\u{1F3CE}\u{1F3D4}-\u{1F3DF}\u{1F3F5}\u{1F3F7}\u{1F43F}\u{1F4FD}\u{1F549}\u{1F54A}\u{1F56F}\u{1F570}\u{1F573}\u{1F576}-\u{1F579}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F5A5}\u{1F5A8}\u{1F5B1}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91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270C\u270D\u{1F574}\u{1F590}][\uFE0F\u{1F3FB}-\u{1F3FF}]|[\u270A\u270B\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F408}\u{1F415}\u{1F43B}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F46B}-\u{1F46D}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F62E}\u{1F635}\u{1F636}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F384}\u{1F386}-\u{1F393}\u{1F3A0}-\u{1F3C1}\u{1F3C5}\u{1F3C6}\u{1F3C8}\u{1F3C9}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F8}-\u{1F407}\u{1F409}-\u{1F414}\u{1F416}-\u{1F43A}\u{1F43C}-\u{1F43E}\u{1F440}\u{1F444}\u{1F445}\u{1F451}-\u{1F465}\u{1F46A}\u{1F479}-\u{1F47B}\u{1F47D}-\u{1F480}\u{1F484}\u{1F488}-\u{1F48E}\u{1F490}\u{1F492}-\u{1F4A9}\u{1F4AB}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F5A4}\u{1F5FB}-\u{1F62D}\u{1F62F}-\u{1F634}\u{1F637}-\u{1F644}\u{1F648}-\u{1F64A}\u{1F680}-\u{1F6A2}\u{1F6A4}-\u{1F6B3}\u{1F6B7}-\u{1F6BF}\u{1F6C1}-\u{1F6C5}\u{1F6D0}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90D}\u{1F90E}\u{1F910}-\u{1F917}\u{1F91D}\u{1F920}-\u{1F925}\u{1F927}-\u{1F92F}\u{1F93A}\u{1F93F}-\u{1F945}\u{1F947}-\u{1F976}\u{1F978}\u{1F97A}-\u{1F9B4}\u{1F9B7}\u{1F9BA}\u{1F9BC}-\u{1F9CB}\u{1F9D0}\u{1F9E0}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F393}\u{1F3A0}-\u{1F3CA}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F4}\u{1F3F8}-\u{1F43E}\u{1F440}\u{1F442}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F57A}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5FB}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CC}\u{1F6D0}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90C}-\u{1F93A}\u{1F93C}-\u{1F945}\u{1F947}-\u{1F978}\u{1F97A}-\u{1F9CB}\u{1F9CD}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]|[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\u{1F004}\u{1F0CF}\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F202}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F321}\u{1F324}-\u{1F393}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}-\u{1F3F0}\u{1F3F3}-\u{1F3F5}\u{1F3F7}-\u{1F4FD}\u{1F4FF}-\u{1F53D}\u{1F549}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F56F}\u{1F570}\u{1F573}-\u{1F57A}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F590}\u{1F595}\u{1F596}\u{1F5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-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
module.exports = () => {
|
| 4 |
+
// https://mths.be/emoji
|
| 5 |
+
return /\u{1F3F4}\u{E0067}\u{E0062}(?:\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074}|\u{E0065}\u{E006E}\u{E0067})\u{E007F}|(?:\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FE}]|(?:\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FC}-\u{1F3FF}]|\u{1F468}(?:\u{1F3FB}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u{1F91D}\u200D\u{1F468}[\u{1F3FC}-\u{1F3FF}]|[\u2695\u2696\u2708]\uFE0F|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]))?|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FE}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FE}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FD}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FC}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|\u{1F3FF}|\u{1F3FE}|\u{1F3FD}|\u{1F3FC})?|(?:\u{1F469}(?:\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}]))|\u{1F9D1}[\u{1F3FB}-\u{1F3FF}]\u200D\u{1F91D}\u200D\u{1F9D1})[\u{1F3FB}-\u{1F3FF}]|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F469}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FE}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FD}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FC}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F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{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FB}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F9D1}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F469}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F636}\u200D\u{1F32B}|\u{1F3F3}\uFE0F\u200D\u26A7|\u{1F43B}\u200D\u2744|(?:[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\uFE0F\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u{1F3F4}\u200D\u2620|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F202}\u{1F237}\u{1F321}\u{1F324}-\u{1F32C}\u{1F336}\u{1F37D}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}\u{1F39F}\u{1F3CD}\u{1F3CE}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F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270C\u270D\u{1F574}\u{1F590}][\uFE0F\u{1F3FB}-\u{1F3FF}]|[\u270A\u270B\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F408}\u{1F415}\u{1F43B}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F46B}-\u{1F46D}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F62E}\u{1F635}\u{1F636}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F384}\u{1F386}-\u{1F393}\u{1F3A0}-\u{1F3C1}\u{1F3C5}\u{1F3C6}\u{1F3C8}\u{1F3C9}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F8}-\u{1F407}\u{1F409}-\u{1F414}\u{1F416}-\u{1F43A}\u{1F43C}-\u{1F43E}\u{1F440}\u{1F444}\u{1F445}\u{1F451}-\u{1F465}\u{1F46A}\u{1F479}-\u{1F47B}\u{1F47D}-\u{1F480}\u{1F484}\u{1F488}-\u{1F48E}\u{1F490}\u{1F492}-\u{1F4A9}\u{1F4AB}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F5A4}\u{1F5FB}-\u{1F62D}\u{1F62F}-\u{1F634}\u{1F637}-\u{1F644}\u{1F648}-\u{1F64A}\u{1F680}-\u{1F6A2}\u{1F6A4}-\u{1F6B3}\u{1F6B7}-\u{1F6BF}\u{1F6C1}-\u{1F6C5}\u{1F6D0}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90D}\u{1F90E}\u{1F910}-\u{1F917}\u{1F91D}\u{1F920}-\u{1F925}\u{1F927}-\u{1F92F}\u{1F93A}\u{1F93F}-\u{1F945}\u{1F947}-\u{1F976}\u{1F978}\u{1F97A}-\u{1F9B4}\u{1F9B7}\u{1F9BA}\u{1F9BC}-\u{1F9CB}\u{1F9D0}\u{1F9E0}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]|[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\u{1F004}\u{1F0CF}\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F202}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F321}\u{1F324}-\u{1F393}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}-\u{1F3F0}\u{1F3F3}-\u{1F3F5}\u{1F3F7}-\u{1F4FD}\u{1F4FF}-\u{1F53D}\u{1F549}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F56F}\u{1F570}\u{1F573}-\u{1F57A}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F590}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CB}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6EB}\u{1F6EC}\u{1F6F0}\u{1F6F3}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90C}-\u{1F93A}\u{1F93C}-\u{1F945}\u{1F947}-\u{1F978}\u{1F97A}-\u{1F9CB}\u{1F9CD}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]\uFE0F?/gu;
|
| 6 |
+
};
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
module.exports = function () {
|
| 4 |
+
// https://mths.be/emoji
|
| 5 |
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\u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\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
| 6 |
+
};
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "emoji-regex",
|
| 3 |
+
"version": "9.2.2",
|
| 4 |
+
"description": "A regular expression to match all Emoji-only symbols as per the Unicode Standard.",
|
| 5 |
+
"homepage": "https://mths.be/emoji-regex",
|
| 6 |
+
"main": "index.js",
|
| 7 |
+
"types": "index.d.ts",
|
| 8 |
+
"keywords": [
|
| 9 |
+
"unicode",
|
| 10 |
+
"regex",
|
| 11 |
+
"regexp",
|
| 12 |
+
"regular expressions",
|
| 13 |
+
"code points",
|
| 14 |
+
"symbols",
|
| 15 |
+
"characters",
|
| 16 |
+
"emoji"
|
| 17 |
+
],
|
| 18 |
+
"license": "MIT",
|
| 19 |
+
"author": {
|
| 20 |
+
"name": "Mathias Bynens",
|
| 21 |
+
"url": "https://mathiasbynens.be/"
|
| 22 |
+
},
|
| 23 |
+
"repository": {
|
| 24 |
+
"type": "git",
|
| 25 |
+
"url": "https://github.com/mathiasbynens/emoji-regex.git"
|
| 26 |
+
},
|
| 27 |
+
"bugs": "https://github.com/mathiasbynens/emoji-regex/issues",
|
| 28 |
+
"files": [
|
| 29 |
+
"LICENSE-MIT.txt",
|
| 30 |
+
"index.js",
|
| 31 |
+
"index.d.ts",
|
| 32 |
+
"RGI_Emoji.js",
|
| 33 |
+
"RGI_Emoji.d.ts",
|
| 34 |
+
"text.js",
|
| 35 |
+
"text.d.ts",
|
| 36 |
+
"es2015"
|
| 37 |
+
],
|
| 38 |
+
"scripts": {
|
| 39 |
+
"build": "rm -rf -- es2015; babel src -d .; NODE_ENV=es2015 babel src es2015_types -D -d ./es2015; node script/inject-sequences.js",
|
| 40 |
+
"test": "mocha",
|
| 41 |
+
"test:watch": "npm run test -- --watch"
|
| 42 |
+
},
|
| 43 |
+
"devDependencies": {
|
| 44 |
+
"@babel/cli": "^7.4.4",
|
| 45 |
+
"@babel/core": "^7.4.4",
|
| 46 |
+
"@babel/plugin-proposal-unicode-property-regex": "^7.4.4",
|
| 47 |
+
"@babel/preset-env": "^7.4.4",
|
| 48 |
+
"@unicode/unicode-13.0.0": "^1.0.3",
|
| 49 |
+
"mocha": "^6.1.4",
|
| 50 |
+
"regexgen": "^1.3.0"
|
| 51 |
+
}
|
| 52 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
module.exports = function () {
|
| 4 |
+
// https://mths.be/emoji
|
| 5 |
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\u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DFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDD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DE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F?/g;
|
| 6 |
+
};
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import stripAnsi from 'strip-ansi';
|
| 2 |
+
import eastAsianWidth from 'eastasianwidth';
|
| 3 |
+
import emojiRegex from 'emoji-regex';
|
| 4 |
+
|
| 5 |
+
export default function stringWidth(string, options = {}) {
|
| 6 |
+
if (typeof string !== 'string' || string.length === 0) {
|
| 7 |
+
return 0;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
options = {
|
| 11 |
+
ambiguousIsNarrow: true,
|
| 12 |
+
...options
|
| 13 |
+
};
|
| 14 |
+
|
| 15 |
+
string = stripAnsi(string);
|
| 16 |
+
|
| 17 |
+
if (string.length === 0) {
|
| 18 |
+
return 0;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
string = string.replace(emojiRegex(), ' ');
|
| 22 |
+
|
| 23 |
+
const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
|
| 24 |
+
let width = 0;
|
| 25 |
+
|
| 26 |
+
for (const character of string) {
|
| 27 |
+
const codePoint = character.codePointAt(0);
|
| 28 |
+
|
| 29 |
+
// Ignore control characters
|
| 30 |
+
if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) {
|
| 31 |
+
continue;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
// Ignore combining characters
|
| 35 |
+
if (codePoint >= 0x300 && codePoint <= 0x36F) {
|
| 36 |
+
continue;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
const code = eastAsianWidth.eastAsianWidth(character);
|
| 40 |
+
switch (code) {
|
| 41 |
+
case 'F':
|
| 42 |
+
case 'W':
|
| 43 |
+
width += 2;
|
| 44 |
+
break;
|
| 45 |
+
case 'A':
|
| 46 |
+
width += ambiguousCharacterWidth;
|
| 47 |
+
break;
|
| 48 |
+
default:
|
| 49 |
+
width += 1;
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
return width;
|
| 54 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width/license
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "string-width",
|
| 3 |
+
"version": "5.1.2",
|
| 4 |
+
"description": "Get the visual width of a string - the number of columns required to display it",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "sindresorhus/string-width",
|
| 7 |
+
"funding": "https://github.com/sponsors/sindresorhus",
|
| 8 |
+
"author": {
|
| 9 |
+
"name": "Sindre Sorhus",
|
| 10 |
+
"email": "sindresorhus@gmail.com",
|
| 11 |
+
"url": "https://sindresorhus.com"
|
| 12 |
+
},
|
| 13 |
+
"type": "module",
|
| 14 |
+
"exports": "./index.js",
|
| 15 |
+
"engines": {
|
| 16 |
+
"node": ">=12"
|
| 17 |
+
},
|
| 18 |
+
"scripts": {
|
| 19 |
+
"test": "xo && ava && tsd"
|
| 20 |
+
},
|
| 21 |
+
"files": [
|
| 22 |
+
"index.js",
|
| 23 |
+
"index.d.ts"
|
| 24 |
+
],
|
| 25 |
+
"keywords": [
|
| 26 |
+
"string",
|
| 27 |
+
"character",
|
| 28 |
+
"unicode",
|
| 29 |
+
"width",
|
| 30 |
+
"visual",
|
| 31 |
+
"column",
|
| 32 |
+
"columns",
|
| 33 |
+
"fullwidth",
|
| 34 |
+
"full-width",
|
| 35 |
+
"full",
|
| 36 |
+
"ansi",
|
| 37 |
+
"escape",
|
| 38 |
+
"codes",
|
| 39 |
+
"cli",
|
| 40 |
+
"command-line",
|
| 41 |
+
"terminal",
|
| 42 |
+
"console",
|
| 43 |
+
"cjk",
|
| 44 |
+
"chinese",
|
| 45 |
+
"japanese",
|
| 46 |
+
"korean",
|
| 47 |
+
"fixed-width"
|
| 48 |
+
],
|
| 49 |
+
"dependencies": {
|
| 50 |
+
"eastasianwidth": "^0.2.0",
|
| 51 |
+
"emoji-regex": "^9.2.2",
|
| 52 |
+
"strip-ansi": "^7.0.1"
|
| 53 |
+
},
|
| 54 |
+
"devDependencies": {
|
| 55 |
+
"ava": "^3.15.0",
|
| 56 |
+
"tsd": "^0.14.0",
|
| 57 |
+
"xo": "^0.38.2"
|
| 58 |
+
}
|
| 59 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ansiRegex from 'ansi-regex';
|
| 2 |
+
|
| 3 |
+
const regex = ansiRegex();
|
| 4 |
+
|
| 5 |
+
export default function stripAnsi(string) {
|
| 6 |
+
if (typeof string !== 'string') {
|
| 7 |
+
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
// Even though the regex is global, we don't need to reset the `.lastIndex`
|
| 11 |
+
// because unlike `.exec()` and `.test()`, `.replace()` does it automatically
|
| 12 |
+
// and doing it manually has a performance penalty.
|
| 13 |
+
return string.replace(regex, '');
|
| 14 |
+
}
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi/license
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data_prepare/node-v24.12.0-linux-x64/lib/node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "strip-ansi",
|
| 3 |
+
"version": "7.1.2",
|
| 4 |
+
"description": "Strip ANSI escape codes from a string",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "chalk/strip-ansi",
|
| 7 |
+
"funding": "https://github.com/chalk/strip-ansi?sponsor=1",
|
| 8 |
+
"author": {
|
| 9 |
+
"name": "Sindre Sorhus",
|
| 10 |
+
"email": "sindresorhus@gmail.com",
|
| 11 |
+
"url": "https://sindresorhus.com"
|
| 12 |
+
},
|
| 13 |
+
"type": "module",
|
| 14 |
+
"exports": "./index.js",
|
| 15 |
+
"types": "./index.d.ts",
|
| 16 |
+
"sideEffects": false,
|
| 17 |
+
"engines": {
|
| 18 |
+
"node": ">=12"
|
| 19 |
+
},
|
| 20 |
+
"scripts": {
|
| 21 |
+
"test": "xo && ava && tsd"
|
| 22 |
+
},
|
| 23 |
+
"files": [
|
| 24 |
+
"index.js",
|
| 25 |
+
"index.d.ts"
|
| 26 |
+
],
|
| 27 |
+
"keywords": [
|
| 28 |
+
"strip",
|
| 29 |
+
"trim",
|
| 30 |
+
"remove",
|
| 31 |
+
"ansi",
|
| 32 |
+
"styles",
|
| 33 |
+
"color",
|
| 34 |
+
"colour",
|
| 35 |
+
"colors",
|
| 36 |
+
"terminal",
|
| 37 |
+
"console",
|
| 38 |
+
"string",
|
| 39 |
+
"tty",
|
| 40 |
+
"escape",
|
| 41 |
+
"formatting",
|
| 42 |
+
"rgb",
|
| 43 |
+
"256",
|
| 44 |
+
"shell",
|
| 45 |
+
"xterm",
|
| 46 |
+
"log",
|
| 47 |
+
"logging",
|
| 48 |
+
"command-line",
|
| 49 |
+
"text"
|
| 50 |
+
],
|
| 51 |
+
"dependencies": {
|
| 52 |
+
"ansi-regex": "^6.0.1"
|
| 53 |
+
},
|
| 54 |
+
"devDependencies": {
|
| 55 |
+
"ava": "^3.15.0",
|
| 56 |
+
"tsd": "^0.17.0",
|
| 57 |
+
"xo": "^0.44.0"
|
| 58 |
+
}
|
| 59 |
+
}
|