check-disk-space
Advanced tools
Comparing version 2.1.0 to 3.0.0
{ | ||
"name": "check-disk-space", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "Light multi-platform disk space checker without third party for Node.js", | ||
"main": "index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "./dist/check-disk-space.cjs.js", | ||
"module": "./dist/check-disk-space.es.js", | ||
"types": "./dist/check-disk-space.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/check-disk-space.es.js", | ||
"require": "./dist/check-disk-space.cjs.js" | ||
} | ||
}, | ||
"scripts": { | ||
"build:lib": "rollup --config", | ||
"build:dts": "rollup --config rollup.dts.config.js", | ||
"build": "npm-run-all build:lib build:dts", | ||
"lint": "eslint . --cache", | ||
"lint:fix": "eslint --fix .", | ||
"typecheck": "tsc --noEmit", | ||
"test": "npm-run-all test:coverage lint typecheck", | ||
"test:unit": "NODE_ENV=test TS_NODE_PROJECT='tsconfig.test.json' ava", | ||
"test:coverage": "nyc --reporter=lcov --reporter=text npm run test:unit --silent" | ||
}, | ||
"ava": { | ||
"files": [ | ||
"test/**", | ||
"!test/__helpers__/**" | ||
], | ||
"extensions": [ | ||
"ts" | ||
], | ||
"require": [ | ||
"tsconfig-paths/register", | ||
"ts-node/register", | ||
"source-map-support/register" | ||
] | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=12" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"ava": "^2.0.0", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-ava": "^7.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"xo": "^0.24.0" | ||
"@alex-d/eslint-config": "1.0.3", | ||
"@istanbuljs/nyc-config-typescript": "^1.0.1", | ||
"@rollup/plugin-typescript": "8.2.1", | ||
"@types/node": "15.12.2", | ||
"@typescript-eslint/eslint-plugin": "4.26.1", | ||
"@typescript-eslint/parser": "4.26.1", | ||
"ava": "3.15.0", | ||
"eslint": "7.28.0", | ||
"eslint-plugin-ava": "12.0.0", | ||
"eslint-plugin-import": "2.23.4", | ||
"eslint-plugin-simple-import-sort": "7.0.0", | ||
"npm-run-all": "4.1.5", | ||
"nyc": "^15.1.0", | ||
"rollup": "2.51.2", | ||
"rollup-plugin-dts": "3.0.2", | ||
"source-map-support": "^0.5.19", | ||
"ts-node": "^10.0.0", | ||
"tsconfig-paths": "^3.9.0", | ||
"typescript": "4.3.2" | ||
}, | ||
"xo": { | ||
"space": true, | ||
"semicolon": false | ||
}, | ||
"scripts": { | ||
"unit-test": "ava --color", | ||
"lint": "xo", | ||
"test": "npm-run-all unit-test lint" | ||
}, | ||
"repository": { | ||
@@ -36,4 +76,3 @@ "type": "git", | ||
], | ||
"types": "./typings/index.d.ts", | ||
"author": "Alex-D <contact@alex-d.fr> (http://alex-d.fr)", | ||
"author": "Alex-D <contact@alex-d.fr> (https://alex-d.fr)", | ||
"license": "MIT", | ||
@@ -40,0 +79,0 @@ "bugs": { |
# Check disk space | ||
[![Travis](https://img.shields.io/travis/Alex-D/check-disk-space.svg)](https://travis-ci.org/Alex-D/check-disk-space) | ||
[![License MIT](https://img.shields.io/github/license/Alex-D/check-disk-space.svg)](LICENCE) | ||
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) | ||
[![Continue Integration](https://img.shields.io/github/workflow/status/Alex-D/check-disk-space/Continuous%20Integration?style=for-the-badge)](https://github.com/Alex-D/check-disk-space/actions/workflows/ci.yml) | ||
[![check-disk-space on npm](https://img.shields.io/npm/v/check-disk-space?style=for-the-badge)](https://www.npmjs.com/package/check-disk-space) | ||
[![License MIT](https://img.shields.io/github/license/Alex-D/check-disk-space.svg?style=for-the-badge)](LICENSE) | ||
@@ -14,4 +14,8 @@ ## Install | ||
```js | ||
const checkDiskSpace = require('check-disk-space') | ||
// ES | ||
import checkDiskSpace from 'check-disk-space' | ||
// CommonJS | ||
const checkDiskSpace = require('check-disk-space').default | ||
// On Windows | ||
@@ -21,2 +25,3 @@ checkDiskSpace('C:/blabla/bla').then((diskSpace) => { | ||
// { | ||
// diskPath: 'C:', | ||
// free: 12345678, | ||
@@ -31,2 +36,3 @@ // size: 98756432 | ||
// { | ||
// diskPath: '/', | ||
// free: 12345678, | ||
@@ -33,0 +39,0 @@ // size: 98756432 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
40
0
4393
19
3
0
1