Comparing version 0.1.0 to 0.2.0
16
index.js
@@ -14,6 +14,14 @@ const path = require('path'); | ||
}, | ||
// TODO: add support | ||
win32: {}, | ||
// TODO: add support | ||
linux: {}, | ||
win32: { | ||
user: path.join(process.env.WINDIR, 'Fonts'), | ||
local: path.join(process.env.WINDIR, 'Fonts'), | ||
network: path.join(process.env.WINDIR, 'Fonts'), | ||
system: path.join(process.env.WINDIR, 'Fonts'), | ||
}, | ||
linux: { | ||
user: path.join(os.homedir(), 'share', 'fonts'), | ||
local: path.join(os.homedir(), '.local', 'share', 'fonts'), | ||
network: path.join('/', 'usr', 'share', 'fonts'), | ||
system: path.join('/', 'usr', 'share', 'fonts'), | ||
}, | ||
}; | ||
@@ -20,0 +28,0 @@ |
{ | ||
"name": "os-fonts", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Retrieve fonts available on your OS.", | ||
"keywords": ["fonts", "font", "os", "system"], | ||
"keywords": [ | ||
"fonts", | ||
"font", | ||
"os", | ||
"system" | ||
], | ||
"main": "index.js", | ||
@@ -7,0 +12,0 @@ "scripts": { |
@@ -28,8 +28,10 @@ # os-fonts | ||
Get all fonts. | ||
Returns a `Promise` with all paths to all fonts. | ||
#### useType | ||
Type: 'String' | ||
Type: `String` | ||
Default: `system` | ||
Options: `user`, `local`, `network`, `system` | ||
@@ -41,3 +43,3 @@ | ||
Retrieve all font files in the given directory. | ||
Returns a `Promise` with paths to all fonts in the given directory. | ||
@@ -44,0 +46,0 @@ #### dir |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
4682
56
53
5