@doctormckay/stdlib
Advanced tools
Comparing version 1.15.2 to 1.16.0
@@ -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'); |
{ | ||
"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 @@ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
79029
51
1492
477
11