@alexlit/lint-kit 182.2.0 → 182.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/config-eslint/package.json +3 -3
- package/packages/config-hooks/package.json +2 -2
- package/packages/config-stylelint/package.json +2 -2
- package/packages/config-stylelint/node_modules/ansi-regex/index.d.ts +0 -33
- package/packages/config-stylelint/node_modules/ansi-regex/index.js +0 -14
- package/packages/config-stylelint/node_modules/ansi-regex/license +0 -9
- package/packages/config-stylelint/node_modules/ansi-regex/package.json +0 -61
- package/packages/config-stylelint/node_modules/ansi-regex/readme.md +0 -66
- package/packages/config-stylelint/node_modules/file-entry-cache/LICENSE +0 -19
- package/packages/config-stylelint/node_modules/file-entry-cache/README.md +0 -630
- package/packages/config-stylelint/node_modules/file-entry-cache/dist/index.cjs +0 -559
- package/packages/config-stylelint/node_modules/file-entry-cache/dist/index.d.cts +0 -304
- package/packages/config-stylelint/node_modules/file-entry-cache/dist/index.d.ts +0 -304
- package/packages/config-stylelint/node_modules/file-entry-cache/dist/index.js +0 -525
- package/packages/config-stylelint/node_modules/file-entry-cache/package.json +0 -62
- package/packages/config-stylelint/node_modules/flat-cache/LICENSE +0 -19
- package/packages/config-stylelint/node_modules/flat-cache/README.md +0 -235
- package/packages/config-stylelint/node_modules/flat-cache/dist/index.cjs +0 -495
- package/packages/config-stylelint/node_modules/flat-cache/dist/index.d.cts +0 -255
- package/packages/config-stylelint/node_modules/flat-cache/dist/index.d.ts +0 -255
- package/packages/config-stylelint/node_modules/flat-cache/dist/index.js +0 -455
- package/packages/config-stylelint/node_modules/flat-cache/package.json +0 -87
- package/packages/config-stylelint/node_modules/globby/ignore.js +0 -337
- package/packages/config-stylelint/node_modules/globby/index.d.ts +0 -394
- package/packages/config-stylelint/node_modules/globby/index.js +0 -488
- package/packages/config-stylelint/node_modules/globby/license +0 -9
- package/packages/config-stylelint/node_modules/globby/package.json +0 -94
- package/packages/config-stylelint/node_modules/globby/readme.md +0 -388
- package/packages/config-stylelint/node_modules/globby/utilities.js +0 -382
- package/packages/config-stylelint/node_modules/meow/build/dependencies.js +0 -7347
- package/packages/config-stylelint/node_modules/meow/build/index.d.ts +0 -2684
- package/packages/config-stylelint/node_modules/meow/build/index.js +0 -185
- package/packages/config-stylelint/node_modules/meow/build/licenses.md +0 -1254
- package/packages/config-stylelint/node_modules/meow/build/options.js +0 -147
- package/packages/config-stylelint/node_modules/meow/build/parser.js +0 -113
- package/packages/config-stylelint/node_modules/meow/build/utils.js +0 -7
- package/packages/config-stylelint/node_modules/meow/build/validate.js +0 -145
- package/packages/config-stylelint/node_modules/meow/license +0 -9
- package/packages/config-stylelint/node_modules/meow/package.json +0 -103
- package/packages/config-stylelint/node_modules/meow/readme.md +0 -387
- package/packages/config-stylelint/node_modules/postcss-safe-parser/LICENSE +0 -20
- package/packages/config-stylelint/node_modules/postcss-safe-parser/README.md +0 -25
- package/packages/config-stylelint/node_modules/postcss-safe-parser/lib/safe-parse.js +0 -12
- package/packages/config-stylelint/node_modules/postcss-safe-parser/lib/safe-parser.js +0 -100
- package/packages/config-stylelint/node_modules/postcss-safe-parser/package.json +0 -36
- package/packages/config-stylelint/node_modules/slash/index.d.ts +0 -23
- package/packages/config-stylelint/node_modules/slash/index.js +0 -9
- package/packages/config-stylelint/node_modules/slash/license +0 -9
- package/packages/config-stylelint/node_modules/slash/package.json +0 -39
- package/packages/config-stylelint/node_modules/slash/readme.md +0 -36
- package/packages/config-stylelint/node_modules/string-width/index.d.ts +0 -39
- package/packages/config-stylelint/node_modules/string-width/index.js +0 -119
- package/packages/config-stylelint/node_modules/string-width/license +0 -9
- package/packages/config-stylelint/node_modules/string-width/package.json +0 -65
- package/packages/config-stylelint/node_modules/string-width/readme.md +0 -66
- package/packages/config-stylelint/node_modules/strip-ansi/index.d.ts +0 -15
- package/packages/config-stylelint/node_modules/strip-ansi/index.js +0 -19
- package/packages/config-stylelint/node_modules/strip-ansi/license +0 -9
- package/packages/config-stylelint/node_modules/strip-ansi/package.json +0 -59
- package/packages/config-stylelint/node_modules/strip-ansi/readme.md +0 -37
- package/packages/config-stylelint/node_modules/stylelint/LICENSE +0 -20
- package/packages/config-stylelint/node_modules/stylelint/README.md +0 -113
- package/packages/config-stylelint/node_modules/stylelint/bin/stylelint.mjs +0 -7
- package/packages/config-stylelint/node_modules/stylelint/lib/assignDisabledRanges.mjs +0 -483
- package/packages/config-stylelint/node_modules/stylelint/lib/augmentConfig.mjs +0 -586
- package/packages/config-stylelint/node_modules/stylelint/lib/cli.mjs +0 -746
- package/packages/config-stylelint/node_modules/stylelint/lib/constants.mjs +0 -25
- package/packages/config-stylelint/node_modules/stylelint/lib/createPartialStylelintResult.mjs +0 -114
- package/packages/config-stylelint/node_modules/stylelint/lib/createPlugin.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/createStylelint.mjs +0 -37
- package/packages/config-stylelint/node_modules/stylelint/lib/descriptionlessDisables.mjs +0 -51
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/calcSeverityCounts.mjs +0 -21
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/compactFormatter.mjs +0 -23
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/index.mjs +0 -23
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/jsonFormatter.mjs +0 -10
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/preprocessWarnings.mjs +0 -74
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/stringFormatter.mjs +0 -308
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/tapFormatter.mjs +0 -85
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/terminalLink.mjs +0 -21
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/unixFormatter.mjs +0 -32
- package/packages/config-stylelint/node_modules/stylelint/lib/formatters/verboseFormatter.mjs +0 -175
- package/packages/config-stylelint/node_modules/stylelint/lib/getConfigForFile.mjs +0 -110
- package/packages/config-stylelint/node_modules/stylelint/lib/getPostcssResult.mjs +0 -130
- package/packages/config-stylelint/node_modules/stylelint/lib/index.mjs +0 -38
- package/packages/config-stylelint/node_modules/stylelint/lib/invalidScopeDisables.mjs +0 -41
- package/packages/config-stylelint/node_modules/stylelint/lib/isPathIgnored.mjs +0 -48
- package/packages/config-stylelint/node_modules/stylelint/lib/lintPostcssResult.mjs +0 -172
- package/packages/config-stylelint/node_modules/stylelint/lib/lintSource.mjs +0 -135
- package/packages/config-stylelint/node_modules/stylelint/lib/needlessDisables.mjs +0 -91
- package/packages/config-stylelint/node_modules/stylelint/lib/normalizeAllRuleSettings.mjs +0 -29
- package/packages/config-stylelint/node_modules/stylelint/lib/normalizeRuleSettings.mjs +0 -56
- package/packages/config-stylelint/node_modules/stylelint/lib/postcssPlugin.mjs +0 -50
- package/packages/config-stylelint/node_modules/stylelint/lib/prepareReturnValue.mjs +0 -63
- package/packages/config-stylelint/node_modules/stylelint/lib/printConfig.mjs +0 -44
- package/packages/config-stylelint/node_modules/stylelint/lib/reference/atKeywords.mjs +0 -83
- package/packages/config-stylelint/node_modules/stylelint/lib/reference/functions.mjs +0 -96
- package/packages/config-stylelint/node_modules/stylelint/lib/reference/keywords.mjs +0 -663
- package/packages/config-stylelint/node_modules/stylelint/lib/reference/mediaFeatures.mjs +0 -115
- package/packages/config-stylelint/node_modules/stylelint/lib/reference/mediaTypes.mjs +0 -14
- package/packages/config-stylelint/node_modules/stylelint/lib/reference/prefixes.mjs +0 -17
- package/packages/config-stylelint/node_modules/stylelint/lib/reference/properties.mjs +0 -1112
- package/packages/config-stylelint/node_modules/stylelint/lib/reference/selectors.mjs +0 -472
- package/packages/config-stylelint/node_modules/stylelint/lib/reference/units.mjs +0 -82
- package/packages/config-stylelint/node_modules/stylelint/lib/reportDisables.mjs +0 -48
- package/packages/config-stylelint/node_modules/stylelint/lib/reportUnknownRuleNames.mjs +0 -76
- package/packages/config-stylelint/node_modules/stylelint/lib/resolveConfig.mjs +0 -43
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/alpha-value-notation/index.mjs +0 -207
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/annotation-no-unknown/index.mjs +0 -88
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-allowed-list/index.mjs +0 -62
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-descriptor-no-unknown/index.mjs +0 -108
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-descriptor-value-no-unknown/index.mjs +0 -64
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-disallowed-list/index.mjs +0 -62
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-empty-line-before/index.mjs +0 -178
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-no-deprecated/index.mjs +0 -86
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-no-unknown/index.mjs +0 -80
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-no-vendor-prefix/index.mjs +0 -82
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-prelude-no-invalid/index.mjs +0 -76
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/at-rule-property-required-list/index.mjs +0 -92
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/block-no-empty/index.mjs +0 -116
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/block-no-redundant-nested-style-rules/index.mjs +0 -52
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/color-function-alias-notation/index.mjs +0 -87
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/color-function-notation/index.mjs +0 -168
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/color-hex-alpha/index.mjs +0 -75
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/color-hex-length/index.mjs +0 -128
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/color-named/colordUtils.mjs +0 -109
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/color-named/index.mjs +0 -183
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/color-no-hex/index.mjs +0 -69
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/color-no-invalid-hex/index.mjs +0 -68
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/comment-empty-line-before/index.mjs +0 -131
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/comment-no-empty/index.mjs +0 -50
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/comment-pattern/index.mjs +0 -51
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/comment-whitespace-inside/index.mjs +0 -149
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/comment-word-disallowed-list/index.mjs +0 -63
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/container-name-pattern/index.mjs +0 -107
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/custom-media-pattern/index.mjs +0 -61
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/custom-property-empty-line-before/index.mjs +0 -156
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/custom-property-no-missing-var-function/index.mjs +0 -148
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/custom-property-pattern/index.mjs +0 -100
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-block-no-duplicate-custom-properties/index.mjs +0 -82
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-block-no-duplicate-properties/index.mjs +0 -301
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-block-no-redundant-longhand-properties/index.mjs +0 -411
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-block-no-shorthand-property-overrides/index.mjs +0 -74
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-block-single-line-max-declarations/index.mjs +0 -62
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-empty-line-before/index.mjs +0 -160
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-no-important/index.mjs +0 -51
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-property-max-values/index.mjs +0 -79
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-property-unit-allowed-list/index.mjs +0 -108
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-property-unit-disallowed-list/index.mjs +0 -94
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-property-value-allowed-list/index.mjs +0 -66
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-property-value-disallowed-list/index.mjs +0 -66
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-property-value-keyword-no-deprecated/index.mjs +0 -203
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/declaration-property-value-no-unknown/index.mjs +0 -424
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/display-notation/index.mjs +0 -225
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/font-family-name-quotes/index.mjs +0 -243
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/font-family-no-duplicate-names/index.mjs +0 -122
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/font-family-no-missing-generic-family-keyword/index.mjs +0 -122
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/font-weight-notation/index.mjs +0 -221
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-allowed-list/index.mjs +0 -114
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-calc-no-unspaced-operator/index.mjs +0 -589
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-disallowed-list/index.mjs +0 -73
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-linear-gradient-no-nonstandard-direction/index.mjs +0 -145
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-name-case/index.mjs +0 -120
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-no-unknown/index.mjs +0 -83
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-url-no-scheme-relative/index.mjs +0 -67
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-url-quotes/index.mjs +0 -230
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-url-scheme-allowed-list/index.mjs +0 -70
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/function-url-scheme-disallowed-list/index.mjs +0 -70
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/hue-degree-notation/index.mjs +0 -123
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/import-notation/index.mjs +0 -104
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/index.mjs +0 -180
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/keyframe-block-no-duplicate-selectors/index.mjs +0 -68
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/keyframe-declaration-no-important/index.mjs +0 -54
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/keyframe-selector-notation/index.mjs +0 -202
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/keyframes-name-pattern/index.mjs +0 -63
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/layer-name-pattern/index.mjs +0 -91
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/length-zero-no-unit/index.mjs +0 -221
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/lightness-notation/index.mjs +0 -165
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/max-nesting-depth/index.mjs +0 -195
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-feature-name-allowed-list/index.mjs +0 -67
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-feature-name-disallowed-list/index.mjs +0 -67
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-feature-name-no-unknown/index.mjs +0 -79
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-feature-name-no-vendor-prefix/index.mjs +0 -94
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-feature-name-unit-allowed-list/index.mjs +0 -110
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-feature-name-value-allowed-list/index.mjs +0 -100
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-feature-name-value-no-unknown/index.mjs +0 -277
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-feature-range-notation/index.mjs +0 -187
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-query-no-invalid/index.mjs +0 -193
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/media-type-no-deprecated/index.mjs +0 -82
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/named-grid-areas-no-invalid/index.mjs +0 -117
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/named-grid-areas-no-invalid/utils/findNotContiguousOrRectangular.mjs +0 -57
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/nesting-selector-no-missing-scoping-root/index.mjs +0 -165
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-descending-specificity/index.mjs +0 -200
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/index.mjs +0 -156
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.mjs +0 -218
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-empty-source/index.mjs +0 -61
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-invalid-double-slash-comments/index.mjs +0 -77
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-invalid-position-at-import-rule/index.mjs +0 -76
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-invalid-position-declaration/index.mjs +0 -86
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-irregular-whitespace/index.mjs +0 -236
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-unknown-animations/index.mjs +0 -71
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-unknown-custom-media/index.mjs +0 -77
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/no-unknown-custom-properties/index.mjs +0 -72
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/number-max-precision/index.mjs +0 -209
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/property-allowed-list/index.mjs +0 -58
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/property-disallowed-list/index.mjs +0 -58
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/property-no-deprecated/index.mjs +0 -143
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/property-no-unknown/index.mjs +0 -126
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/property-no-vendor-prefix/index.mjs +0 -100
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/rule-empty-line-before/index.mjs +0 -156
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/rule-nesting-at-rule-required-list/index.mjs +0 -85
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/rule-selector-property-disallowed-list/index.mjs +0 -119
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-anb-no-unmatchable/index.mjs +0 -121
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-attribute-name-disallowed-list/index.mjs +0 -69
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-attribute-operator-allowed-list/index.mjs +0 -70
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-attribute-operator-disallowed-list/index.mjs +0 -70
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-attribute-quotes/index.mjs +0 -107
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-class-pattern/index.mjs +0 -71
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-combinator-allowed-list/index.mjs +0 -81
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-combinator-disallowed-list/index.mjs +0 -81
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-disallowed-list/index.mjs +0 -115
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-id-pattern/index.mjs +0 -66
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-max-attribute/index.mjs +0 -92
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-max-class/index.mjs +0 -75
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-max-combinators/index.mjs +0 -77
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-max-compound-selectors/index.mjs +0 -123
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-max-id/index.mjs +0 -107
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-max-pseudo-class/index.mjs +0 -85
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-max-specificity/index.mjs +0 -146
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-max-type/index.mjs +0 -219
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-max-universal/index.mjs +0 -95
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-nested-pattern/index.mjs +0 -95
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-no-qualifying-type/index.mjs +0 -323
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-no-vendor-prefix/index.mjs +0 -92
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-not-notation/index.mjs +0 -217
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-pseudo-class-allowed-list/index.mjs +0 -84
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-pseudo-class-disallowed-list/index.mjs +0 -84
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-pseudo-class-no-unknown/index.mjs +0 -179
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-pseudo-element-allowed-list/index.mjs +0 -75
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-pseudo-element-colon-notation/index.mjs +0 -93
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-pseudo-element-disallowed-list/index.mjs +0 -74
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-pseudo-element-no-unknown/index.mjs +0 -91
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-type-case/index.mjs +0 -118
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/selector-type-no-unknown/index.mjs +0 -148
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/shorthand-property-no-redundant-values/index.mjs +0 -359
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/string-no-newline/index.mjs +0 -120
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/syntax-string-no-invalid/index.mjs +0 -80
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/time-min-milliseconds/index.mjs +0 -167
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/unit-allowed-list/index.mjs +0 -116
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/unit-disallowed-list/index.mjs +0 -211
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/unit-no-unknown/index.mjs +0 -207
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/value-keyword-case/index.mjs +0 -253
- package/packages/config-stylelint/node_modules/stylelint/lib/rules/value-no-vendor-prefix/index.mjs +0 -92
- package/packages/config-stylelint/node_modules/stylelint/lib/standalone.mjs +0 -381
- package/packages/config-stylelint/node_modules/stylelint/lib/timing.mjs +0 -134
- package/packages/config-stylelint/node_modules/stylelint/lib/unscopedDisables.mjs +0 -66
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/FileCache.mjs +0 -115
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/addEmptyLineBefore.mjs +0 -21
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/addSemicolonForEditInfo.mjs +0 -35
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/appendRuleName.mjs +0 -13
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/arrayEqual.mjs +0 -14
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/beforeBlockString.mjs +0 -28
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/blockString.mjs +0 -19
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/blurInterpolation.mjs +0 -8
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/cachedImport.mjs +0 -68
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/checkAgainstRule.mjs +0 -71
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/checkInvalidCLIOptions.mjs +0 -105
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/configurationComment.mjs +0 -74
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/containsString.mjs +0 -52
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/createMapWithSet.mjs +0 -19
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/dynamicImport.mjs +0 -13
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/eachDeclarationBlock.mjs +0 -59
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/eachNodeUpToRoot.mjs +0 -22
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/emitWarning.mjs +0 -83
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/errors.mjs +0 -55
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/filterFilePaths.mjs +0 -17
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/findAnimationName.mjs +0 -74
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/findAtRuleContext.mjs +0 -27
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/findFontFamily.mjs +0 -148
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/findMediaFeatureNames.mjs +0 -151
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/findNodeUpToRoot.mjs +0 -25
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/fixEmptyLinesBefore.mjs +0 -26
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/functionArgumentsSearch.mjs +0 -64
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getAtRuleParams.mjs +0 -7
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getDeclarationValue.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getDimension.mjs +0 -62
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getFileIgnorer.mjs +0 -41
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getFormatter.mjs +0 -43
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getFormatterOptionsText.mjs +0 -12
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getImportantPosition.mjs +0 -15
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getLexer.mjs +0 -39
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getModulePath.mjs +0 -35
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getNextNonSharedLineCommentNode.mjs +0 -34
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getPreviousNonSharedLineCommentNode.mjs +0 -36
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getRelativePath.mjs +0 -12
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getRuleSelector.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getSchemeFromUrl.mjs +0 -36
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getSelectorSourceIndex.mjs +0 -12
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getStrippedSelectorSource.mjs +0 -47
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/getStylelintRule.mjs +0 -22
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/hasBlock.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/hasEmptyLine.mjs +0 -13
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/hasInterpolation.mjs +0 -24
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/hasLessInterpolation.mjs +0 -11
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/hasPsvInterpolation.mjs +0 -11
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/hasScssInterpolation.mjs +0 -11
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/hasTplInterpolation.mjs +0 -11
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/hash.mjs +0 -10
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isAfterBlock.mjs +0 -15
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isAfterComment.mjs +0 -15
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isAfterSingleLineComment.mjs +0 -19
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isAfterStandardPropertyDeclaration.mjs +0 -19
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isAutoprefixable.mjs +0 -364
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isBlocklessAtRuleAfterBlocklessAtRule.mjs +0 -21
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isBlocklessAtRuleAfterSameNameBlocklessAtRule.mjs +0 -21
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isContextFunctionalPseudoClass.mjs +0 -24
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isCounterIncrementCustomIdentValue.mjs +0 -19
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isCounterResetCustomIdentValue.mjs +0 -19
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isCustomElement.mjs +0 -34
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isCustomFunction.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isCustomMediaQuery.mjs +0 -8
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isCustomProperty.mjs +0 -8
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isCustomSelector.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isDescriptorDeclaration.mjs +0 -22
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isFirstNested.mjs +0 -83
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isFirstNodeOfRoot.mjs +0 -17
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isHexColor.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isInDocument.mjs +0 -32
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isKeyframeRule.mjs +0 -17
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isKeyframeSelector.mjs +0 -29
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isMathFunction.mjs +0 -11
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isNonNegativeInteger.mjs +0 -6
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isNumbery.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isOnlyWhitespace.mjs +0 -17
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isPathNotFoundError.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isScssVariable.mjs +0 -19
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isSharedLineComment.mjs +0 -53
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isSingleLineString.mjs +0 -10
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxAtRule.mjs +0 -32
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxColorFunction.mjs +0 -24
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.mjs +0 -32
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxComment.mjs +0 -13
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxDeclaration.mjs +0 -57
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxFunction.mjs +0 -28
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxHexColor.mjs +0 -14
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxKeyframesName.mjs +0 -15
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxProperty.mjs +0 -32
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxRule.mjs +0 -24
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxSelector.mjs +0 -56
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxTypeSelector.mjs +0 -56
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxUrl.mjs +0 -49
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isStandardSyntaxValue.mjs +0 -51
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isUnicodeRangeDescriptor.mjs +0 -24
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isUnicodeSupported.mjs +0 -26
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isUrlFunction.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isValidFontSize.mjs +0 -38
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isValidHex.mjs +0 -11
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isValidIdentifier.mjs +0 -39
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isVarFunction.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isVariable.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/isWhitespace.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/matchesStringOrRegExp.mjs +0 -97
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/mergeSyntaxDefinitions.mjs +0 -137
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/narrowFixRange.mjs +0 -68
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/nodeContextLookup.mjs +0 -41
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/nodeFieldIndices.mjs +0 -119
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/normalizeFilePath.mjs +0 -26
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/normalizeFixMode.mjs +0 -22
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/normalizeSelector.mjs +0 -166
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/optionsMatches.mjs +0 -20
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/parseCustomMediaQuery.mjs +0 -15
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/parseMediaQuery.mjs +0 -15
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/parseSelector.mjs +0 -19
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/pathExists.mjs +0 -16
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/pluralize.mjs +0 -10
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/putIfAbsent.mjs +0 -20
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/rangesOverlap.mjs +0 -19
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/rawNodeString.mjs +0 -29
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/regexes.mjs +0 -135
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/removeEmptyLinesBefore.mjs +0 -13
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/report.mjs +0 -321
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/reportCommentProblem.mjs +0 -39
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/resolveFilePath.mjs +0 -38
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/resolveNestedSelectorsForRule.mjs +0 -108
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/resolveOptionValue.mjs +0 -30
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/resolveSilent.mjs +0 -144
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/ruleMessages.mjs +0 -18
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/setAtRuleParams.mjs +0 -18
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/setDeclarationValue.mjs +0 -18
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/suppressionsService.mjs +0 -317
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/toPath.mjs +0 -23
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/typeGuards.mjs +0 -90
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/uniteSets.mjs +0 -9
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/validateObjectWithArrayProps.mjs +0 -29
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/validateObjectWithProps.mjs +0 -28
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/validateOptions.mjs +0 -176
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/validateTypes.mjs +0 -148
- package/packages/config-stylelint/node_modules/stylelint/lib/utils/vendor.mjs +0 -43
- package/packages/config-stylelint/node_modules/stylelint/lib/validateDisableSettings.mjs +0 -67
- package/packages/config-stylelint/node_modules/stylelint/lib/writeOutputFile.mjs +0 -15
- package/packages/config-stylelint/node_modules/stylelint/package.json +0 -212
- package/packages/config-stylelint/node_modules/stylelint/types/stylelint/index.d.ts +0 -1590
- package/packages/config-stylelint/node_modules/unicorn-magic/default.d.ts +0 -13
- package/packages/config-stylelint/node_modules/unicorn-magic/default.js +0 -14
- package/packages/config-stylelint/node_modules/unicorn-magic/license +0 -9
- package/packages/config-stylelint/node_modules/unicorn-magic/node.d.ts +0 -125
- package/packages/config-stylelint/node_modules/unicorn-magic/node.js +0 -49
- package/packages/config-stylelint/node_modules/unicorn-magic/package.json +0 -68
- package/packages/config-stylelint/node_modules/unicorn-magic/readme.md +0 -31
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
# meow
|
|
2
|
-
|
|
3
|
-
> CLI app helper
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
*I would recommend reading this [guide](https://clig.dev) on how to make user-friendly command-line tools.*
|
|
8
|
-
|
|
9
|
-
## Features
|
|
10
|
-
|
|
11
|
-
- Parses arguments
|
|
12
|
-
- Converts flags to [camelCase](https://github.com/sindresorhus/camelcase)
|
|
13
|
-
- Negates flags when using the `--no-` prefix
|
|
14
|
-
- Outputs version when `--version`
|
|
15
|
-
- Outputs description and supplied help text when `--help`
|
|
16
|
-
- Sets the process title to the binary name defined in package.json
|
|
17
|
-
- No dependencies!
|
|
18
|
-
|
|
19
|
-
## Install
|
|
20
|
-
|
|
21
|
-
```sh
|
|
22
|
-
npm install meow
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Usage
|
|
26
|
-
|
|
27
|
-
```sh
|
|
28
|
-
./foo-app.js unicorns --rainbow
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
```js
|
|
32
|
-
#!/usr/bin/env node
|
|
33
|
-
import meow from 'meow';
|
|
34
|
-
import foo from './lib/index.js';
|
|
35
|
-
|
|
36
|
-
const cli = meow(`
|
|
37
|
-
Usage
|
|
38
|
-
$ foo <input>
|
|
39
|
-
|
|
40
|
-
Options
|
|
41
|
-
--rainbow, -r Include a rainbow
|
|
42
|
-
|
|
43
|
-
Examples
|
|
44
|
-
$ foo unicorns --rainbow
|
|
45
|
-
🌈 unicorns 🌈
|
|
46
|
-
`, {
|
|
47
|
-
importMeta: import.meta, // This is required
|
|
48
|
-
flags: {
|
|
49
|
-
rainbow: {
|
|
50
|
-
type: 'boolean',
|
|
51
|
-
shortFlag: 'r'
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
/*
|
|
56
|
-
{
|
|
57
|
-
input: ['unicorns'],
|
|
58
|
-
flags: {rainbow: true},
|
|
59
|
-
...
|
|
60
|
-
}
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
foo(cli.input.at(0), cli.flags);
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## API
|
|
67
|
-
|
|
68
|
-
### meow(helpText, options)
|
|
69
|
-
### meow(options)
|
|
70
|
-
|
|
71
|
-
Returns an `object` with:
|
|
72
|
-
|
|
73
|
-
- `input` *(Array)* - Non-flag arguments
|
|
74
|
-
- `command` *(string | undefined)* - The selected command when using `commands`
|
|
75
|
-
- `flags` *(Object)* - Flags converted to camelCase excluding aliases
|
|
76
|
-
- `unnormalizedFlags` *(Object)* - Flags converted to camelCase including aliases
|
|
77
|
-
- `pkg` *(Object)* - The `package.json` object
|
|
78
|
-
- `help` *(string)* - The help text used with `--help`
|
|
79
|
-
- `showHelp([exitCode=2])` *(Function)* - Show the help text and exit with `exitCode`
|
|
80
|
-
- `showVersion()` *(Function)* - Show the version text and exit
|
|
81
|
-
|
|
82
|
-
#### helpText
|
|
83
|
-
|
|
84
|
-
Type: `string`
|
|
85
|
-
|
|
86
|
-
Shortcut for the `help` option.
|
|
87
|
-
|
|
88
|
-
#### options
|
|
89
|
-
|
|
90
|
-
Type: `object`
|
|
91
|
-
|
|
92
|
-
##### importMeta
|
|
93
|
-
|
|
94
|
-
**Required**\
|
|
95
|
-
Type: `object`
|
|
96
|
-
|
|
97
|
-
Pass in [`import.meta`](https://nodejs.org/dist/latest/docs/api/esm.html#esm_import_meta). This is used to find the correct package.json file.
|
|
98
|
-
|
|
99
|
-
##### input
|
|
100
|
-
|
|
101
|
-
Type: `object | string`
|
|
102
|
-
|
|
103
|
-
Options for non-flag input arguments.
|
|
104
|
-
|
|
105
|
-
The value is an object with any of:
|
|
106
|
-
|
|
107
|
-
- `type`: Type of value. (Possible values: `string` `boolean` `number` `array` `string-array` `boolean-array` `number-array`)
|
|
108
|
-
- `isRequired`: Determine if at least one non-flag input argument is required. (Default: false)
|
|
109
|
-
- If it's only known at runtime whether the input is required or not, you can pass a `Function` instead of a `boolean`, which based on the given input should decide if the input is required.
|
|
110
|
-
- The first argument is the **input** string array, which contains the non-flag arguments.
|
|
111
|
-
- The function should return a `boolean`, true if the input is required, otherwise false.
|
|
112
|
-
|
|
113
|
-
Example:
|
|
114
|
-
|
|
115
|
-
```js
|
|
116
|
-
input: 'number'
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Example:
|
|
120
|
-
|
|
121
|
-
```js
|
|
122
|
-
input: {
|
|
123
|
-
isRequired: true
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
##### commands
|
|
128
|
-
|
|
129
|
-
Type: `string[]`
|
|
130
|
-
|
|
131
|
-
List of valid commands. Commands must be a single argument without whitespace and must not start with `-`.
|
|
132
|
-
|
|
133
|
-
When set, parsing stops at the first non-flag argument and treats it as the command. The remaining arguments are returned in `input` so they can be passed to a subcommand parser. An unknown command will show help and exit with code 2. Parent flags must appear before the command.
|
|
134
|
-
|
|
135
|
-
If no command is given, `cli.command` is `undefined` and meow does not exit — you decide what to do:
|
|
136
|
-
|
|
137
|
-
```js
|
|
138
|
-
if (!cli.command) {
|
|
139
|
-
cli.showHelp(); // or showHelp(0), or a custom message, or a default command
|
|
140
|
-
}
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
Example:
|
|
144
|
-
|
|
145
|
-
```js
|
|
146
|
-
import meow from 'meow';
|
|
147
|
-
|
|
148
|
-
const cli = meow({
|
|
149
|
-
importMeta: import.meta,
|
|
150
|
-
commands: ['run', 'list'],
|
|
151
|
-
flags: {
|
|
152
|
-
verbose: {
|
|
153
|
-
type: 'boolean',
|
|
154
|
-
shortFlag: 'v'
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
if (!cli.command) {
|
|
160
|
-
cli.showHelp(0);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
if (cli.command === 'run') {
|
|
164
|
-
const runCli = meow({importMeta: import.meta, argv: cli.input});
|
|
165
|
-
}
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
##### flags
|
|
169
|
-
|
|
170
|
-
Type: `object`
|
|
171
|
-
|
|
172
|
-
Define argument flags.
|
|
173
|
-
|
|
174
|
-
The key is the flag name in camel-case and the value is an object with any of:
|
|
175
|
-
|
|
176
|
-
- `type`: Type of value. (Possible values: `string` `boolean` `number`)
|
|
177
|
-
- `choices`: Limit valid values to a predefined set of choices.
|
|
178
|
-
- `default`: Default value when the flag is not specified.
|
|
179
|
-
- `shortFlag`: A short flag alias.
|
|
180
|
-
- `aliases`: Other names for the flag.
|
|
181
|
-
- `isMultiple`: Indicates a flag can be set multiple times. Values are turned into an array. (Default: false)
|
|
182
|
-
- Multiple values are provided by specifying the flag multiple times, for example, `$ foo -u rainbow -u cat`. Space- or comma-separated values are [currently *not* supported](https://github.com/sindresorhus/meow/issues/164).
|
|
183
|
-
- `isRequired`: Determine if the flag is required. (Default: false)
|
|
184
|
-
- If it's only known at runtime whether the flag is required or not, you can pass a `Function` instead of a `boolean`, which based on the given flags and other non-flag arguments, should decide if the flag is required. Two arguments are passed to the function:
|
|
185
|
-
- The first argument is the **flags** object, which contains the flags converted to camel-case excluding aliases.
|
|
186
|
-
- The second argument is the **input** string array, which contains the non-flag arguments.
|
|
187
|
-
- The function should return a `boolean`, true if the flag is required, otherwise false.
|
|
188
|
-
|
|
189
|
-
Note that flags are always defined using a camel-case key (`myKey`), but will match arguments in kebab-case (`--my-key`).
|
|
190
|
-
|
|
191
|
-
Example:
|
|
192
|
-
|
|
193
|
-
```js
|
|
194
|
-
flags: {
|
|
195
|
-
unicorn: {
|
|
196
|
-
type: 'string',
|
|
197
|
-
choices: ['rainbow', 'cat', 'unicorn'],
|
|
198
|
-
default: ['rainbow', 'cat'],
|
|
199
|
-
shortFlag: 'u',
|
|
200
|
-
aliases: ['unicorns'],
|
|
201
|
-
isMultiple: true,
|
|
202
|
-
isRequired: (flags, input) => {
|
|
203
|
-
if (flags.otherFlag) {
|
|
204
|
-
return true;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
return false;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
##### description
|
|
214
|
-
|
|
215
|
-
Type: `string | false`\
|
|
216
|
-
Default: The package.json `"description"` property
|
|
217
|
-
|
|
218
|
-
Description to show above the help text.
|
|
219
|
-
|
|
220
|
-
Set it to `false` to disable it altogether.
|
|
221
|
-
|
|
222
|
-
##### help
|
|
223
|
-
|
|
224
|
-
Type: `string | false`
|
|
225
|
-
|
|
226
|
-
The help text you want shown.
|
|
227
|
-
|
|
228
|
-
The input is reindented and starting/ending newlines are trimmed which means you can use a [template literal](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/template_strings) without having to care about using the correct amount of indent.
|
|
229
|
-
|
|
230
|
-
The description will be shown above your help text automatically.
|
|
231
|
-
|
|
232
|
-
Set it to `false` to disable it altogether.
|
|
233
|
-
|
|
234
|
-
##### version
|
|
235
|
-
|
|
236
|
-
Type: `string`\
|
|
237
|
-
Default: The package.json `"version"` property
|
|
238
|
-
|
|
239
|
-
Set a custom version output.
|
|
240
|
-
|
|
241
|
-
##### autoHelp
|
|
242
|
-
|
|
243
|
-
Type: `boolean`\
|
|
244
|
-
Default: `true`
|
|
245
|
-
|
|
246
|
-
Automatically show the help text when the `--help` flag is present. Useful to set this value to `false` when a CLI manages child CLIs with their own help text.
|
|
247
|
-
|
|
248
|
-
This is only triggered when `--help` is the only argument.
|
|
249
|
-
|
|
250
|
-
##### autoVersion
|
|
251
|
-
|
|
252
|
-
Type: `boolean`\
|
|
253
|
-
Default: `true`
|
|
254
|
-
|
|
255
|
-
Automatically show the version text when the `--version` flag is present. Useful to set this value to `false` when a CLI manages child CLIs with their own version text.
|
|
256
|
-
|
|
257
|
-
This is only triggered when `--version` is the only argument.
|
|
258
|
-
|
|
259
|
-
##### pkg
|
|
260
|
-
|
|
261
|
-
Type: `object`\
|
|
262
|
-
Default: Closest package.json upwards
|
|
263
|
-
|
|
264
|
-
package.json as an `object`.
|
|
265
|
-
|
|
266
|
-
Note: Setting this stops `meow` from finding a package.json.
|
|
267
|
-
|
|
268
|
-
*You most likely don't need this option.*
|
|
269
|
-
|
|
270
|
-
##### argv
|
|
271
|
-
|
|
272
|
-
Type: `string[]`\
|
|
273
|
-
Default: `process.argv.slice(2)`
|
|
274
|
-
|
|
275
|
-
Custom arguments object.
|
|
276
|
-
|
|
277
|
-
##### inferType
|
|
278
|
-
|
|
279
|
-
Type: `boolean`\
|
|
280
|
-
Default: `false`
|
|
281
|
-
|
|
282
|
-
Infer the argument type.
|
|
283
|
-
|
|
284
|
-
By default, the argument `5` in `$ foo 5` becomes a string. Enabling this would infer it as a number.
|
|
285
|
-
|
|
286
|
-
Also applies to flags without explicit types. By default, `--count 42` remains as the string `'42'`. With `inferType: true`, it becomes the number `42`.
|
|
287
|
-
|
|
288
|
-
##### booleanDefault
|
|
289
|
-
|
|
290
|
-
Type: `boolean | undefined`\
|
|
291
|
-
Default: `false`
|
|
292
|
-
|
|
293
|
-
Value of `boolean` flags not defined in `argv`.
|
|
294
|
-
|
|
295
|
-
If set to `undefined`, the flags not defined in `argv` will be excluded from the result.
|
|
296
|
-
The `default` value set in `boolean` flags take precedence over `booleanDefault`.
|
|
297
|
-
|
|
298
|
-
_Note: If used in conjunction with `isMultiple`, the default flag value is set to `[]`._
|
|
299
|
-
|
|
300
|
-
__Caution: Explicitly specifying `undefined` for `booleanDefault` has different meaning from omitting key itself.__
|
|
301
|
-
|
|
302
|
-
Example:
|
|
303
|
-
|
|
304
|
-
```js
|
|
305
|
-
import meow from 'meow';
|
|
306
|
-
|
|
307
|
-
const cli = meow(`
|
|
308
|
-
Usage
|
|
309
|
-
$ foo
|
|
310
|
-
|
|
311
|
-
Options
|
|
312
|
-
--rainbow, -r Include a rainbow
|
|
313
|
-
--unicorn, -u Include a unicorn
|
|
314
|
-
--no-sparkles Exclude sparkles
|
|
315
|
-
|
|
316
|
-
Examples
|
|
317
|
-
$ foo
|
|
318
|
-
🌈 unicorns✨🌈
|
|
319
|
-
`, {
|
|
320
|
-
importMeta: import.meta,
|
|
321
|
-
booleanDefault: undefined,
|
|
322
|
-
flags: {
|
|
323
|
-
rainbow: {
|
|
324
|
-
type: 'boolean',
|
|
325
|
-
default: true,
|
|
326
|
-
shortFlag: 'r'
|
|
327
|
-
},
|
|
328
|
-
unicorn: {
|
|
329
|
-
type: 'boolean',
|
|
330
|
-
default: false,
|
|
331
|
-
shortFlag: 'u'
|
|
332
|
-
},
|
|
333
|
-
cake: {
|
|
334
|
-
type: 'boolean',
|
|
335
|
-
shortFlag: 'c'
|
|
336
|
-
},
|
|
337
|
-
sparkles: {
|
|
338
|
-
type: 'boolean',
|
|
339
|
-
default: true
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
});
|
|
343
|
-
/*
|
|
344
|
-
{
|
|
345
|
-
flags: {
|
|
346
|
-
rainbow: true,
|
|
347
|
-
unicorn: false,
|
|
348
|
-
sparkles: true
|
|
349
|
-
},
|
|
350
|
-
unnormalizedFlags: {
|
|
351
|
-
rainbow: true,
|
|
352
|
-
r: true,
|
|
353
|
-
unicorn: false,
|
|
354
|
-
u: false,
|
|
355
|
-
sparkles: true
|
|
356
|
-
},
|
|
357
|
-
…
|
|
358
|
-
}
|
|
359
|
-
*/
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
##### allowUnknownFlags
|
|
363
|
-
|
|
364
|
-
Type: `boolean`\
|
|
365
|
-
Default: `true`
|
|
366
|
-
|
|
367
|
-
Whether to allow unknown flags or not.
|
|
368
|
-
|
|
369
|
-
> [!NOTE]
|
|
370
|
-
> Flags declared in camelCase accept both `--camelCase` and `--camel-case` (including when `allowUnknownFlags` is `false`).
|
|
371
|
-
|
|
372
|
-
##### helpIndent
|
|
373
|
-
|
|
374
|
-
Type: `number`\
|
|
375
|
-
Default: `2`
|
|
376
|
-
|
|
377
|
-
The number of spaces to use for indenting the help text.
|
|
378
|
-
|
|
379
|
-
## Tips
|
|
380
|
-
|
|
381
|
-
See [`chalk`](https://github.com/chalk/chalk) if you want to colorize the terminal output.
|
|
382
|
-
|
|
383
|
-
See [`get-stdin`](https://github.com/sindresorhus/get-stdin) if you want to accept input from stdin.
|
|
384
|
-
|
|
385
|
-
See [`conf`](https://github.com/sindresorhus/conf) if you need to persist some data.
|
|
386
|
-
|
|
387
|
-
[More useful CLI utilities…](https://github.com/sindresorhus/awesome-nodejs#command-line-utilities)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright 2013 Andrey Sitnik <andrey@sitnik.ru>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# PostCSS Safe Parser
|
|
2
|
-
|
|
3
|
-
<img align="right" width="135" height="95"
|
|
4
|
-
title="Philosopher’s stone, logo of PostCSS"
|
|
5
|
-
src="https://postcss.org/logo-leftp.svg">
|
|
6
|
-
|
|
7
|
-
A fault-tolerant CSS parser for [PostCSS], which will find & fix syntax errors,
|
|
8
|
-
capable of parsing any input. It is useful for:
|
|
9
|
-
|
|
10
|
-
* Parse legacy code with many hacks. For example, it can parse all examples
|
|
11
|
-
from [Browserhacks].
|
|
12
|
-
* Works with demo tools with live input like [Autoprefixer demo].
|
|
13
|
-
|
|
14
|
-
[Autoprefixer demo]: http://simevidas.jsbin.com/gufoko/quiet
|
|
15
|
-
[Browserhacks]: http://browserhacks.com/
|
|
16
|
-
[PostCSS]: https://github.com/postcss/postcss
|
|
17
|
-
|
|
18
|
-
<a href="https://evilmartians.com/?utm_source=postcss">
|
|
19
|
-
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
|
|
20
|
-
alt="Sponsored by Evil Martians" width="236" height="54">
|
|
21
|
-
</a>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## Docs
|
|
25
|
-
Read full docs **[here](https://github.com/postcss/postcss-safe-parser#readme)**.
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
let Comment = require('postcss/lib/comment')
|
|
2
|
-
let Parser = require('postcss/lib/parser')
|
|
3
|
-
let tokenizer = require('postcss/lib/tokenize')
|
|
4
|
-
|
|
5
|
-
class SafeParser extends Parser {
|
|
6
|
-
checkMissedSemicolon() {}
|
|
7
|
-
|
|
8
|
-
comment(token) {
|
|
9
|
-
let node = new Comment()
|
|
10
|
-
this.init(node, token[2])
|
|
11
|
-
let pos =
|
|
12
|
-
this.input.fromOffset(token[3]) ||
|
|
13
|
-
this.input.fromOffset(this.input.css.length - 1)
|
|
14
|
-
node.source.end = {
|
|
15
|
-
column: pos.col,
|
|
16
|
-
line: pos.line,
|
|
17
|
-
offset: token[3] + 1
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
let text = token[1].slice(2)
|
|
21
|
-
if (text.slice(-2) === '*/') text = text.slice(0, -2)
|
|
22
|
-
|
|
23
|
-
if (/^\s*$/.test(text)) {
|
|
24
|
-
node.text = ''
|
|
25
|
-
node.raws.left = text
|
|
26
|
-
node.raws.right = ''
|
|
27
|
-
} else {
|
|
28
|
-
let match = text.match(/^(\s*)([^]*\S)(\s*)$/)
|
|
29
|
-
node.text = match[2]
|
|
30
|
-
node.raws.left = match[1]
|
|
31
|
-
node.raws.right = match[3]
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
createTokenizer() {
|
|
36
|
-
this.tokenizer = tokenizer(this.input, { ignoreErrors: true })
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
decl(tokens) {
|
|
40
|
-
if (tokens.length > 1 && tokens.some(i => i[0] === 'word')) {
|
|
41
|
-
super.decl(tokens)
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
doubleColon() {}
|
|
46
|
-
|
|
47
|
-
endFile() {
|
|
48
|
-
if (this.current.nodes && this.current.nodes.length) {
|
|
49
|
-
this.current.raws.semicolon = this.semicolon
|
|
50
|
-
}
|
|
51
|
-
this.current.raws.after = (this.current.raws.after || '') + this.spaces
|
|
52
|
-
|
|
53
|
-
while (this.current.parent) {
|
|
54
|
-
this.current = this.current.parent
|
|
55
|
-
this.current.raws.after = ''
|
|
56
|
-
}
|
|
57
|
-
this.root.source.end = this.getPosition(this.tokenizer.position())
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
precheckMissedSemicolon(tokens) {
|
|
61
|
-
let colon = this.colon(tokens)
|
|
62
|
-
if (colon === false) return
|
|
63
|
-
|
|
64
|
-
let nextStart, prevEnd
|
|
65
|
-
for (nextStart = colon - 1; nextStart >= 0; nextStart--) {
|
|
66
|
-
if (tokens[nextStart][0] === 'word') break
|
|
67
|
-
}
|
|
68
|
-
if (nextStart === 0 || nextStart < 0) return
|
|
69
|
-
|
|
70
|
-
for (prevEnd = nextStart - 1; prevEnd >= 0; prevEnd--) {
|
|
71
|
-
if (tokens[prevEnd][0] !== 'space') {
|
|
72
|
-
prevEnd += 1
|
|
73
|
-
break
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
let other = tokens.slice(nextStart)
|
|
78
|
-
let spaces = tokens.slice(prevEnd, nextStart)
|
|
79
|
-
tokens.splice(prevEnd, tokens.length - prevEnd)
|
|
80
|
-
this.spaces = spaces.map(i => i[1]).join('')
|
|
81
|
-
|
|
82
|
-
this.decl(other)
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
unclosedBracket() {}
|
|
86
|
-
|
|
87
|
-
unexpectedClose() {
|
|
88
|
-
this.current.raws.after += '}'
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
unknownWord(tokens) {
|
|
92
|
-
this.spaces += tokens.map(i => i[1]).join('')
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
unnamedAtrule(node) {
|
|
96
|
-
node.name = ''
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
module.exports = SafeParser
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postcss-safe-parser",
|
|
3
|
-
"version": "7.0.1",
|
|
4
|
-
"description": "Fault-tolerant CSS parser for PostCSS",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"css",
|
|
7
|
-
"postcss",
|
|
8
|
-
"postcss-syntax",
|
|
9
|
-
"parser",
|
|
10
|
-
"fault tolerant"
|
|
11
|
-
],
|
|
12
|
-
"author": "Andrey Sitnik <andrey@sitnik.ru>",
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"repository": "postcss/postcss-safe-parser",
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=18.0"
|
|
17
|
-
},
|
|
18
|
-
"main": "lib/safe-parse",
|
|
19
|
-
"funding": [
|
|
20
|
-
{
|
|
21
|
-
"type": "opencollective",
|
|
22
|
-
"url": "https://opencollective.com/postcss/"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "tidelift",
|
|
26
|
-
"url": "https://tidelift.com/funding/github/npm/postcss-safe-parser"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "github",
|
|
30
|
-
"url": "https://github.com/sponsors/ai"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"postcss": "^8.4.31"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`.
|
|
3
|
-
|
|
4
|
-
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths.
|
|
5
|
-
|
|
6
|
-
@param path - A Windows backslash path.
|
|
7
|
-
@returns A path with forward slashes.
|
|
8
|
-
|
|
9
|
-
@example
|
|
10
|
-
```
|
|
11
|
-
import path from 'node:path';
|
|
12
|
-
import slash from 'slash';
|
|
13
|
-
|
|
14
|
-
const string = path.join('foo', 'bar');
|
|
15
|
-
// Unix => foo/bar
|
|
16
|
-
// Windows => foo\\bar
|
|
17
|
-
|
|
18
|
-
slash(string);
|
|
19
|
-
// Unix => foo/bar
|
|
20
|
-
// Windows => foo/bar
|
|
21
|
-
```
|
|
22
|
-
*/
|
|
23
|
-
export default function slash(path: string): string;
|
|
@@ -1,9 +0,0 @@
|
|
|
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.
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "slash",
|
|
3
|
-
"version": "5.1.0",
|
|
4
|
-
"description": "Convert Windows backslash paths to slash paths",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/slash",
|
|
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
|
-
"types": "./index.d.ts",
|
|
16
|
-
"engines": {
|
|
17
|
-
"node": ">=14.16"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"test": "xo && ava && tsd"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"index.js",
|
|
24
|
-
"index.d.ts"
|
|
25
|
-
],
|
|
26
|
-
"keywords": [
|
|
27
|
-
"path",
|
|
28
|
-
"seperator",
|
|
29
|
-
"slash",
|
|
30
|
-
"backslash",
|
|
31
|
-
"windows",
|
|
32
|
-
"convert"
|
|
33
|
-
],
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"ava": "^5.2.0",
|
|
36
|
-
"tsd": "^0.28.1",
|
|
37
|
-
"xo": "^0.54.2"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# slash
|
|
2
|
-
|
|
3
|
-
> Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`
|
|
4
|
-
|
|
5
|
-
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths.
|
|
6
|
-
|
|
7
|
-
This was created since the `path` methods in Node.js outputs `\\` paths on Windows.
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
npm install slash
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import path from 'node:path';
|
|
19
|
-
import slash from 'slash';
|
|
20
|
-
|
|
21
|
-
const string = path.join('foo', 'bar');
|
|
22
|
-
// Unix => foo/bar
|
|
23
|
-
// Windows => foo\\bar
|
|
24
|
-
|
|
25
|
-
slash(string);
|
|
26
|
-
// Unix => foo/bar
|
|
27
|
-
// Windows => foo/bar
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## API
|
|
31
|
-
|
|
32
|
-
### slash(path)
|
|
33
|
-
|
|
34
|
-
Type: `string`
|
|
35
|
-
|
|
36
|
-
Accepts a Windows backslash path and returns a path with forward slashes.
|