application-config-path
Advanced tools
Comparing version 0.1.1 to 1.0.0
@@ -1,3 +0,3 @@ | ||
var os = require('os') | ||
var path = require('path') | ||
import os from 'node:os' | ||
import path from 'node:path' | ||
@@ -24,3 +24,3 @@ function darwin (name) { | ||
function applicationConfigPath (name) { | ||
export default function applicationConfigPath (name) { | ||
if (typeof name !== 'string') { | ||
@@ -40,3 +40,1 @@ throw new TypeError('`name` must be string') | ||
} | ||
module.exports = applicationConfigPath |
{ | ||
"name": "application-config-path", | ||
"version": "0.1.1", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
"author": "Linus Unnebäck <linus@folkdatorn.se>", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/LinusU/node-application-config-path.git" | ||
"repository": "LinusU/node-application-config-path", | ||
"type": "module", | ||
"exports": "./index.js", | ||
"scripts": { | ||
"test": "standard && mocha" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^2.2.5", | ||
"standard": "^5.0.1-0" | ||
"mocha": "^10.2.0", | ||
"standard": "^17.0.0" | ||
}, | ||
"scripts": { | ||
"test": "standard && mocha" | ||
"engines": { | ||
"node": "^14.18.0 || ^16.14.0 || >=18.0.0" | ||
} | ||
} |
/* eslint-env mocha */ | ||
var path = require('path') | ||
var assert = require('assert') | ||
var applicationConfigPath = require('./') | ||
import path from 'node:path' | ||
import assert from 'node:assert' | ||
import applicationConfigPath from './index.js' | ||
describe('application-config-path', function () { | ||
@@ -8,0 +9,0 @@ it('should return an absolute path', function () { |
Sorry, the diff of this file is not supported yet
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3665
6
1
Yes
30
8