Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

safefs

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safefs - npm Package Compare versions

Comparing version 8.6.0 to 8.7.0

edition-node-6/index.js

9

LICENSE.md
<!-- LICENSEFILE/ -->
<h1>License</h1>
# License
Unless stated otherwise all works are:
<ul><li>Copyright &copy; 2013+ <a href="http://bevry.me">Bevry Pty Ltd</a></li>
<li>Copyright &copy; 2011-2012 <a href="https://balupton.com">Benjamin Lupton</a></li></ul>
- Copyright &copy; [Benjamin Lupton](https://balupton.com)
and licensed under:
<ul><li><a href="http://spdx.org/licenses/Artistic-2.0.html">Artistic License 2.0</a></li></ul>
- [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)
<h2>The Artistic License 2.0</h2>
## The Artistic License 2.0

@@ -16,0 +15,0 @@ <pre>

{
"title": "Safe FS",
"name": "safefs",
"version": "8.6.0",
"version": "8.7.0",
"license": "Artistic-2.0",
"description": "Stop getting EMFILE errors! Open only as many files as the operating system supports.",
"homepage": "https://github.com/bevry/safefs",
"license": "Artistic-2.0",
"funding": "https://bevry.me/fund",
"repository": {
"type": "git",
"url": "https://github.com/bevry/safefs.git"
},
"bugs": {
"url": "https://github.com/bevry/safefs/issues"
},
"keywords": [
"closeFile",
"emfile",
"es2015",
"esnext",

@@ -58,20 +67,40 @@ "fs",

},
"funding": "https://bevry.me/fund",
"author": "2013+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me), 2011-2012 Benjamin Lupton <b@lupton.cc> (https://balupton.com)",
"author": "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)",
"authors": [
"Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."
],
"maintainers": [
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)"
"Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."
],
"contributors": [
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)",
"James Gill (https://github.com/jagill)",
"Kyle Robinson Young (https://github.com/shama)",
"Sean Fridman <mail@seanfridman.com> (https://github.com/sfrdmn)"
"Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)",
"James Gill (https://www.linkedin.com/in/jagill/) (https://github.com/jagill)",
"Kyle Robinson Young (https://dontkry.com) (https://github.com/shama)",
"Sean Fridman <mail@seanfridman.com> (https://seanfridman.com) (https://github.com/sfrdmn)"
],
"bugs": {
"url": "https://github.com/bevry/safefs/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/bevry/safefs.git"
},
"sponsors": [
"Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher",
"Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.",
"Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.",
"Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)",
"Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)",
"Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.",
"Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"
],
"donors": [
"Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)",
"Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)",
"Chad (https://opencollective.com/chad8)",
"Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov)",
"entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)",
"Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)",
"Michael Duane Mooring (https://bevry.me) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)",
"Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)",
"Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)",
"Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)",
"Sentry (https://sentry.io) (https://github.com/getsentry)",
"ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)",
"Skunk Team (https://skunk.team) (https://github.com/skunkteam)",
"Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)"
],
"engines": {

@@ -82,3 +111,3 @@ "node": ">=4"

{
"description": "ESNext source code for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
"description": "ESNext source code for Node.js 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
"directory": "source",

@@ -93,35 +122,54 @@ "entry": "index.js",

"engines": {
"node": "4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"
"node": "8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"
}
},
{
"description": "ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
"directory": "edition-node-6",
"entry": "index.js",
"tags": [
"compiled",
"javascript",
"es2015",
"require"
],
"engines": {
"node": "4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
"browsers": false
}
}
],
"type": "commonjs",
"main": "source/index.js",
"main": "index.cjs",
"dependencies": {
"editions": "^6.20.0",
"graceful-fs": "^4.2.11",
"version-compare": "^3.8.0"
"version-compare": "^3.9.0"
},
"devDependencies": {
"@bevry/update-contributors": "^1.23.0",
"assert-helpers": "^11.9.0",
"eslint": "^8.55.0",
"eslint-config-bevry": "^5.2.0",
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/preset-env": "^7.23.6",
"assert-helpers": "^11.11.0",
"eslint": "^8.56.0",
"eslint-config-bevry": "^5.3.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-prettier": "^5.1.2",
"jsdoc": "^4.0.2",
"kava": "^7.4.0",
"prettier": "^3.1.0",
"projectz": "^3.4.0",
"valid-directory": "^4.6.0"
"kava": "^7.5.0",
"prettier": "^3.1.1",
"projectz": "^4.0.0",
"valid-directory": "^4.7.0"
},
"scripts": {
"our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "printf '%s\n' 'no need for this project'",
"our:compile": "npm run our:compile:edition-node-6",
"our:compile:edition-node-6": "env BABEL_ENV=edition-node-6 babel --out-dir ./edition-node-6 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-6/package.json",
"our:deploy": "printf '%s\n' 'no need for this project'",
"our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz",
"our:meta:contributors": "update-contributors",
"our:meta": "npm run our:meta:docs && npm run our:meta:projectz",
"our:meta:docs": "npm run our:meta:docs:jsdoc",
"our:meta:docs:jsdoc": "rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version",
"our:meta:projectz": "projectz compile",
"our:meta:projectz": "projectz",
"our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",

@@ -136,8 +184,28 @@ "our:release:check-changelog": "cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)",

"our:test": "npm run our:verify && npm test",
"our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier",
"our:verify:directory": "valid-directory",
"our:verify": "npm run our:verify:eslint && npm run our:verify:prettier",
"our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
"our:verify:prettier": "prettier --write .",
"test": "node ./source/test.js"
"test": "node ./test.cjs"
},
"babel": {
"env": {
"edition-node-6": {
"sourceType": "script",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "6"
},
"modules": "commonjs"
}
]
],
"plugins": [
"@babel/proposal-object-rest-spread"
]
}
}
},
"eslintConfig": {

@@ -151,5 +219,5 @@ "extends": [

"singleQuote": true,
"trailingComma": "all",
"trailingComma": "es5",
"endOfLine": "lf"
}
}
}
<!-- TITLE/ -->
<h1>Safe FS</h1>
# Safe FS
<!-- /TITLE -->
<!-- BADGES/ -->

@@ -28,3 +27,2 @@

<!-- DESCRIPTION/ -->

@@ -77,22 +75,20 @@

<h2>Install</h2>
## Install
<a href="https://npmjs.com" title="npm is a package manager for javascript"><h3>npm</h3></a>
<ul>
<li>Install: <code>npm install --save safefs</code></li>
<li>Import: <code>import * as pkg from ('safefs')</code></li>
<li>Require: <code>const pkg = require('safefs')</code></li>
</ul>
### [npm](https://npmjs.com "npm is a package manager for javascript")
<h3><a href="https://editions.bevry.me" title="Editions are the best way to produce and consume packages you care about.">Editions</a></h3>
- Install: `npm install --save safefs`
- Import: `import * as pkg from ('safefs')`
- Require: `const pkg = require('safefs')`
<p>This package is published with the following editions:</p>
### [Editions](https://editions.bevry.me "Editions are the best way to produce and consume packages you care about.")
<ul><li><code>safefs</code> aliases <code>safefs/source/index.js</code></li>
<li><code>safefs/source/index.js</code> is <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> source code for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li></ul>
This package is published with the following editions:
- `safefs` aliases `safefs/index.cjs` which uses the [Editions Autoloader](https://github.com/bevry/editions "You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment") to automatically select the correct edition for the consumer's environment
- `safefs/source/index.js` is [ESNext](https://en.wikipedia.org/wiki/ECMAScript#ES.Next "ECMAScript Next") source code for [Node.js](https://nodejs.org "Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine") 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html "Node/CJS Modules") for modules
- `safefs/edition-node-6/index.js` is [ESNext](https://en.wikipedia.org/wiki/ECMAScript#ES.Next "ECMAScript Next") compiled for [Node.js](https://nodejs.org "Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine") 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html "Node/CJS Modules") for modules
<h3><a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a></h3>
### [TypeScript](https://www.typescriptlang.org/ "TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.")
This project provides its type information via inline <a href="http://usejsdoc.org" title="JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor">JSDoc Comments</a>. To make use of this in <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:
This project provides its type information via inline [JSDoc Comments](http://usejsdoc.org "JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor"). To make use of this in [TypeScript](https://www.typescriptlang.org/ "TypeScript is a typed superset of JavaScript that compiles to plain JavaScript."), set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomplish this via your `tsconfig.json` file like so:
``` json

@@ -108,35 +104,35 @@ {

<!-- HISTORY/ -->
<h2>History</h2>
## History
<a href="https://github.com/bevry/safefs/blob/master/HISTORY.md#files">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>
[Discover the release history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/safefs/blob/HEAD/HISTORY.md#files)
<!-- /HISTORY -->
<!-- BACKERS/ -->
<!-- CONTRIBUTE/ -->
## Backers
<h2>Contribute</h2>
### Code
<a href="https://github.com/bevry/safefs/blob/master/CONTRIBUTING.md#files">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>
[Discover how to contribute via the `CONTRIBUTING.md` file.](https://github.com/bevry/safefs/blob/HEAD/CONTRIBUTING.md#files)
<!-- /CONTRIBUTE -->
#### Authors
- [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.
<!-- BACKERS/ -->
#### Maintainers
<h2>Backers</h2>
- [Benjamin Lupton](https://github.com/balupton) — Accelerating collaborative wisdom.
<h3>Maintainers</h3>
#### Contributors
These amazing people are maintaining this project:
- [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/safefs/commits?author=balupton "View the GitHub contributions of Benjamin Lupton on repository bevry/safefs")
- [James Gill](https://github.com/jagill) — [view contributions](https://github.com/bevry/safefs/commits?author=jagill "View the GitHub contributions of James Gill on repository bevry/safefs")
- [Kyle Robinson Young](https://github.com/shama) — [view contributions](https://github.com/bevry/safefs/commits?author=shama "View the GitHub contributions of Kyle Robinson Young on repository bevry/safefs")
- [Sean Fridman](https://github.com/sfrdmn) — [view contributions](https://github.com/bevry/safefs/commits?author=sfrdmn "View the GitHub contributions of Sean Fridman on repository bevry/safefs")
<ul><li><a href="https://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/safefs/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/safefs">view contributions</a></li></ul>
### Finances
<h3>Sponsors</h3>
No sponsors yet! Will you be the first?
<span class="badge-githubsponsors"><a href="https://github.com/sponsors/balupton" title="Donate to this project using GitHub Sponsors"><img src="https://img.shields.io/badge/github-donate-yellow.svg" alt="GitHub Sponsors donate button" /></a></span>

@@ -151,29 +147,43 @@ <span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/bevry" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span>

<h3>Contributors</h3>
#### Sponsors
These amazing people have contributed code to this project:
- [Andrew Nesbitt](https://nesbitt.io) — Software engineer and researcher
- [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders.
- [Codecov](https://codecov.io/) — Empower developers with tools to improve code quality and testing.
- [Poonacha Medappa](https://poonachamedappa.com)
- [Rob Morris](https://github.com/Rob-Morris)
- [Sentry](https://sentry.io) — Real-time crash reporting for your web apps, mobile apps, and games.
- [Syntax](https://syntax.fm) — Syntax Podcast
<ul><li><a href="https://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/safefs/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/safefs">view contributions</a></li>
<li><a href="https://github.com/jagill">James Gill</a> — <a href="https://github.com/bevry/safefs/commits?author=jagill" title="View the GitHub contributions of James Gill on repository bevry/safefs">view contributions</a></li>
<li><a href="https://github.com/shama">Kyle Robinson Young</a> — <a href="https://github.com/bevry/safefs/commits?author=shama" title="View the GitHub contributions of Kyle Robinson Young on repository bevry/safefs">view contributions</a></li>
<li><a href="https://github.com/sfrdmn">Sean Fridman</a> — <a href="https://github.com/bevry/safefs/commits?author=sfrdmn" title="View the GitHub contributions of Sean Fridman on repository bevry/safefs">view contributions</a></li></ul>
#### Donors
<a href="https://github.com/bevry/safefs/blob/master/CONTRIBUTING.md#files">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>
- [Andrew Nesbitt](https://nesbitt.io)
- [Balsa](https://balsa.com)
- [Chad](https://opencollective.com/chad8)
- [Codecov](https://codecov.io/)
- [entroniq](https://gitlab.com/entroniq)
- [Jean-Luc Geering](https://github.com/jlgeering)
- [Michael Duane Mooring](https://bevry.me)
- [Mohammed Shah](https://github.com/smashah)
- [Poonacha Medappa](https://poonachamedappa.com)
- [Rob Morris](https://github.com/Rob-Morris)
- [Sentry](https://sentry.io)
- [ServieJS](https://github.com/serviejs)
- [Skunk Team](https://skunk.team)
- [Syntax](https://syntax.fm)
<!-- /BACKERS -->
<!-- LICENSE/ -->
<h2>License</h2>
## License
Unless stated otherwise all works are:
<ul><li>Copyright &copy; 2013+ <a href="http://bevry.me">Bevry Pty Ltd</a></li>
<li>Copyright &copy; 2011-2012 <a href="https://balupton.com">Benjamin Lupton</a></li></ul>
- Copyright &copy; [Benjamin Lupton](https://balupton.com)
and licensed under:
<ul><li><a href="http://spdx.org/licenses/Artistic-2.0.html">Artistic License 2.0</a></li></ul>
- [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)
<!-- /LICENSE -->

@@ -219,3 +219,3 @@ /* eslint no-sync:0 */

{ recursive: true, force: true, maxRetries: 2 },
wrappedNext,
wrappedNext
)

@@ -222,0 +222,0 @@ } else if (

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc