Update checked-in dependencies
This commit is contained in:
parent
4e02f8e87a
commit
0da815296a
500 changed files with 538 additions and 544 deletions
22
node_modules/removeNPMAbsolutePaths/README.md
generated
vendored
22
node_modules/removeNPMAbsolutePaths/README.md
generated
vendored
|
|
@ -1,11 +1,11 @@
|
|||
[![NPM version][npm-image]][npm-url]
|
||||
[![build status][travis-image]][travis-url]
|
||||
[![Node.js CI][ci-image]][ci-url]
|
||||
[![Test coverage][coveralls-image]][coveralls-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
# removeNPMAbsolutePaths
|
||||
|
||||
removeNPMAbsolutePaths is a small utility to remove the fields that npm adds to the modules in `node_modules` containing local aboslute paths.
|
||||
removeNPMAbsolutePaths is a small utility to remove the fields that npm adds to the modules in `node_modules` containing local absolute paths.
|
||||
|
||||
It has been noted that the `package.json` of modules in the `node_modules` folder contain some extra fields like `_args` and `where` which contain the absolute path of the module. According to NPM those fields are not even used.
|
||||
|
||||
|
|
@ -26,15 +26,19 @@ $ removeNPMAbsolutePaths '<PROJECT_FOLDER>'
|
|||
```
|
||||
or use it from whithin your code
|
||||
```javascript
|
||||
var removeNPMAbsolutePaths = require('removeNPMAbsolutePaths');
|
||||
removeNPMAbsolutePaths('<PROJECT_FOLDER>')
|
||||
.then(results => results.forEach(result => {
|
||||
const removeNPMAbsolutePaths = require('removeNPMAbsolutePaths');
|
||||
|
||||
try {
|
||||
const results = await removeNPMAbsolutePaths('<PROJECT_FOLDER>');
|
||||
results.forEach(result => {
|
||||
// Print only information about files that couldn't be processed
|
||||
if (!result.success) {
|
||||
console.log(result.err.message);
|
||||
}
|
||||
}))
|
||||
.catch(err => console.log(err.message));
|
||||
});
|
||||
} catch(err) {
|
||||
console.log(err.message);
|
||||
}
|
||||
```
|
||||
Using `removeNPMAbsolutePaths` from within Javascript returns a promise containing information about all the folders and files processed and whether they where successfully processed and rewritten or not.
|
||||
|
||||
|
|
@ -61,8 +65,8 @@ MIT
|
|||
|
||||
[npm-image]: https://img.shields.io/npm/v/removeNPMAbsolutePaths.svg?style=flat-square
|
||||
[npm-url]: https://www.npmjs.com/package/removeNPMAbsolutePaths
|
||||
[travis-image]: https://img.shields.io/travis/juanjoDiaz/removeNPMAbsolutePaths/master.svg?style=flat-square
|
||||
[travis-url]: https://travis-ci.org/juanjoDiaz/removeNPMAbsolutePaths
|
||||
[ci-image]: https://github.com/juanjoDiaz/removeNPMAbsolutePaths/actions/workflows/on-push.yaml/badge.svg
|
||||
[ci-url]: https://github.com/juanjoDiaz/removeNPMAbsolutePaths/actions/workflows/on-push.yaml
|
||||
[coveralls-image]: https://img.shields.io/coveralls/juanjoDiaz/removeNPMAbsolutePaths/master.svg?style=flat-square
|
||||
[coveralls-url]: https://coveralls.io/github/juanjoDiaz/removeNPMAbsolutePaths?branch=master
|
||||
[downloads-image]: https://img.shields.io/npm/dm/removeNPMAbsolutePaths.svg?style=flat-square
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue