Socket
Socket
Sign inDemoInstall

env-paths

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-paths - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

index.d.ts

5

index.js

@@ -49,3 +49,3 @@ 'use strict';

module.exports = (name, options) => {
const envPaths = (name, options) => {
if (typeof name !== 'string') {

@@ -72,1 +72,4 @@ throw new TypeError(`Expected string, got ${typeof name}`);

};
module.exports = envPaths;
module.exports.default = envPaths;

12

package.json
{
"name": "env-paths",
"version": "2.0.0",
"version": "2.1.0",
"description": "Get paths for storing things like data, config, cache, etc",

@@ -16,6 +16,7 @@ "license": "MIT",

"scripts": {
"test": "xo && ava"
"test": "xo && ava && tsd-check"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],

@@ -41,5 +42,6 @@ "keywords": [

"devDependencies": {
"ava": "^0.25.0",
"xo": "^0.23.0"
"ava": "^1.2.1",
"tsd-check": "^0.3.0",
"xo": "^0.24.0"
}
}

@@ -19,2 +19,3 @@ # env-paths [![Build Status](https://travis-ci.org/sindresorhus/env-paths.svg?branch=master)](https://travis-ci.org/sindresorhus/env-paths)

const envPaths = require('env-paths');
const paths = envPaths('MyApp');

@@ -21,0 +22,0 @@

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