Socket
Socket
Sign inDemoInstall

fs-extra

Package Overview
Dependencies
3
Maintainers
3
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.0.0 to 10.0.1

lib/copy/copy-sync.js

3

lib/copy/index.js

@@ -5,3 +5,4 @@ 'use strict'

module.exports = {
copy: u(require('./copy'))
copy: u(require('./copy')),
copySync: require('./copy-sync')
}
'use strict'
const file = require('./file')
const link = require('./link')
const symlink = require('./symlink')
const { createFile, createFileSync } = require('./file')
const { createLink, createLinkSync } = require('./link')
const { createSymlink, createSymlinkSync } = require('./symlink')
module.exports = {
// file
createFile: file.createFile,
createFileSync: file.createFileSync,
ensureFile: file.createFile,
ensureFileSync: file.createFileSync,
createFile,
createFileSync,
ensureFile: createFile,
ensureFileSync: createFileSync,
// link
createLink: link.createLink,
createLinkSync: link.createLinkSync,
ensureLink: link.createLink,
ensureLinkSync: link.createLinkSync,
createLink,
createLinkSync,
ensureLink: createLink,
ensureLinkSync: createLinkSync,
// symlink
createSymlink: symlink.createSymlink,
createSymlinkSync: symlink.createSymlinkSync,
ensureSymlink: symlink.createSymlink,
ensureSymlinkSync: symlink.createSymlinkSync
createSymlink,
createSymlinkSync,
ensureSymlink: createSymlink,
ensureSymlinkSync: createSymlinkSync
}

@@ -7,3 +7,2 @@ 'use strict'

// Export extra methods:
...require('./copy-sync'),
...require('./copy'),

@@ -14,7 +13,6 @@ ...require('./empty'),

...require('./mkdirs'),
...require('./move-sync'),
...require('./move'),
...require('./output'),
...require('./output-file'),
...require('./path-exists'),
...require('./remove')
}
'use strict'
const { stringify } = require('jsonfile/utils')
const { outputFileSync } = require('../output')
const { outputFileSync } = require('../output-file')

@@ -6,0 +6,0 @@ function outputJsonSync (file, data, options) {

'use strict'
const { stringify } = require('jsonfile/utils')
const { outputFile } = require('../output')
const { outputFile } = require('../output-file')

@@ -6,0 +6,0 @@ async function outputJson (file, data, options = {}) {

@@ -5,3 +5,4 @@ 'use strict'

module.exports = {
move: u(require('./move'))
move: u(require('./move')),
moveSync: require('./move-sync')
}
{
"name": "fs-extra",
"version": "10.0.0",
"version": "10.0.1",
"description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.",

@@ -46,3 +46,2 @@ "engines": {

"at-least-node": "^1.0.0",
"coveralls": "^3.0.0",
"klaw": "^2.1.1",

@@ -55,3 +54,3 @@ "klaw-sync": "^3.0.2",

"read-dir-files": "^0.1.1",
"standard": "^14.1.0"
"standard": "^16.0.3"
},

@@ -64,10 +63,8 @@ "main": "./lib/index.js",

"scripts": {
"full-ci": "npm run lint && npm run coverage",
"coverage": "nyc -r lcovonly npm run unit",
"coveralls": "coveralls < coverage/lcov.info",
"lint": "standard",
"test-find": "find ./lib/**/__tests__ -name *.test.js | xargs mocha",
"test": "npm run lint && npm run unit",
"unit": "node test.js"
}
"unit": "nyc node test.js"
},
"sideEffects": false
}

@@ -7,7 +7,5 @@ Node.js: fs-extra

[![npm Package](https://img.shields.io/npm/v/fs-extra.svg)](https://www.npmjs.org/package/fs-extra)
[![License](https://img.shields.io/npm/l/express.svg)](https://github.com/jprichardson/node-fs-extra/blob/master/LICENSE)
[![build status](https://img.shields.io/travis/jprichardson/node-fs-extra/master.svg)](http://travis-ci.org/jprichardson/node-fs-extra)
[![windows Build status](https://img.shields.io/appveyor/ci/jprichardson/node-fs-extra/master.svg?label=windows%20build)](https://ci.appveyor.com/project/jprichardson/node-fs-extra/branch/master)
[![License](https://img.shields.io/npm/l/fs-extra.svg)](https://github.com/jprichardson/node-fs-extra/blob/master/LICENSE)
[![build status](https://img.shields.io/github/workflow/status/jprichardson/node-fs-extra/Node.js%20CI/master)](https://github.com/jprichardson/node-fs-extra/actions/workflows/ci.yml?query=branch%3Amaster)
[![downloads per month](http://img.shields.io/npm/dm/fs-extra.svg)](https://www.npmjs.org/package/fs-extra)
[![Coverage Status](https://img.shields.io/coveralls/github/jprichardson/node-fs-extra/master.svg)](https://coveralls.io/github/jprichardson/node-fs-extra)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

@@ -193,3 +191,3 @@

- More tests for edge cases. Specifically on different platforms. There can never be enough tests.
- Improve test coverage. See coveralls output for more info.
- Improve test coverage.

@@ -196,0 +194,0 @@ Note: If you make any big changes, **you should definitely file an issue for discussion first.**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc