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

os-fonts

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

os-fonts - npm Package Compare versions

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

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