Socket
Socket
Sign inDemoInstall

@doctormckay/stdlib

Package Overview
Dependencies
0
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.15.2 to 1.16.0

components/os.js

1

index.js

@@ -10,2 +10,3 @@ const StdLib = module.exports;

StdLib.Objects = require('./components/objects.js');
StdLib.OS = require('./components/os.js');
StdLib.Parsing = require('./components/parsing.js');

@@ -12,0 +13,0 @@ StdLib.Promises = require('./components/promises.js');

2

package.json
{
"name": "@doctormckay/stdlib",
"version": "1.15.2",
"version": "1.16.0",
"author": "Alex Corn <mckay@doctormckay.com>",

@@ -5,0 +5,0 @@ "description": "A \"standard library\" of stuff I find to routinely be useful in Node.js",

@@ -33,2 +33,4 @@ # Standard Library

- [deepEqual](#deepequalobj1-obj2-strict)
- [OS](#os)
- [appDataDirectory](#appdatadirectoryparams)
- [Parsing](#parsing)

@@ -366,2 +368,16 @@ - [orderedArgs](#orderedargsinput)

# OS
```js
const {OS} = require('@doctormckay/stdlib');
```
### appDataDirectory(params)
- `params` - An object
- `appName` - A string containing your app's name
- `appAuthor` - A string containing the name of the author/vendor of your app (only used on Windows)
- `useRoaming` - Optional. `true` to use roaming appdata on Windows (default `false`)
Returns a string containing the path to a directory you can use to store app-specific data.
# Parsing

@@ -368,0 +384,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc