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

get-system-fonts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-system-fonts - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [2.0.1](https://github.com/princjef/get-system-fonts/compare/v2.0.0...v2.0.1) (2019-04-23)
### Bug Fixes
* **windows:** include fonts installed to local app data on windows ([#4](https://github.com/princjef/get-system-fonts/issues/4)) ([95183eb](https://github.com/princjef/get-system-fonts/commit/95183eb)), closes [#3](https://github.com/princjef/get-system-fonts/issues/3)
# [2.0.0](https://github.com/princjef/get-system-fonts/compare/v1.0.0...v2.0.0) (2018-07-30)

@@ -2,0 +9,0 @@

18

dist/index.js

@@ -8,7 +8,19 @@ "use strict";

win32: () => {
if (process.env.WINDIR) {
return [path.join(process.env.WINDIR, 'Fonts')];
const globalDir = path.join(process.env.WINDIR || 'C:\\Windows', 'Fonts');
const appDataDir = 'Microsoft\\Windows\\Fonts';
let localDir;
if (process.env.LOCALAPPDATA) {
localDir = path.join(process.env.LOCALAPPDATA, appDataDir);
}
else if (process.env.APPDATA) {
localDir = path.join(process.env.APPDATA, 'Local', appDataDir);
}
else if (process.env.USERPROFILE) {
localDir = path.join(process.env.USERPROFILE, 'AppData', 'Local', appDataDir);
}
if (localDir) {
return [globalDir, localDir];
}
else {
return ['C:\\Windows\\Fonts'];
return [globalDir];
}

@@ -15,0 +27,0 @@ },

50

package.json
{
"name": "get-system-fonts",
"version": "2.0.0",
"version": "2.0.1",
"description": "List full paths to all system fonts",

@@ -20,3 +20,2 @@ "homepage": "https://github.com/princjef/get-system-fonts#readme",

"commit": "commit",
"commitmsg": "commitlint -e $GIT_PARAMS",
"lint": "tslint --project tsconfig.json --fix",

@@ -46,23 +45,23 @@ "clean": "rimraf dist",

"devDependencies": {
"@commitlint/cli": "^6.1.3",
"@commitlint/config-conventional": "^6.1.3",
"@commitlint/prompt-cli": "^6.1.3",
"@commitlint/travis-cli": "^6.1.3",
"@semantic-release/changelog": "^2.1.2",
"@semantic-release/git": "^7.0.1",
"@semantic-release/github": "^4.4.2",
"@semantic-release/npm": "^3.4.1",
"@types/node": "^8.10.10",
"@types/sinon": "^4.3.1",
"ava": "^0.25.0",
"codecov": "^3.0.1",
"husky": "^0.14.3",
"nyc": "^11.7.1",
"opener": "^1.4.3",
"rimraf": "^2.6.2",
"semantic-release": "^15.8.1",
"sinon": "^4.5.0",
"tslint": "^5.9.1",
"tslint-config-standard": "^7.0.0",
"typescript": "^2.8.3"
"@commitlint/cli": "^7.5.2",
"@commitlint/config-conventional": "^7.5.0",
"@commitlint/prompt-cli": "^7.5.0",
"@commitlint/travis-cli": "^7.5.2",
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/git": "^7.0.8",
"@semantic-release/github": "^5.2.10",
"@semantic-release/npm": "^5.1.4",
"@types/node": "^8.10.46",
"@types/sinon": "^7.0.11",
"ava": "^1.4.1",
"codecov": "^3.3.0",
"husky": "^1.3.1",
"nyc": "^13.3.0",
"opener": "^1.5.1",
"rimraf": "^2.6.3",
"semantic-release": "^15.13.3",
"sinon": "^7.3.2",
"tslint": "^5.16.0",
"tslint-config-standard": "^8.0.1",
"typescript": "^3.4.4"
},

@@ -114,2 +113,7 @@ "dependencies": {},

},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
},
"release": {

@@ -116,0 +120,0 @@ "verifyConditions": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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