Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cfware/ncu-walk
Generate a fake package.json with dependencies for all packages in node_modules
https://github.com/cfware/ncu-walk
Last synced: about 2 months ago
JSON representation
Generate a fake package.json with dependencies for all packages in node_modules
- Host: GitHub
- URL: https://github.com/cfware/ncu-walk
- Owner: cfware
- License: mit
- Created: 2019-09-07T15:30:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T14:35:22.000Z (over 4 years ago)
- Last Synced: 2024-10-29T08:25:02.079Z (2 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ncu-walk
[![Travis CI][travis-image]][travis-url]
[![Greenkeeper badge][gk-image]](https://greenkeeper.io/)
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![MIT][license-image]](LICENSE)Generate a fake package.json with dependencies for all packages in node_modules
### Install ncu-walk
This utility requires node.js 8 or above.
```sh
npm i -g ncu-walk
```## Usage
From a location where `**/node_modules` exists run the following:
```sh
ncu-walk | ncu
````ncu-walk` treats all installed modules as `dependencies`, prints to console data
resembling `package.json` with enough information for [ncu] to check all installed
versions. Without arguments `ncu-walk` will find the newest version of all installed
packages. This can be changed by running `ncu-walk --oldest | ncu` to report based
on the oldest versions found.It is not possible to use an option to ignore devDependencies with `ncu-walk`. To do
this you must first run `npm prune --only=prod` to uninstall devDependencies.[npm-image]: https://img.shields.io/npm/v/ncu-walk.svg
[npm-url]: https://npmjs.org/package/ncu-walk
[travis-image]: https://travis-ci.org/cfware/ncu-walk.svg?branch=master
[travis-url]: https://travis-ci.org/cfware/ncu-walk
[gk-image]: https://badges.greenkeeper.io/cfware/ncu-walk.svg
[downloads-image]: https://img.shields.io/npm/dm/ncu-walk.svg
[downloads-url]: https://npmjs.org/package/ncu-walk
[license-image]: https://img.shields.io/npm/l/ncu-walk.svg