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

check-disk-space

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-disk-space - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

79

package.json
{
"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

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