@rushstack/node-core-library
Advanced tools
+8
-1
| # Change Log - @rushstack/node-core-library | ||
| This log was last generated on Tue, 31 Mar 2026 15:14:14 GMT and should not be manually modified. | ||
| This log was last generated on Thu, 09 Apr 2026 00:15:07 GMT and should not be manually modified. | ||
| ## 5.22.0 | ||
| Thu, 09 Apr 2026 00:15:07 GMT | ||
| ### Minor changes | ||
| - Add `FileSystem.createReadStream`, `FileSystem.createWriteStream`, and `FileSystem.createWriteStreamAsync` APIs for creating read and write filesystem streams. | ||
| ## 5.21.0 | ||
@@ -6,0 +13,0 @@ Tue, 31 Mar 2026 15:14:14 GMT |
@@ -470,6 +470,7 @@ "use strict"; | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless ensureFolder=true. | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The absolute or relative path of the file. | ||
| * @param contents - The text that should be written to the file. | ||
| * @param options - Optional settings that can change the behavior. Type: `IWriteFileOptions` | ||
| * @param options - Optional settings that can change the behavior. | ||
| */ | ||
@@ -511,3 +512,4 @@ static writeFile(filePath, contents, options) { | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless ensureFolder=true. | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The absolute or relative path of the file. | ||
@@ -644,6 +646,7 @@ * @param contents - The content that should be written to the file. | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless ensureFolder=true. | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The absolute or relative path of the file. | ||
| * @param contents - The text that should be written to the file. | ||
| * @param options - Optional settings that can change the behavior. Type: `IWriteFileOptions` | ||
| * @param options - Optional settings that can change the behavior. | ||
| */ | ||
@@ -887,2 +890,46 @@ static appendToFile(filePath, contents, options) { | ||
| } | ||
| /** | ||
| * Creates a readable stream for an existing file. | ||
| * Behind the scenes it uses `fs.createReadStream()`. | ||
| * | ||
| * @param filePath - The path to the file. The path may be absolute or relative. | ||
| * @returns A new readable stream for the file. | ||
| */ | ||
| static createReadStream(filePath) { | ||
| return FileSystem._wrapException(() => { | ||
| return fs.createReadStream(filePath); | ||
| }); | ||
| } | ||
| /** | ||
| * Creates a writable stream for writing to a file. | ||
| * Behind the scenes it uses `fs.createWriteStream()`. | ||
| * | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The path to the file. The path may be absolute or relative. | ||
| * @param options - Optional settings that can change the behavior. | ||
| * @returns A new writable stream for the file. | ||
| */ | ||
| static createWriteStream(filePath, options) { | ||
| return FileSystem._wrapException(() => { | ||
| if (options === null || options === void 0 ? void 0 : options.ensureFolderExists) { | ||
| const folderPath = nodeJsPath.dirname(filePath); | ||
| FileSystem.ensureFolder(folderPath); | ||
| } | ||
| return fs.createWriteStream(filePath); | ||
| }); | ||
| } | ||
| /** | ||
| * An async version of {@link FileSystem.createWriteStream}. | ||
| */ | ||
| static async createWriteStreamAsync(filePath, options) { | ||
| return await FileSystem._wrapExceptionAsync(async () => { | ||
| if (options === null || options === void 0 ? void 0 : options.ensureFolderExists) { | ||
| const folderPath = nodeJsPath.dirname(filePath); | ||
| await FileSystem.ensureFolderAsync(folderPath); | ||
| } | ||
| return fs.createWriteStream(filePath); | ||
| }); | ||
| } | ||
| // =============== | ||
@@ -889,0 +936,0 @@ // LINK OPERATIONS |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAY3D,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAE7B,iCAOiB;AANf,8FAAA,KAAK,OAAA;AACL,mGAAA,UAAU,OAAA;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A;AAAE,4FAAA,IAAI,OAAA;AAAE,mGAAA,WAAW,OAAA;AAEpC,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAEjB,+BAA8B;AAArB,4FAAA,IAAI,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\n/// <reference types=\"node\" preserve=\"true\" />\n\n/**\n * Core libraries that every NodeJS toolchain project should use.\n *\n * @packageDocumentation\n */\n\nexport type { IProblemPattern } from '@rushstack/problem-matcher';\n\nexport { AlreadyReportedError } from './AlreadyReportedError';\n\nexport {\n Async,\n AsyncQueue,\n type IAsyncParallelismOptions,\n type IRunWithRetriesOptions,\n type IRunWithTimeoutOptions,\n type IWeighted\n} from './Async';\n\nexport { FileConstants, FolderConstants } from './Constants';\n\nexport { Disposables } from './Disposables';\n\nexport { Enum } from './Enum';\n\nexport { EnvironmentMap, type IEnvironmentEntry } from './EnvironmentMap';\n\nexport {\n type ExecutableStdioStreamMapping,\n type ExecutableStdioMapping,\n type IExecutableResolveOptions,\n type IExecutableSpawnSyncOptions,\n type IExecutableSpawnOptions,\n type IWaitForExitOptions,\n type IWaitForExitWithBufferOptions,\n type IWaitForExitWithStringOptions,\n type IWaitForExitResult,\n type IWaitForExitResultWithoutOutput,\n type IProcessInfo,\n Executable\n} from './Executable';\n\nexport { type IFileErrorOptions, type IFileErrorFormattingOptions, FileError } from './FileError';\n\nexport {\n AlreadyExistsBehavior,\n FileSystem,\n type FileSystemCopyFilesAsyncFilter,\n type FileSystemCopyFilesFilter,\n type FolderItem,\n type FileSystemStats,\n type IFileSystemCopyFileBaseOptions,\n type IFileSystemCopyFileOptions,\n type IFileSystemCopyFilesAsyncOptions,\n type IFileSystemCopyFilesOptions,\n type IFileSystemCreateLinkOptions,\n type IFileSystemDeleteFileOptions,\n type IFileSystemMoveOptions,\n type IFileSystemReadFileOptions,\n type IFileSystemReadFolderOptions,\n type IFileSystemUpdateTimeParameters,\n type IFileSystemWriteBinaryFileOptions,\n type IFileSystemWriteFileOptions\n} from './FileSystem';\n\nexport { FileWriter, type IFileWriterFlags } from './FileWriter';\n\nexport {\n Import,\n type IImportResolveOptions,\n type IImportResolveAsyncOptions,\n type IImportResolveModuleOptions,\n type IImportResolveModuleAsyncOptions,\n type IImportResolvePackageOptions,\n type IImportResolvePackageAsyncOptions\n} from './Import';\n\nexport { InternalError } from './InternalError';\n\nexport type {\n INodePackageJson,\n IPackageJson,\n IPackageJsonDependencyTable,\n IPackageJsonScriptTable,\n IPackageJsonRepository,\n IPeerDependenciesMetaTable,\n IDependenciesMetaTable,\n IPackageJsonExports\n} from './IPackageJson';\n\nexport {\n type JsonObject,\n type JsonNull,\n JsonSyntax,\n type IJsonFileParseOptions,\n type IJsonFileLoadAndValidateOptions,\n type IJsonFileStringifyOptions,\n type IJsonFileSaveOptions,\n JsonFile\n} from './JsonFile';\n\nexport {\n type IJsonSchemaErrorInfo,\n type IJsonSchemaCustomFormat,\n type IJsonSchemaFromFileOptions,\n type IJsonSchemaFromObjectOptions,\n type IJsonSchemaLoadOptions,\n type IJsonSchemaValidateOptions,\n type IJsonSchemaValidateObjectWithOptions,\n JsonSchema,\n type JsonSchemaVersion\n} from './JsonSchema';\n\nexport { LegacyAdapters, type LegacyCallback } from './LegacyAdapters';\n\nexport { LockFile } from './LockFile';\n\nexport { MapExtensions } from './MapExtensions';\n\nexport { MinimumHeap } from './MinimumHeap';\n\nexport { Objects } from './Objects';\n\nexport { type IPackageJsonLookupParameters, PackageJsonLookup } from './PackageJsonLookup';\n\nexport {\n PackageName,\n PackageNameParser,\n type IPackageNameParserOptions,\n type IParsedPackageName,\n type IParsedPackageNameOrError\n} from './PackageName';\n\nexport {\n Path,\n type FileLocationStyle,\n type IPathFormatFileLocationOptions,\n type IPathFormatConciselyOptions\n} from './Path';\n\nexport { PosixModeBits } from './PosixModeBits';\n\nexport type { Brand } from './PrimitiveTypes';\n\nexport { ProtectableMap, type IProtectableMapParameters } from './ProtectableMap';\n\nexport { RealNodeModulePathResolver, type IRealNodeModulePathResolverOptions } from './RealNodeModulePath';\n\nexport { Sort } from './Sort';\n\nexport { StringBuilder, type IStringBuilder } from './StringBuilder';\n\nexport { type ISubprocessOptions, SubprocessTerminator } from './SubprocessTerminator';\n\nexport { Encoding, Text, NewlineKind, type IReadLinesFromIterableOptions } from './Text';\n\nexport { TypeUuid } from './TypeUuid';\n\nexport { User } from './User';\n"]} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAY3D,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAE7B,iCAOiB;AANf,8FAAA,KAAK,OAAA;AACL,mGAAA,UAAU,OAAA;AAOZ,yCAA6D;AAApD,0GAAA,aAAa,OAAA;AAAE,4GAAA,eAAe,OAAA;AAEvC,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AAEb,mDAA0E;AAAjE,gHAAA,cAAc,OAAA;AAEvB,2CAasB;AADpB,wGAAA,UAAU,OAAA;AAGZ,yCAAkG;AAA/B,sGAAA,SAAS,OAAA;AAE5E,2CAuBsB;AAtBpB,mHAAA,qBAAqB,OAAA;AACrB,wGAAA,UAAU,OAAA;AAuBZ,2CAAiE;AAAxD,wGAAA,UAAU,OAAA;AAEnB,mCAQkB;AAPhB,gGAAA,MAAM,OAAA;AASR,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAatB,uCASoB;AANlB,sGAAA,UAAU,OAAA;AAKV,oGAAA,QAAQ,OAAA;AAGV,2CAUsB;AAFpB,wGAAA,UAAU,OAAA;AAIZ,mDAAuE;AAA9D,gHAAA,cAAc,OAAA;AAEvB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAEjB,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAEtB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAEhB,yDAA2F;AAA/C,sHAAA,iBAAiB,OAAA;AAE7D,6CAMuB;AALrB,0GAAA,WAAW,OAAA;AACX,gHAAA,iBAAiB,OAAA;AAMnB,+BAKgB;AAJd,4FAAA,IAAI,OAAA;AAMN,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAItB,mDAAkF;AAAzE,gHAAA,cAAc,OAAA;AAEvB,2DAA2G;AAAlG,gIAAA,0BAA0B,OAAA;AAEnC,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AAEb,iDAAqE;AAA5D,8GAAA,aAAa,OAAA;AAEtB,+DAAuF;AAArD,4HAAA,oBAAoB,OAAA;AAEtD,+BAAyF;AAAhF,gGAAA,QAAQ,OAAA;AAAE,4FAAA,IAAI,OAAA;AAAE,mGAAA,WAAW,OAAA;AAEpC,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAEjB,+BAA8B;AAArB,4FAAA,IAAI,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\n/// <reference types=\"node\" preserve=\"true\" />\n\n/**\n * Core libraries that every NodeJS toolchain project should use.\n *\n * @packageDocumentation\n */\n\nexport type { IProblemPattern } from '@rushstack/problem-matcher';\n\nexport { AlreadyReportedError } from './AlreadyReportedError';\n\nexport {\n Async,\n AsyncQueue,\n type IAsyncParallelismOptions,\n type IRunWithRetriesOptions,\n type IRunWithTimeoutOptions,\n type IWeighted\n} from './Async';\n\nexport { FileConstants, FolderConstants } from './Constants';\n\nexport { Disposables } from './Disposables';\n\nexport { Enum } from './Enum';\n\nexport { EnvironmentMap, type IEnvironmentEntry } from './EnvironmentMap';\n\nexport {\n type ExecutableStdioStreamMapping,\n type ExecutableStdioMapping,\n type IExecutableResolveOptions,\n type IExecutableSpawnSyncOptions,\n type IExecutableSpawnOptions,\n type IWaitForExitOptions,\n type IWaitForExitWithBufferOptions,\n type IWaitForExitWithStringOptions,\n type IWaitForExitResult,\n type IWaitForExitResultWithoutOutput,\n type IProcessInfo,\n Executable\n} from './Executable';\n\nexport { type IFileErrorOptions, type IFileErrorFormattingOptions, FileError } from './FileError';\n\nexport {\n AlreadyExistsBehavior,\n FileSystem,\n type IFileSystemWriteFileOptionsBase,\n type FileSystemCopyFilesAsyncFilter,\n type FileSystemCopyFilesFilter,\n type FileSystemReadStream,\n type FileSystemWriteStream,\n type FolderItem,\n type FileSystemStats,\n type IFileSystemCopyFileBaseOptions,\n type IFileSystemCopyFileOptions,\n type IFileSystemCopyFilesAsyncOptions,\n type IFileSystemCopyFilesOptions,\n type IFileSystemCreateLinkOptions,\n type IFileSystemCreateWriteStreamOptions,\n type IFileSystemDeleteFileOptions,\n type IFileSystemMoveOptions,\n type IFileSystemReadFileOptions,\n type IFileSystemReadFolderOptions,\n type IFileSystemUpdateTimeParameters,\n type IFileSystemWriteBinaryFileOptions,\n type IFileSystemWriteFileOptions\n} from './FileSystem';\n\nexport { FileWriter, type IFileWriterFlags } from './FileWriter';\n\nexport {\n Import,\n type IImportResolveOptions,\n type IImportResolveAsyncOptions,\n type IImportResolveModuleOptions,\n type IImportResolveModuleAsyncOptions,\n type IImportResolvePackageOptions,\n type IImportResolvePackageAsyncOptions\n} from './Import';\n\nexport { InternalError } from './InternalError';\n\nexport type {\n INodePackageJson,\n IPackageJson,\n IPackageJsonDependencyTable,\n IPackageJsonScriptTable,\n IPackageJsonRepository,\n IPeerDependenciesMetaTable,\n IDependenciesMetaTable,\n IPackageJsonExports\n} from './IPackageJson';\n\nexport {\n type JsonObject,\n type JsonNull,\n JsonSyntax,\n type IJsonFileParseOptions,\n type IJsonFileLoadAndValidateOptions,\n type IJsonFileStringifyOptions,\n type IJsonFileSaveOptions,\n JsonFile\n} from './JsonFile';\n\nexport {\n type IJsonSchemaErrorInfo,\n type IJsonSchemaCustomFormat,\n type IJsonSchemaFromFileOptions,\n type IJsonSchemaFromObjectOptions,\n type IJsonSchemaLoadOptions,\n type IJsonSchemaValidateOptions,\n type IJsonSchemaValidateObjectWithOptions,\n JsonSchema,\n type JsonSchemaVersion\n} from './JsonSchema';\n\nexport { LegacyAdapters, type LegacyCallback } from './LegacyAdapters';\n\nexport { LockFile } from './LockFile';\n\nexport { MapExtensions } from './MapExtensions';\n\nexport { MinimumHeap } from './MinimumHeap';\n\nexport { Objects } from './Objects';\n\nexport { type IPackageJsonLookupParameters, PackageJsonLookup } from './PackageJsonLookup';\n\nexport {\n PackageName,\n PackageNameParser,\n type IPackageNameParserOptions,\n type IParsedPackageName,\n type IParsedPackageNameOrError\n} from './PackageName';\n\nexport {\n Path,\n type FileLocationStyle,\n type IPathFormatFileLocationOptions,\n type IPathFormatConciselyOptions\n} from './Path';\n\nexport { PosixModeBits } from './PosixModeBits';\n\nexport type { Brand } from './PrimitiveTypes';\n\nexport { ProtectableMap, type IProtectableMapParameters } from './ProtectableMap';\n\nexport { RealNodeModulePathResolver, type IRealNodeModulePathResolverOptions } from './RealNodeModulePath';\n\nexport { Sort } from './Sort';\n\nexport { StringBuilder, type IStringBuilder } from './StringBuilder';\n\nexport { type ISubprocessOptions, SubprocessTerminator } from './SubprocessTerminator';\n\nexport { Encoding, Text, NewlineKind, type IReadLinesFromIterableOptions } from './Text';\n\nexport { TypeUuid } from './TypeUuid';\n\nexport { User } from './User';\n"]} |
+62
-13
@@ -21,2 +21,18 @@ import * as fs from 'node:fs'; | ||
| /** | ||
| * An alias for the Node.js `fs.ReadStream` object. | ||
| * | ||
| * @remarks | ||
| * This avoids the need to import the `fs` package when using the {@link FileSystem} API. | ||
| * @public | ||
| */ | ||
| export type FileSystemReadStream = fs.ReadStream; | ||
| /** | ||
| * An alias for the Node.js `fs.WriteStream` object. | ||
| * | ||
| * @remarks | ||
| * This avoids the need to import the `fs` package when using the {@link FileSystem} API. | ||
| * @public | ||
| */ | ||
| export type FileSystemWriteStream = fs.WriteStream; | ||
| /** | ||
| * The options for {@link FileSystem.readFolderItems} and {@link FileSystem.readFolderItemNames}. | ||
@@ -33,6 +49,5 @@ * @public | ||
| /** | ||
| * The options for {@link FileSystem.writeBuffersToFile} | ||
| * @public | ||
| */ | ||
| export interface IFileSystemWriteBinaryFileOptions { | ||
| export interface IFileSystemWriteFileOptionsBase { | ||
| /** | ||
@@ -45,2 +60,8 @@ * If true, will ensure the folder is created before writing the file. | ||
| /** | ||
| * The options for {@link FileSystem.writeBuffersToFile} | ||
| * @public | ||
| */ | ||
| export interface IFileSystemWriteBinaryFileOptions extends IFileSystemWriteFileOptionsBase { | ||
| } | ||
| /** | ||
| * The options for {@link FileSystem.writeFile} | ||
@@ -81,3 +102,3 @@ * @public | ||
| */ | ||
| export interface IFileSystemMoveOptions { | ||
| export interface IFileSystemMoveOptions extends IFileSystemWriteFileOptionsBase { | ||
| /** | ||
@@ -98,7 +119,2 @@ * The path of the existing object to be moved. | ||
| overwrite?: boolean; | ||
| /** | ||
| * If true, will ensure the folder is created before writing the file. | ||
| * @defaultValue false | ||
| */ | ||
| ensureFolderExists?: boolean; | ||
| } | ||
@@ -225,2 +241,8 @@ /** | ||
| /** | ||
| * The options for {@link FileSystem.createWriteStream} | ||
| * @public | ||
| */ | ||
| export interface IFileSystemCreateWriteStreamOptions extends IFileSystemWriteFileOptionsBase { | ||
| } | ||
| /** | ||
| * The options for {@link FileSystem.deleteFile} | ||
@@ -435,6 +457,7 @@ * @public | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless ensureFolder=true. | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The absolute or relative path of the file. | ||
| * @param contents - The text that should be written to the file. | ||
| * @param options - Optional settings that can change the behavior. Type: `IWriteFileOptions` | ||
| * @param options - Optional settings that can change the behavior. | ||
| */ | ||
@@ -450,3 +473,4 @@ static writeFile(filePath: string, contents: string | Buffer, options?: IFileSystemWriteFileOptions): void; | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless ensureFolder=true. | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The absolute or relative path of the file. | ||
@@ -469,6 +493,7 @@ * @param contents - The content that should be written to the file. | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless ensureFolder=true. | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The absolute or relative path of the file. | ||
| * @param contents - The text that should be written to the file. | ||
| * @param options - Optional settings that can change the behavior. Type: `IWriteFileOptions` | ||
| * @param options - Optional settings that can change the behavior. | ||
| */ | ||
@@ -543,2 +568,26 @@ static appendToFile(filePath: string, contents: string | Buffer, options?: IFileSystemWriteFileOptions): void; | ||
| /** | ||
| * Creates a readable stream for an existing file. | ||
| * Behind the scenes it uses `fs.createReadStream()`. | ||
| * | ||
| * @param filePath - The path to the file. The path may be absolute or relative. | ||
| * @returns A new readable stream for the file. | ||
| */ | ||
| static createReadStream(filePath: string): FileSystemReadStream; | ||
| /** | ||
| * Creates a writable stream for writing to a file. | ||
| * Behind the scenes it uses `fs.createWriteStream()`. | ||
| * | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The path to the file. The path may be absolute or relative. | ||
| * @param options - Optional settings that can change the behavior. | ||
| * @returns A new writable stream for the file. | ||
| */ | ||
| static createWriteStream(filePath: string, options?: IFileSystemCreateWriteStreamOptions): FileSystemWriteStream; | ||
| /** | ||
| * An async version of {@link FileSystem.createWriteStream}. | ||
| */ | ||
| static createWriteStreamAsync(filePath: string, options?: IFileSystemCreateWriteStreamOptions): Promise<FileSystemWriteStream>; | ||
| /** | ||
| * Gets the statistics of a filesystem object. Does NOT follow the link to its target. | ||
@@ -545,0 +594,0 @@ * Behind the scenes it uses `fs.lstatSync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AAO,CAAC,MAAM,CAAC,WAAW;mBAmCL,0BAA0B;mBAoB1B,gBAAgB;IAsCrC,OAAO,CAAC,MAAM,CAAC,cAAc;mBASR,mBAAmB;IASxC,OAAO,CAAC,MAAM,CAAC,mBAAmB;CAoBnC"} |
@@ -16,3 +16,3 @@ /// <reference types="node" preserve="true" /> | ||
| export { type IFileErrorOptions, type IFileErrorFormattingOptions, FileError } from './FileError'; | ||
| export { AlreadyExistsBehavior, FileSystem, type FileSystemCopyFilesAsyncFilter, type FileSystemCopyFilesFilter, type FolderItem, type FileSystemStats, type IFileSystemCopyFileBaseOptions, type IFileSystemCopyFileOptions, type IFileSystemCopyFilesAsyncOptions, type IFileSystemCopyFilesOptions, type IFileSystemCreateLinkOptions, type IFileSystemDeleteFileOptions, type IFileSystemMoveOptions, type IFileSystemReadFileOptions, type IFileSystemReadFolderOptions, type IFileSystemUpdateTimeParameters, type IFileSystemWriteBinaryFileOptions, type IFileSystemWriteFileOptions } from './FileSystem'; | ||
| export { AlreadyExistsBehavior, FileSystem, type IFileSystemWriteFileOptionsBase, type FileSystemCopyFilesAsyncFilter, type FileSystemCopyFilesFilter, type FileSystemReadStream, type FileSystemWriteStream, type FolderItem, type FileSystemStats, type IFileSystemCopyFileBaseOptions, type IFileSystemCopyFileOptions, type IFileSystemCopyFilesAsyncOptions, type IFileSystemCopyFilesOptions, type IFileSystemCreateLinkOptions, type IFileSystemCreateWriteStreamOptions, type IFileSystemDeleteFileOptions, type IFileSystemMoveOptions, type IFileSystemReadFileOptions, type IFileSystemReadFolderOptions, type IFileSystemUpdateTimeParameters, type IFileSystemWriteBinaryFileOptions, type IFileSystemWriteFileOptions } from './FileSystem'; | ||
| export { FileWriter, type IFileWriterFlags } from './FileWriter'; | ||
@@ -19,0 +19,0 @@ export { Import, type IImportResolveOptions, type IImportResolveAsyncOptions, type IImportResolveModuleOptions, type IImportResolveModuleAsyncOptions, type IImportResolvePackageOptions, type IImportResolvePackageAsyncOptions } from './Import'; |
@@ -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2BAA2B,EACjC,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,YAAY,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAElF,OAAO,EAAE,0BAA0B,EAAE,KAAK,kCAAkC,EAAE,MAAM,sBAAsB,CAAC;AAE3G,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAAE,KAAK,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEvF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,6BAA6B,EAAE,MAAM,QAAQ,CAAC;AAEzF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"} |
@@ -434,6 +434,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless ensureFolder=true. | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The absolute or relative path of the file. | ||
| * @param contents - The text that should be written to the file. | ||
| * @param options - Optional settings that can change the behavior. Type: `IWriteFileOptions` | ||
| * @param options - Optional settings that can change the behavior. | ||
| */ | ||
@@ -475,3 +476,4 @@ static writeFile(filePath, contents, options) { | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless ensureFolder=true. | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The absolute or relative path of the file. | ||
@@ -608,6 +610,7 @@ * @param contents - The content that should be written to the file. | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless ensureFolder=true. | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The absolute or relative path of the file. | ||
| * @param contents - The text that should be written to the file. | ||
| * @param options - Optional settings that can change the behavior. Type: `IWriteFileOptions` | ||
| * @param options - Optional settings that can change the behavior. | ||
| */ | ||
@@ -851,2 +854,46 @@ static appendToFile(filePath, contents, options) { | ||
| } | ||
| /** | ||
| * Creates a readable stream for an existing file. | ||
| * Behind the scenes it uses `fs.createReadStream()`. | ||
| * | ||
| * @param filePath - The path to the file. The path may be absolute or relative. | ||
| * @returns A new readable stream for the file. | ||
| */ | ||
| static createReadStream(filePath) { | ||
| return FileSystem._wrapException(() => { | ||
| return fs.createReadStream(filePath); | ||
| }); | ||
| } | ||
| /** | ||
| * Creates a writable stream for writing to a file. | ||
| * Behind the scenes it uses `fs.createWriteStream()`. | ||
| * | ||
| * @remarks | ||
| * Throws an error if the folder doesn't exist, unless {@link IFileSystemWriteFileOptionsBase.ensureFolderExists} | ||
| * is set to `true`. | ||
| * @param filePath - The path to the file. The path may be absolute or relative. | ||
| * @param options - Optional settings that can change the behavior. | ||
| * @returns A new writable stream for the file. | ||
| */ | ||
| static createWriteStream(filePath, options) { | ||
| return FileSystem._wrapException(() => { | ||
| if (options === null || options === void 0 ? void 0 : options.ensureFolderExists) { | ||
| const folderPath = nodeJsPath.dirname(filePath); | ||
| FileSystem.ensureFolder(folderPath); | ||
| } | ||
| return fs.createWriteStream(filePath); | ||
| }); | ||
| } | ||
| /** | ||
| * An async version of {@link FileSystem.createWriteStream}. | ||
| */ | ||
| static async createWriteStreamAsync(filePath, options) { | ||
| return await FileSystem._wrapExceptionAsync(async () => { | ||
| if (options === null || options === void 0 ? void 0 : options.ensureFolderExists) { | ||
| const folderPath = nodeJsPath.dirname(filePath); | ||
| await FileSystem.ensureFolderAsync(folderPath); | ||
| } | ||
| return fs.createWriteStream(filePath); | ||
| }); | ||
| } | ||
| // =============== | ||
@@ -853,0 +900,0 @@ // LINK OPERATIONS |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,2DAA2D;AAY3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EACL,KAAK,EACL,UAAU,EAKX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,cAAc,EAA0B,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EAYL,UAAU,EACX,MAAM,cAAc,CAAC;AAEtB,OAAO,EAA4D,SAAS,EAAE,MAAM,aAAa,CAAC;AAElG,OAAO,EACL,qBAAqB,EACrB,UAAU,EAiBX,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAyB,MAAM,cAAc,CAAC;AAEjE,OAAO,EACL,MAAM,EAOP,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAahD,OAAO,EAGL,UAAU,EAKV,QAAQ,EACT,MAAM,YAAY,CAAC;AAEpB,OAAO,EAQL,UAAU,EAEX,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,cAAc,EAAuB,MAAM,kBAAkB,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAqC,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE3F,OAAO,EACL,WAAW,EACX,iBAAiB,EAIlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,IAAI,EAIL,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,EAAE,cAAc,EAAkC,MAAM,kBAAkB,CAAC;AAElF,OAAO,EAAE,0BAA0B,EAA2C,MAAM,sBAAsB,CAAC;AAE3G,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAuB,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAA2B,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEvF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAsC,MAAM,QAAQ,CAAC;AAEzF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\n/// <reference types=\"node\" preserve=\"true\" />\n\n/**\n * Core libraries that every NodeJS toolchain project should use.\n *\n * @packageDocumentation\n */\n\nexport type { IProblemPattern } from '@rushstack/problem-matcher';\n\nexport { AlreadyReportedError } from './AlreadyReportedError';\n\nexport {\n Async,\n AsyncQueue,\n type IAsyncParallelismOptions,\n type IRunWithRetriesOptions,\n type IRunWithTimeoutOptions,\n type IWeighted\n} from './Async';\n\nexport { FileConstants, FolderConstants } from './Constants';\n\nexport { Disposables } from './Disposables';\n\nexport { Enum } from './Enum';\n\nexport { EnvironmentMap, type IEnvironmentEntry } from './EnvironmentMap';\n\nexport {\n type ExecutableStdioStreamMapping,\n type ExecutableStdioMapping,\n type IExecutableResolveOptions,\n type IExecutableSpawnSyncOptions,\n type IExecutableSpawnOptions,\n type IWaitForExitOptions,\n type IWaitForExitWithBufferOptions,\n type IWaitForExitWithStringOptions,\n type IWaitForExitResult,\n type IWaitForExitResultWithoutOutput,\n type IProcessInfo,\n Executable\n} from './Executable';\n\nexport { type IFileErrorOptions, type IFileErrorFormattingOptions, FileError } from './FileError';\n\nexport {\n AlreadyExistsBehavior,\n FileSystem,\n type FileSystemCopyFilesAsyncFilter,\n type FileSystemCopyFilesFilter,\n type FolderItem,\n type FileSystemStats,\n type IFileSystemCopyFileBaseOptions,\n type IFileSystemCopyFileOptions,\n type IFileSystemCopyFilesAsyncOptions,\n type IFileSystemCopyFilesOptions,\n type IFileSystemCreateLinkOptions,\n type IFileSystemDeleteFileOptions,\n type IFileSystemMoveOptions,\n type IFileSystemReadFileOptions,\n type IFileSystemReadFolderOptions,\n type IFileSystemUpdateTimeParameters,\n type IFileSystemWriteBinaryFileOptions,\n type IFileSystemWriteFileOptions\n} from './FileSystem';\n\nexport { FileWriter, type IFileWriterFlags } from './FileWriter';\n\nexport {\n Import,\n type IImportResolveOptions,\n type IImportResolveAsyncOptions,\n type IImportResolveModuleOptions,\n type IImportResolveModuleAsyncOptions,\n type IImportResolvePackageOptions,\n type IImportResolvePackageAsyncOptions\n} from './Import';\n\nexport { InternalError } from './InternalError';\n\nexport type {\n INodePackageJson,\n IPackageJson,\n IPackageJsonDependencyTable,\n IPackageJsonScriptTable,\n IPackageJsonRepository,\n IPeerDependenciesMetaTable,\n IDependenciesMetaTable,\n IPackageJsonExports\n} from './IPackageJson';\n\nexport {\n type JsonObject,\n type JsonNull,\n JsonSyntax,\n type IJsonFileParseOptions,\n type IJsonFileLoadAndValidateOptions,\n type IJsonFileStringifyOptions,\n type IJsonFileSaveOptions,\n JsonFile\n} from './JsonFile';\n\nexport {\n type IJsonSchemaErrorInfo,\n type IJsonSchemaCustomFormat,\n type IJsonSchemaFromFileOptions,\n type IJsonSchemaFromObjectOptions,\n type IJsonSchemaLoadOptions,\n type IJsonSchemaValidateOptions,\n type IJsonSchemaValidateObjectWithOptions,\n JsonSchema,\n type JsonSchemaVersion\n} from './JsonSchema';\n\nexport { LegacyAdapters, type LegacyCallback } from './LegacyAdapters';\n\nexport { LockFile } from './LockFile';\n\nexport { MapExtensions } from './MapExtensions';\n\nexport { MinimumHeap } from './MinimumHeap';\n\nexport { Objects } from './Objects';\n\nexport { type IPackageJsonLookupParameters, PackageJsonLookup } from './PackageJsonLookup';\n\nexport {\n PackageName,\n PackageNameParser,\n type IPackageNameParserOptions,\n type IParsedPackageName,\n type IParsedPackageNameOrError\n} from './PackageName';\n\nexport {\n Path,\n type FileLocationStyle,\n type IPathFormatFileLocationOptions,\n type IPathFormatConciselyOptions\n} from './Path';\n\nexport { PosixModeBits } from './PosixModeBits';\n\nexport type { Brand } from './PrimitiveTypes';\n\nexport { ProtectableMap, type IProtectableMapParameters } from './ProtectableMap';\n\nexport { RealNodeModulePathResolver, type IRealNodeModulePathResolverOptions } from './RealNodeModulePath';\n\nexport { Sort } from './Sort';\n\nexport { StringBuilder, type IStringBuilder } from './StringBuilder';\n\nexport { type ISubprocessOptions, SubprocessTerminator } from './SubprocessTerminator';\n\nexport { Encoding, Text, NewlineKind, type IReadLinesFromIterableOptions } from './Text';\n\nexport { TypeUuid } from './TypeUuid';\n\nexport { User } from './User';\n"]} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,2DAA2D;AAY3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EACL,KAAK,EACL,UAAU,EAKX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,cAAc,EAA0B,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EAYL,U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,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\n/// <reference types=\"node\" preserve=\"true\" />\n\n/**\n * Core libraries that every NodeJS toolchain project should use.\n *\n * @packageDocumentation\n */\n\nexport type { IProblemPattern } from '@rushstack/problem-matcher';\n\nexport { AlreadyReportedError } from './AlreadyReportedError';\n\nexport {\n Async,\n AsyncQueue,\n type IAsyncParallelismOptions,\n type IRunWithRetriesOptions,\n type IRunWithTimeoutOptions,\n type IWeighted\n} from './Async';\n\nexport { FileConstants, FolderConstants } from './Constants';\n\nexport { Disposables } from './Disposables';\n\nexport { Enum } from './Enum';\n\nexport { EnvironmentMap, type IEnvironmentEntry } from './EnvironmentMap';\n\nexport {\n type ExecutableStdioStreamMapping,\n type ExecutableStdioMapping,\n type IExecutableResolveOptions,\n type IExecutableSpawnSyncOptions,\n type IExecutableSpawnOptions,\n type IWaitForExitOptions,\n type IWaitForExitWithBufferOptions,\n type IWaitForExitWithStringOptions,\n type IWaitForExitResult,\n type IWaitForExitResultWithoutOutput,\n type IProcessInfo,\n Executable\n} from './Executable';\n\nexport { type IFileErrorOptions, type IFileErrorFormattingOptions, FileError } from './FileError';\n\nexport {\n AlreadyExistsBehavior,\n FileSystem,\n type IFileSystemWriteFileOptionsBase,\n type FileSystemCopyFilesAsyncFilter,\n type FileSystemCopyFilesFilter,\n type FileSystemReadStream,\n type FileSystemWriteStream,\n type FolderItem,\n type FileSystemStats,\n type IFileSystemCopyFileBaseOptions,\n type IFileSystemCopyFileOptions,\n type IFileSystemCopyFilesAsyncOptions,\n type IFileSystemCopyFilesOptions,\n type IFileSystemCreateLinkOptions,\n type IFileSystemCreateWriteStreamOptions,\n type IFileSystemDeleteFileOptions,\n type IFileSystemMoveOptions,\n type IFileSystemReadFileOptions,\n type IFileSystemReadFolderOptions,\n type IFileSystemUpdateTimeParameters,\n type IFileSystemWriteBinaryFileOptions,\n type IFileSystemWriteFileOptions\n} from './FileSystem';\n\nexport { FileWriter, type IFileWriterFlags } from './FileWriter';\n\nexport {\n Import,\n type IImportResolveOptions,\n type IImportResolveAsyncOptions,\n type IImportResolveModuleOptions,\n type IImportResolveModuleAsyncOptions,\n type IImportResolvePackageOptions,\n type IImportResolvePackageAsyncOptions\n} from './Import';\n\nexport { InternalError } from './InternalError';\n\nexport type {\n INodePackageJson,\n IPackageJson,\n IPackageJsonDependencyTable,\n IPackageJsonScriptTable,\n IPackageJsonRepository,\n IPeerDependenciesMetaTable,\n IDependenciesMetaTable,\n IPackageJsonExports\n} from './IPackageJson';\n\nexport {\n type JsonObject,\n type JsonNull,\n JsonSyntax,\n type IJsonFileParseOptions,\n type IJsonFileLoadAndValidateOptions,\n type IJsonFileStringifyOptions,\n type IJsonFileSaveOptions,\n JsonFile\n} from './JsonFile';\n\nexport {\n type IJsonSchemaErrorInfo,\n type IJsonSchemaCustomFormat,\n type IJsonSchemaFromFileOptions,\n type IJsonSchemaFromObjectOptions,\n type IJsonSchemaLoadOptions,\n type IJsonSchemaValidateOptions,\n type IJsonSchemaValidateObjectWithOptions,\n JsonSchema,\n type JsonSchemaVersion\n} from './JsonSchema';\n\nexport { LegacyAdapters, type LegacyCallback } from './LegacyAdapters';\n\nexport { LockFile } from './LockFile';\n\nexport { MapExtensions } from './MapExtensions';\n\nexport { MinimumHeap } from './MinimumHeap';\n\nexport { Objects } from './Objects';\n\nexport { type IPackageJsonLookupParameters, PackageJsonLookup } from './PackageJsonLookup';\n\nexport {\n PackageName,\n PackageNameParser,\n type IPackageNameParserOptions,\n type IParsedPackageName,\n type IParsedPackageNameOrError\n} from './PackageName';\n\nexport {\n Path,\n type FileLocationStyle,\n type IPathFormatFileLocationOptions,\n type IPathFormatConciselyOptions\n} from './Path';\n\nexport { PosixModeBits } from './PosixModeBits';\n\nexport type { Brand } from './PrimitiveTypes';\n\nexport { ProtectableMap, type IProtectableMapParameters } from './ProtectableMap';\n\nexport { RealNodeModulePathResolver, type IRealNodeModulePathResolverOptions } from './RealNodeModulePath';\n\nexport { Sort } from './Sort';\n\nexport { StringBuilder, type IStringBuilder } from './StringBuilder';\n\nexport { type ISubprocessOptions, SubprocessTerminator } from './SubprocessTerminator';\n\nexport { Encoding, Text, NewlineKind, type IReadLinesFromIterableOptions } from './Text';\n\nexport { TypeUuid } from './TypeUuid';\n\nexport { User } from './User';\n"]} |
+1
-1
| { | ||
| "name": "@rushstack/node-core-library", | ||
| "version": "5.21.0", | ||
| "version": "5.22.0", | ||
| "description": "Core libraries that every NodeJS toolchain project should use", | ||
@@ -5,0 +5,0 @@ "main": "./lib-commonjs/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2081182
0.81%25047
0.82%153
3.38%