npm-fund
This command retrieves information on how to fund the dependencies of a given project. If no package name is provided, it will list all dependencies that are looking for funding in a tree-structure in which are listed the type of funding and the url to visit. If a package name is provided then it tries to open its funding url using the —browser config param; if there are multiple funding sources for the package, the user will be instructed to pass the —which command to disambiguate.
The list will avoid duplicated entries and will stack all packages that share the same type/url as a single entry. Given this nature the list is not going to have the same shape of the output from npm ls .
- Default: OS X: "open" , Windows: "start" , Others: "xdg-open"
- Type: String
The browser that is called by the npm fund command to open websites.
- Type: Boolean
- Default: false
Show information in JSON format.
- Type: Boolean
- Default: true
Whether to represent the tree structure using unicode characters. Set it to false in order to use all-ansi output.
- Type: Number
- Default: undefined
If there are multiple funding sources, which 1-indexed source URL to open.
npm-fund
This command retrieves information on how to fund the dependencies of a given project. If no package name is provided, it will list all dependencies that are looking for funding in a tree structure, listing the type of funding and the url to visit. If a package name is provided then it tries to open its funding url using the —browser config param; if there are multiple funding sources for the package, the user will be instructed to pass the —which option to disambiguate.
The list will avoid duplicated entries and will stack all packages that share the same url as a single entry. Thus, the list does not have the same shape of the output from npm ls .
It's possible to filter the results to only include a single workspace and its dependencies using the workspace config option.
Here's an example running npm fund in a project with a configured workspace a :
And here is an example of the expected result when filtering only by a specific workspace a in the same project:
- Default: false
- Type: Boolean
Whether or not to output JSON data, rather than the normal output.
- In npm pkg set it enables parsing set values with JSON.parse() before saving them to your package.json .
Not supported by all npm commands.
- Default: OS X: "open" , Windows: "start" , Others: "xdg-open"
- Type: null, Boolean, or String
The browser that is called by npm commands to open websites.
Set to false to suppress browser behavior and instead print urls to terminal.
Set to true to use default system URL opener.
- Default: false on windows, true on mac/unix systems with a unicode locale, as defined by the LC_ALL , LC_CTYPE , or LANG environment variables.
- Type: Boolean
When set to true, npm uses unicode characters in the tree output. When false, it uses ascii characters instead of unicode glyphs.
- Default:
- Type: String (can be set multiple times)
Enable running a command in the context of the configured workspaces of the current project while filtering by running only the workspaces defined by this configuration option.
Valid values for the workspace config are either:
- Workspace names
- Path to a workspace directory
- Path to a parent workspace directory (will result to selecting all of the nested workspaces)
When set for the npm init command, this may be set to the folder of a workspace which does not yet exist, to create the folder and set it up as a brand new workspace within the project.
This value is not exported to the environment for child processes.
- Default: null
- Type: null or Number
If there are multiple funding sources, which 1-indexed source URL to open.
npm-fund
Эта команда извлекает информацию о том, как финансировать зависимости данного проекта. Если имя пакета не указано, он перечислит все зависимости, которые ищут финансирование, в древовидной структуре с указанием типа финансирования и URL-адреса для посещения. Если указано имя пакета, он пытается открыть свой URL-адрес финансирования, используя —browser конфигурации —browser ; если для пакета есть несколько источников финансирования, пользователю будет предложено передать параметр —which для устранения неоднозначности.
Список позволит избежать дублирования записей и объединит все пакеты с одним и тем же URL-адресом в одну запись. Таким образом, список не имеет той же формы, что и вывод npm ls .
Example
Workspaces support
Можно отфильтровать результаты, чтобы включить только одну рабочую область и ее зависимости, используя параметр конфигурации workspace .
Example:
Вот пример запуска npm fund в проекте с настроенной рабочей областью a :
А вот пример ожидаемого результата при фильтрации только по определенной рабочей области a в том же проекте:
Configuration
- Default: false
- Type: Boolean
Выводить или не выводить JSON данные,а не обычный вывод.
- В npm pkg set он позволяет анализировать установленные значения с помощью JSON.parse () перед их сохранением в package.json .
Поддерживается не всеми командами npm.
browser
- По умолчанию: OS X: «open» , Windows: «start» , другие: «xdg-open»
- Тип:null,булево или строка
Браузер,который вызывается командами npm для открытия веб-сайтов.
Установите значение false , чтобы подавить поведение браузера и вместо этого выводить URL-адреса на терминал.
Установите значение true , чтобы использовать средство открытия URL-адресов системы по умолчанию.
unicode
- По умолчанию: false в Windows, true в системах mac / unix с LC_ALL Unicode, как определено переменными среды LC_ALL , LC_CTYPE или LANG .
- Type: Boolean
Если установлено значение true,npm использует символы юникода в выводе дерева.При значении false вместо глифов юникода используются символы ascii.
workspace
- Default:
- Тип:Строка (может быть задана несколько раз)
Разрешает выполнение команды в контексте настроенных рабочих пространств текущего проекта при фильтрации путем выполнения только рабочих пространств,определенных этим параметром конфигурации.
Допустимые значения для конфигурации workspace :
- Workspace names
- Путь к каталогу рабочей области
- Путь к директории родительского рабочего пространства (приведет к выбору всех рабочих пространств в этой папке)
Если установлено для команды npm init , это может быть настроено на папку рабочего пространства, которое еще не существует, чтобы создать папку и настроить ее как совершенно новую рабочую область в проекте.
Это значение не экспортируется в среду для дочерних процессов.
which
- Default: null
- Тип:null или Number
Если имеется несколько источников финансирования,какой URL-адрес 1-индексированного источника следует открыть.
What does 'x packages are looking for funding' mean when running `npm install`?
I usually get «x packages are looking for funding.» when running npm install on a react project. Any idea what that means?
![]()
10 Answers 10
When you run npm update in the command prompt, when it is done it will recommend you type a new command called npm fund .
When you run npm fund it will list all the modules and packages you have installed that were created by companies or organizations that need money for their IT projects. You will see a list of webpages where you can send them money. So "funds" means "Angular packages you installed that could use some money from you as an option to help support their businesses".
It’s basically a list of the modules you have that need contributions or donations of money to their projects and which list websites where you can enter a credit card to help pay for them.