Update app and tooling
This commit is contained in:
parent
3046531bdd
commit
e620ec7349
4950 changed files with 2975120 additions and 10 deletions
237
node_modules/os-paths/CHANGELOG.mkd
generated
vendored
Normal file
237
node_modules/os-paths/CHANGELOG.mkd
generated
vendored
Normal file
|
|
@ -0,0 +1,237 @@
|
|||
<!-- markdownlint-disable heading-increment no-duplicate-heading no-inline-html -->
|
||||
<!-- spellchecker:ignore () CICD Deno EditorConfig chglog deps discoverability gitattributes maint markdownlint rivy typeof -->
|
||||
|
||||
# CHANGELOG <br/> [xdg-app-paths](https://github.com/rivy/js.xdg-app-paths)
|
||||
|
||||
---
|
||||
|
||||
## [v4.4.0](https://github.com/rivy/js.xdg-app-paths/compare/v4.3.0...v4.4.0) <small>(2020-12-15)</small>
|
||||
|
||||
#### Changes
|
||||
|
||||
* change ~ normalize all paths and strip any trailing path separators ∾ [`943a0ac`](https://github.com/rivy/js.xdg-app-paths/commit/943a0ac2ba431f1b0d5260e3123e42d5840df556)
|
||||
|
||||
#### Fixes
|
||||
|
||||
* fix examples (restore Node-v6 compatibility) ∾ [`d934170`](https://github.com/rivy/js.xdg-app-paths/commit/d934170ee21c8a2fefcabda9a2d9cc340fa26923)
|
||||
|
||||
#### Documentation
|
||||
|
||||
* docs ~ update README (mention path normalization) ∾ [`b9d1b55`](https://github.com/rivy/js.xdg-app-paths/commit/b9d1b55a103e8e69d81666f4ba1aee1106028f91)
|
||||
* docs ~ refactor example ∾ [`214873f`](https://github.com/rivy/js.xdg-app-paths/commit/214873f970a0118c9fd30c315987118c62b4120e)
|
||||
* docs ~ polish README ∾ [`9d70297`](https://github.com/rivy/js.xdg-app-paths/commit/9d70297981250102d404d3ea7858e857a8116bba)
|
||||
* docs ~ simplify example (removing extra developer deps) ∾ [`2be36d3`](https://github.com/rivy/js.xdg-app-paths/commit/2be36d3c4bb41731f074b1db9365abd4085b0009)
|
||||
|
||||
#### Maintenance
|
||||
|
||||
* maint/**build**: fix package keywords ∾ [`3c06c4a`](https://github.com/rivy/js.xdg-app-paths/commit/3c06c4a60289fa1e426210a9bfbec07f0af31253)
|
||||
* maint/**build**: add CHANGELOG.mkd to distribution file list ∾ [`888775c`](https://github.com/rivy/js.xdg-app-paths/commit/888775cb3bced9207b9535e8e9c1dfc42d05e24b)
|
||||
|
||||
#### Refactoring
|
||||
|
||||
* refactor ~ use common normalizing function for returned paths ∾ [`c56de7a`](https://github.com/rivy/js.xdg-app-paths/commit/c56de7a45164a1b6543245f40ae4dfd13dfe0fe5)
|
||||
|
||||
---
|
||||
|
||||
## [v4.3.0](https://github.com/rivy/js.xdg-app-paths/compare/v4.2.0...v4.3.0) <small>(2020-12-13)</small>
|
||||
|
||||
#### Documentation
|
||||
|
||||
* docs ~ polish README ∾ [`ac1e371`](https://github.com/rivy/js.xdg-app-paths/commit/ac1e371e58b5fb6538134e3726d73e2bb7fc9478)
|
||||
* docs ~ add spell-checker exceptions ∾ [`dce522c`](https://github.com/rivy/js.xdg-app-paths/commit/dce522cd5df9307af582eb87a8d23879cae0a471)
|
||||
* docs ~ README fix and polish ∾ [`43bc088`](https://github.com/rivy/js.xdg-app-paths/commit/43bc088e544a9eed5ae7dea982b64dc55c60a0db)
|
||||
* docs ~ `git-changelog > CHANGELOG.mkd` ∾ [`19520e5`](https://github.com/rivy/js.xdg-app-paths/commit/19520e50c34fed1ff209e1a0de56f295f3a58702)
|
||||
|
||||
#### Maintenance
|
||||
|
||||
* maint/**CICD**: add GitHub Actions (GHA) CI ∾ [`4202298`](https://github.com/rivy/js.xdg-app-paths/commit/4202298cd17f31816415965b26a7dc5a9d23d4c3)
|
||||
* maint/**build**: update eslintrc (and convert to JS file) ∾ [`06e0167`](https://github.com/rivy/js.xdg-app-paths/commit/06e01677f365e38b55dfab5cec11720add36f462)
|
||||
* maint/**build**: add explanation for NPMrc `package-lock=false` ∾ [`ada889c`](https://github.com/rivy/js.xdg-app-paths/commit/ada889cdcb823535ae7c37567d5c5af7988deea2)
|
||||
* maint/**build**: add LICENSE + README to set of distributed files ∾ [`e020a4a`](https://github.com/rivy/js.xdg-app-paths/commit/e020a4a3a61d53be3f7fda3cc8a09ca3494eab88)
|
||||
* maint/**build**: remove ESlint config forcing ESM-type unit.test.js ∾ [`69b155b`](https://github.com/rivy/js.xdg-app-paths/commit/69b155b42d33183451940ed0101410b8790f9d10)
|
||||
* maint/**build**: fix `tsd` complaint (types specification missing from package "files" list) ∾ [`fd87126`](https://github.com/rivy/js.xdg-app-paths/commit/fd871263bf9435d6024b348f3f02561c9180ebfc)
|
||||
* maint/**build**: revise and polish npm scripts (include deps) ∾ [`2b23875`](https://github.com/rivy/js.xdg-app-paths/commit/2b238755789a9a85c0d1119617dd63e499f4090b)
|
||||
* maint/**build**: refactor/reorganize package.json ∾ [`2d6f509`](https://github.com/rivy/js.xdg-app-paths/commit/2d6f509fae07dc4f8554958dfc1402147904f605)
|
||||
* maint/**build**: refine package 'engine' value (best legibility/specificity) ∾ [`be185d0`](https://github.com/rivy/js.xdg-app-paths/commit/be185d0c8170afc7498d81c3ea8b8e9fdaabc46c)
|
||||
* maint/**dev**: npm script polish ∾ [`a7212d5`](https://github.com/rivy/js.xdg-app-paths/commit/a7212d57999935fb4a83a8d3c3835777b1ecf3cd)
|
||||
* maint/**dev**: add Prettier ignore file (to simplify automation) ∾ [`fb7b8c6`](https://github.com/rivy/js.xdg-app-paths/commit/fb7b8c68756f63a6eb2f0a1451e0eec08479c386)
|
||||
* maint/**dev**: add Prettier configuration ∾ [`c5819ed`](https://github.com/rivy/js.xdg-app-paths/commit/c5819ed99252549419796a9234f34fe488e2fbef)
|
||||
* maint/**dev**: add `Prettier` ∾ [`94ffae4`](https://github.com/rivy/js.xdg-app-paths/commit/94ffae4e3021c60a69b14cfc4445c7284421aadd)
|
||||
* maint/**dev**: add notation about `ava` and `nyc` version restrictions with NodeJS-v6 ∾ [`71ed02a`](https://github.com/rivy/js.xdg-app-paths/commit/71ed02adcaac3ea2c76c6f02d90e924650f46c3c)
|
||||
* maint/**dev**: add .history (for VSCode plugin) to ESlint config ignore list ∾ [`039acdb`](https://github.com/rivy/js.xdg-app-paths/commit/039acdbbd48a8ee59f5b70c06d531f8fc8d75970)
|
||||
* maint/**dev**: add `ESLint` (with plugins) ∾ [`3f82e96`](https://github.com/rivy/js.xdg-app-paths/commit/3f82e96d3778bc18a992213d4179207909b310b4)
|
||||
* maint/**dev**: remove `XO` ∾ [`b4db615`](https://github.com/rivy/js.xdg-app-paths/commit/b4db615ecb7006541028e92435024be14b7fe9cb)
|
||||
* maint/**dev**: add .history (for VSCode plugin) to Prettier ignore list ∾ [`e4eff74`](https://github.com/rivy/js.xdg-app-paths/commit/e4eff74cd805002a5b6a27bf57191a3c9d73e286)
|
||||
* maint/**dev**: add VSCode settings (ENABLE auto-format on save) ∾ [`74d2ef5`](https://github.com/rivy/js.xdg-app-paths/commit/74d2ef5da26bd3548c83cf7ee3e684ea32f02c6f)
|
||||
* maint/**dev**: polish package.json format ∾ [`52d4f0c`](https://github.com/rivy/js.xdg-app-paths/commit/52d4f0cdab6d819cfb1f3cd4bd50f82bb272573a)
|
||||
* maint/**dev**: add pre-test and CHANGELOG update to `npm version ...` ∾ [`2553998`](https://github.com/rivy/js.xdg-app-paths/commit/2553998e33ac4feaab6599d09939966acbec6a87)
|
||||
* maint/**dev**: `npm version ...` CHANGELOG update only if `git-changelog` available ∾ [`c6cddab`](https://github.com/rivy/js.xdg-app-paths/commit/c6cddab770e94a02bb08107a5aa93436c32f8f5e)
|
||||
* maint/**dev**: revise gitignore files to include build artifacts ∾ [`95db0d4`](https://github.com/rivy/js.xdg-app-paths/commit/95db0d4ed3f0ab8395f9cf14693302ebc854229c)
|
||||
* maint/**dev**: revise gitattributes ∾ [`dd6647a`](https://github.com/rivy/js.xdg-app-paths/commit/dd6647aeac291a37a92afc8abb5c00dd9294c46d)
|
||||
* maint/**dev**: update EditorConfig (include more file types and commentary) ∾ [`3ae7869`](https://github.com/rivy/js.xdg-app-paths/commit/3ae7869f9958a5fe496f14926e32bb050c187de6)
|
||||
* maint/**dev**: add .history (for VSCode plugin) to .gitignore ∾ [`0251a8b`](https://github.com/rivy/js.xdg-app-paths/commit/0251a8b4c9023ddd6c41f9456dadedb059183377)
|
||||
* maint/**dev**: reconfigure for `git-changelog` (from GH:rivy-go) ∾ [`4f96b41`](https://github.com/rivy/js.xdg-app-paths/commit/4f96b4125df64559bf001f28b09b14a5be4cb2cf)
|
||||
|
||||
#### Refactoring
|
||||
|
||||
* refactor ~ change LICENSE and README file names to UPPERCASE for improved discoverability ∾ [`68904bb`](https://github.com/rivy/js.xdg-app-paths/commit/68904bb8e971600ae72197933cb7371c5e1c2d81)
|
||||
* refactor ~ partition code into 'src' and 'test' directories ∾ [`1f93e19`](https://github.com/rivy/js.xdg-app-paths/commit/1f93e19d486fc53ccb184fec6751ff7aaeba43c0)
|
||||
* refactor/**polish**: fix ESLint complaint ('no-unused-disable') ∾ [`d5b9386`](https://github.com/rivy/js.xdg-app-paths/commit/d5b9386086ee4047b128958ee942d06a021283e9)
|
||||
* refactor/**polish**: `prettier` reformat ∾ [`5680208`](https://github.com/rivy/js.xdg-app-paths/commit/5680208a8d1de76337c11c4eb974c42118a0da51)
|
||||
|
||||
---
|
||||
|
||||
## [v4.2.0](https://github.com/rivy/js.xdg-app-paths/compare/v4.1.0...v4.2.0) <small>(2019-10-17)</small>
|
||||
|
||||
#### Documentation
|
||||
|
||||
* docs ~ polish keywords, comments, and README documentation ∾ [`348d5a7`](https://github.com/rivy/js.xdg-app-paths/commit/348d5a7113957634bfb12f2e02dd6f375e50d77d)
|
||||
|
||||
#### Maintenance
|
||||
|
||||
* maint/**build**: add local coverage and prepublish test scripts ∾ [`7c16178`](https://github.com/rivy/js.xdg-app-paths/commit/7c1617869abfe74b07ad56789e1ea359b57af0b1)
|
||||
|
||||
---
|
||||
|
||||
## [v4.1.0](https://github.com/rivy/js.xdg-app-paths/compare/v4.0.1...v4.1.0) <small>(2019-10-04)</small>
|
||||
|
||||
#### Documentation
|
||||
|
||||
* docs ~ improve README badges ∾ [`a354862`](https://github.com/rivy/js.xdg-app-paths/commit/a3548620a0856d55565d388388fd349bdb47c148)
|
||||
|
||||
#### Maintenance
|
||||
|
||||
* maint/**build**: fix/update dev dependencies ∾ [`de871cb`](https://github.com/rivy/js.xdg-app-paths/commit/de871cb5456609c199a8d3fcd2f94a52f25ead76)
|
||||
|
||||
---
|
||||
|
||||
## [v4.0.1](https://github.com/rivy/js.xdg-app-paths/compare/v4.0.0...v4.0.1) <small>(2019-10-04)</small>
|
||||
|
||||
#### Documentation
|
||||
|
||||
* docs ~ fix CHANGELOG title and URLs ∾ [`5458236`](https://github.com/rivy/js.xdg-app-paths/commit/54582364a6230ad8c667208dc99766e98985a78d)
|
||||
|
||||
#### Maintenance
|
||||
|
||||
* maint/**build**: fix CHANGELOG generator configuration ∾ [`acb315d`](https://github.com/rivy/js.xdg-app-paths/commit/acb315d45e55942b67b2c89d11aef5418d2050c1)
|
||||
|
||||
---
|
||||
|
||||
## [v4.0.0](https://github.com/rivy/js.xdg-app-paths/compare/v3.0.2...v4.0.0) <small>(2019-10-02)</small>
|
||||
|
||||
#### Changes
|
||||
|
||||
* change/**API!**: change module focus to only OS-associated paths, using a method-based API ∾ [`a18b948`](https://github.com/rivy/js.xdg-app-paths/commit/a18b94877d5b8f8030805124be2e5af3b4423332)
|
||||
|
||||
#### Documentation
|
||||
|
||||
* docs ~ add example script ∾ [`43ea4ca`](https://github.com/rivy/js.xdg-app-paths/commit/43ea4cabc5ba9ee04e14d6fce34c8b78defd9063)
|
||||
* docs ~ update README ∾ [`ea09e79`](https://github.com/rivy/js.xdg-app-paths/commit/ea09e7987e47bfbeb15a17508c9b59f31c5e3492)
|
||||
* docs ~ change package description and keywords ∾ [`f993fb9`](https://github.com/rivy/js.xdg-app-paths/commit/f993fb90f7d3bf3b49d2ffbb67319c3c08e416d7)
|
||||
* docs ~ add CHANGELOG ∾ [`d8b964c`](https://github.com/rivy/js.xdg-app-paths/commit/d8b964c6c09477ae200a7d2e81e164d82f31e63d)
|
||||
|
||||
#### Maintenance
|
||||
|
||||
* maint ~ improve linting support for IDEs (using 'eslint') ∾ [`c64ce55`](https://github.com/rivy/js.xdg-app-paths/commit/c64ce55abe3c0e9650b14567df815fecc0c9a380)
|
||||
* maint ~ update EditorConfig configuration for better TAB display ∾ [`15ac24f`](https://github.com/rivy/js.xdg-app-paths/commit/15ac24fda5b3cb743bb91d2dbf2c83686c830653)
|
||||
* maint/**CI**: add AppVeyor CI configuration ∾ [`4f3b933`](https://github.com/rivy/js.xdg-app-paths/commit/4f3b933bf13e8f43f0c75ef46ea5b098281eb5af)
|
||||
* maint/**CI**: add Travis CI configuration ∾ [`0c5dfb7`](https://github.com/rivy/js.xdg-app-paths/commit/0c5dfb7544014e4ae458251b0930a309bb440e5f)
|
||||
* maint/**CI**: add code coverage support and reporting ∾ [`27f5df4`](https://github.com/rivy/js.xdg-app-paths/commit/27f5df44ea4df0b715e40d07479c1448d8065969)
|
||||
* maint/**build**: add tests for correct spelling ∾ [`ab911b1`](https://github.com/rivy/js.xdg-app-paths/commit/ab911b197a205e22b706bf380cf59ba7690c566d)
|
||||
* maint/**build**: refactor testing commands ∾ [`e962f1d`](https://github.com/rivy/js.xdg-app-paths/commit/e962f1d96bbe460237e2048e04bb368733852dd5)
|
||||
* maint/**build**: add CHANGELOG (`git-chglog`) configuration ∾ [`e5bb024`](https://github.com/rivy/js.xdg-app-paths/commit/e5bb024c35bd73918b5469d1b393f38dfd7b0b7c)
|
||||
* maint/**build**: add 'lint' run-script command ∾ [`6d279b8`](https://github.com/rivy/js.xdg-app-paths/commit/6d279b8f9e067c1efe14648f96861f2d417b2016)
|
||||
* maint/**build**: refactor run-scripts to use `npm-run-all` ∾ [`2ca1ddf`](https://github.com/rivy/js.xdg-app-paths/commit/2ca1ddf25073e66d7e5c708d6e4d7e34496511de)
|
||||
* maint/**build**: expand file set for spell checking ∾ [`334683b`](https://github.com/rivy/js.xdg-app-paths/commit/334683bc7ae5e60a36d3e4f26c40c3850f5e14ad)
|
||||
* maint/**build**: gate spell-check to NodeJS >= v8 ∾ [`f737d15`](https://github.com/rivy/js.xdg-app-paths/commit/f737d15b399e9362fd6f18fbb592427f6ccdc0b3)
|
||||
* maint/**build**: refactor run-scripts ∾ [`c453ad7`](https://github.com/rivy/js.xdg-app-paths/commit/c453ad7b5567e7329028bfb0e18e4d9227e93a6f)
|
||||
|
||||
---
|
||||
|
||||
## [v3.0.2](https://github.com/rivy/js.xdg-app-paths/compare/v3.0.1...v3.0.2) <small>(2019-06-29)</small>
|
||||
|
||||
#### Documentation
|
||||
|
||||
* docs ~ polish and add XDG references ∾ [`1696b46`](https://github.com/rivy/js.xdg-app-paths/commit/1696b462d336a047b5041685b4fade914eeebd6a)
|
||||
|
||||
---
|
||||
|
||||
## [v3.0.1](https://github.com/rivy/js.xdg-app-paths/compare/v2.2.0...v3.0.1) <small>(2019-06-29)</small>
|
||||
|
||||
#### Changes
|
||||
|
||||
* add improved XDG support (CONFIG_DIRS and DATA_DIRS) ∾ [`c6a250b`](https://github.com/rivy/js.xdg-app-paths/commit/c6a250bdcb899b83179b2414b9f5607fbf0e29bc)
|
||||
* add cross-platform XDG support (plus comment polish) ∾ [`4d87f8d`](https://github.com/rivy/js.xdg-app-paths/commit/4d87f8d06d39a3c87d8dc49b5b00a720fbcf75e7)
|
||||
* Add note about the user needing to create the actual directories ∾ [`294db55`](https://github.com/rivy/js.xdg-app-paths/commit/294db5514d82a39424b4325d8e59879241174365)
|
||||
|
||||
#### Fixes
|
||||
|
||||
* fix ~ windows 'data' should roam with user ∾ [`a0b2f75`](https://github.com/rivy/js.xdg-app-paths/commit/a0b2f75b9a6ff09a74b2e49899863e844257c885)
|
||||
|
||||
#### Maintenance
|
||||
|
||||
* maint ~ comment polish ∾ [`dab0324`](https://github.com/rivy/js.xdg-app-paths/commit/dab0324f2302eb87a7631044c4a997b935583dcd)
|
||||
* maint ~ add README linting and corrections ∾ [`aaf1e6c`](https://github.com/rivy/js.xdg-app-paths/commit/aaf1e6ca0b7407a095adbf1877b6fd5c85061eac)
|
||||
* maint ~ add spell-checker exceptions ∾ [`bf9d759`](https://github.com/rivy/js.xdg-app-paths/commit/bf9d7595a99f9eae2c8db1e05d504cc912b5baaf)
|
||||
|
||||
#### Refactoring
|
||||
|
||||
* refactor ~ reorganize properties ∾ [`f376e0c`](https://github.com/rivy/js.xdg-app-paths/commit/f376e0c142b303a1313710914490ff521b4b9dd7)
|
||||
|
||||
---
|
||||
|
||||
## [v2.2.0](https://github.com/rivy/js.xdg-app-paths/compare/v2.1.0...v2.2.0) <small>(2019-04-01)</small>
|
||||
|
||||
#### Refactoring
|
||||
|
||||
* Refactor TypeScript definition to CommonJS compatible export ([#12](https://github.com/rivy/js.xdg-app-paths/issues/12)) ∾ [`dacf4e9`](https://github.com/rivy/js.xdg-app-paths/commit/dacf4e91cf27b1dccf5f2341bb2bec766307de0f)
|
||||
|
||||
---
|
||||
|
||||
## [v2.1.0](https://github.com/rivy/js.xdg-app-paths/compare/v2.0.0...v2.1.0) <small>(2019-03-04)</small>
|
||||
|
||||
#### Changes
|
||||
|
||||
* Add TypeScript definition ([#11](https://github.com/rivy/js.xdg-app-paths/issues/11)) ∾ [`949cd22`](https://github.com/rivy/js.xdg-app-paths/commit/949cd224975f15bfeb1fd2d3a2e7ad284d4cbeab)
|
||||
|
||||
---
|
||||
|
||||
## [v2.0.0](https://github.com/rivy/js.xdg-app-paths/compare/v1.0.0...v2.0.0) <small>(2018-11-05)</small>
|
||||
|
||||
*No changelog for this release.*
|
||||
|
||||
---
|
||||
|
||||
## [v1.0.0](https://github.com/rivy/js.xdg-app-paths/compare/v0.3.1...v1.0.0) <small>(2017-01-10)</small>
|
||||
|
||||
#### Fixes
|
||||
|
||||
* Fix incorrect paths on Linux ([#6](https://github.com/rivy/js.xdg-app-paths/issues/6)) ∾ [`3a2ba84`](https://github.com/rivy/js.xdg-app-paths/commit/3a2ba84dc8be3103158225b4f0a3bd36ba9288b6)
|
||||
|
||||
---
|
||||
|
||||
## [v0.3.1](https://github.com/rivy/js.xdg-app-paths/compare/v0.3.0...v0.3.1) <small>(2016-10-18)</small>
|
||||
|
||||
*No changelog for this release.*
|
||||
|
||||
---
|
||||
|
||||
## [v0.3.0](https://github.com/rivy/js.xdg-app-paths/compare/v0.2.0...v0.3.0) <small>(2016-07-02)</small>
|
||||
|
||||
#### Fixes
|
||||
|
||||
* fix usage example ∾ [`88a5908`](https://github.com/rivy/js.xdg-app-paths/commit/88a5908a9409422fa21cab38a4965701f74281fe)
|
||||
|
||||
---
|
||||
|
||||
## [v0.2.0](https://github.com/rivy/js.xdg-app-paths/compare/v0.1.0...v0.2.0) <small>(2016-06-24)</small>
|
||||
|
||||
#### Changes
|
||||
|
||||
* add suffix to prevent possible conflict with native apps ∾ [`c2fda19`](https://github.com/rivy/js.xdg-app-paths/commit/c2fda19d629e56f308c8265506a1baf0c5c7e6dc)
|
||||
|
||||
---
|
||||
|
||||
## v0.1.0 <small>(2016-06-21)</small>
|
||||
|
||||
*No changelog for this release.*
|
||||
10
node_modules/os-paths/LICENSE
generated
vendored
Normal file
10
node_modules/os-paths/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Roy Ivy III <rivy.dev@gmail.com>
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
197
node_modules/os-paths/README.md
generated
vendored
Normal file
197
node_modules/os-paths/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,197 @@
|
|||
<!DOCTYPE markdown><!-- markdownlint-disable no-inline-html -->
|
||||
<meta charset="utf-8" content="text/markdown" lang="en">
|
||||
<!-- -## editors ## (emacs/sublime) -*- coding: utf8-nix; tab-width: 4; mode: markdown; indent-tabs-mode: nil; basic-offset: 2; st-word_wrap: 'true' -*- ## (jEdit) :tabSize=4:indentSize=4:mode=markdown: ## (notepad++) vim:tabstop=4:syntax=markdown:expandtab:smarttab:softtabstop=2 ## modeline (see <https://archive.is/djTUD>@@<http://webcitation.org/66W3EhCAP> ) -->
|
||||
<!-- spell-checker:ignore expandtab markdownlint modeline smarttab softtabstop -->
|
||||
|
||||
<!-- markdownlint-disable heading-increment -->
|
||||
<!-- spell-checker:ignore (names) rivy Sindre sindresorhus Sorhus -->
|
||||
<!-- spell-checker:ignore (abbrev/jargon) CICD -->
|
||||
|
||||
# [os-paths](https://github.com/rivy/js.os-paths)
|
||||
|
||||
> Generate portable common OS paths (home, temp, ...)
|
||||
|
||||
[![Build status][gha-image]][gha-url]
|
||||
[![Build status][travis-image]][travis-url]
|
||||
[![Build status][appveyor-image]][appveyor-url]
|
||||
[![Coverage status][coverage-image]][coverage-url]
|
||||
[![License][license-image]][license-url]
|
||||
[![Style Guide][style-image]][style-url]
|
||||
<br/>
|
||||
[![Repository][repository-image]][repository-url]
|
||||
[![NPM version][npm-image]][npm-url]
|
||||
[![NodeJS version][nodejsv-image]][repository-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
## Installation
|
||||
|
||||
```shell
|
||||
npm install os-paths
|
||||
```
|
||||
|
||||
> #### Requirements
|
||||
>
|
||||
> NodeJS >= 6.0
|
||||
|
||||
<!--{blockquote: .--info style="font-size:75%;"}-->
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const osPaths = require('os-paths');
|
||||
|
||||
osPaths.home();
|
||||
//(*nix) => '/home/rivy'
|
||||
//(win) => 'C:\Users\rivy'
|
||||
|
||||
osPaths.temp();
|
||||
//(*nix) => '/tmp'
|
||||
//(win) => 'C:\Windows\temp'
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Initialization
|
||||
|
||||
#### `require('os-paths'): OSPaths()`
|
||||
|
||||
```js
|
||||
const osPaths = require('os-paths');
|
||||
```
|
||||
|
||||
The object returned by the module constructor is an `OSPaths` function object, augmented with attached methods. When called directly (eg, `const p = osPaths()`), it returns a newly constructed `OSPaths` object. Since the `OSPaths` object contains no instance state, all constructed objects will be functionally identical.
|
||||
|
||||
### Methods
|
||||
|
||||
All module methods return simple, platform-compatible, path strings which are normalized and have no trailing path separators.
|
||||
|
||||
The path strings are _not_ guaranteed to already exist on the file system. So, the user is responsible for directory construction, if/when needed.
|
||||
However, since all of these are _standard_ OS directories, they should all exist without the need for user intervention.
|
||||
|
||||
If/when necessary, [`make-dir`](https://www.npmjs.com/package/make-dir) or [`mkdirp`](https://www.npmjs.com/package/mkdirp) can be used to create the directories.
|
||||
|
||||
#### `osPaths.home(): string`
|
||||
|
||||
Returns the home directory for user
|
||||
|
||||
#### `osPaths.temp(): string`
|
||||
|
||||
Returns the directory for temporary files
|
||||
|
||||
## Discussion
|
||||
|
||||
### XDG
|
||||
|
||||
All XDG-related methods have been relocated to the [`xdg-portable`](https://www.npmjs.com/package/xdg-portable) and [`xdg-app-paths`](https://www.npmjs.com/package/xdg-app-paths) modules.
|
||||
|
||||
## Building and Contributing
|
||||
|
||||
### Build requirements
|
||||
|
||||
- NodeJS >= 6.0
|
||||
- a JavaScript package/project manager ([`npm`](https://www.npmjs.com/get-npm) or [`yarn`](https://yarnpkg.com))
|
||||
|
||||
> #### optional
|
||||
>
|
||||
> - [`git-changelog`](https://github.com/rivy-go/git-changelog) ... enables changelog automation
|
||||
|
||||
### Build/test
|
||||
|
||||
```shell
|
||||
npm install
|
||||
npm test
|
||||
```
|
||||
|
||||
### Project development scripts
|
||||
|
||||
```shell
|
||||
> npm run help
|
||||
...
|
||||
usage: `npm run TARGET [TARGET..]`
|
||||
|
||||
TARGETs:
|
||||
|
||||
coverage calculate and display (or send) code coverage [alias: 'cov']
|
||||
fix fix package issues (automated/non-interactive)
|
||||
fix:lint fix `ESLint` issues
|
||||
fix:style fix `Prettier` formatting issues
|
||||
help display help
|
||||
lint check for package code 'lint'
|
||||
lint:lint check for code 'lint' (using `ESLint`)
|
||||
lint:spell check for spelling errors (using `cSpell`)
|
||||
lint:style check for format imperfections (using `Prettier`)
|
||||
lint:types check for type declaration errors (using `tsd`)
|
||||
test test package
|
||||
test:code test package code
|
||||
update:changelog update CHANGELOG (using `git changelog ...`)
|
||||
```
|
||||
|
||||
### Contributions
|
||||
|
||||
Contributions are welcome.
|
||||
|
||||
Any pull requests should be based off of the default branch (`master`). And, whenever possible, please include tests for any new code, ensuring that local (via `npm test`) and remote CI testing passes.
|
||||
|
||||
By contributing to the project, you are agreeing to provide your contributions under the same [license](./LICENSE) as the project itself.
|
||||
|
||||
## Related
|
||||
|
||||
- [`xdg-app-paths`](https://www.npmjs.com/package/xdg-app-paths) ... easy XDG for applications
|
||||
- [`xdg-portable`](https://www.npmjs.com/package/xdg-portable) ... XDG Base Directory paths (cross-platform)
|
||||
|
||||
## License
|
||||
|
||||
[MIT](./LICENSE) © [Roy Ivy III](https://github.com/rivy), [Sindre Sorhus](https://sindresorhus.com)
|
||||
|
||||
<!-- badge references -->
|
||||
|
||||
<!-- Repository -->
|
||||
<!-- Note: for '[repository-image] ...', `%E2%81%A3` == utf-8 sequence of "Unicode Character 'INVISIBLE SEPARATOR' (U+2063)"; ref: <https://codepoints.net/U+2063> -->
|
||||
|
||||
[repository-image]: https://img.shields.io/github/v/tag/rivy/js.os-paths?label=%E2%81%A3&logo=github&logoColor=white
|
||||
[repository-url]: https://github.com/rivy/js.os-paths
|
||||
[license-image]: https://img.shields.io/npm/l/os-paths.svg?color=royalblue&style=flat
|
||||
[license-url]: license
|
||||
[nodejsv-image]: https://img.shields.io/node/v/os-paths?color=blue
|
||||
[style-image]: https://img.shields.io/badge/code_style-prettier-mediumvioletred.svg
|
||||
[style-url]: https://prettier.io
|
||||
|
||||
<!-- Continuous integration/deployment (CICD) -->
|
||||
|
||||
[appveyor-image]: https://img.shields.io/appveyor/ci/rivy/js-os-paths/master.svg?style=flat&logo=AppVeyor&logoColor=deepskyblue
|
||||
[appveyor-url]: https://ci.appveyor.com/project/rivy/js-os-paths
|
||||
[gha-image]: https://img.shields.io/github/workflow/status/rivy/js.os-paths/CI?label=CI&logo=github
|
||||
[gha-url]: https://github.com/rivy/js.os-paths/actions?query=workflow%3ACI
|
||||
[travis-image]: https://img.shields.io/travis/rivy/js.os-paths/master.svg?style=flat&logo=travis
|
||||
[travis-url]: https://travis-ci.org/rivy/js.os-paths
|
||||
|
||||
<!-- Code quality -->
|
||||
|
||||
[coverage-image]: https://img.shields.io/codecov/c/github/rivy/js.os-paths/master.svg
|
||||
[coverage-url]: https://codecov.io/gh/rivy/js.os-paths
|
||||
|
||||
<!-- Distributors/Registries -->
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/os-paths.svg?style=flat
|
||||
[npm-url]: https://npmjs.org/package/os-paths
|
||||
[downloads-image]: http://img.shields.io/npm/dm/os-paths.svg?style=flat
|
||||
[downloads-url]: https://npmjs.org/package/os-paths
|
||||
|
||||
<!-- Alternate/Old image/URL links -->
|
||||
|
||||
<!-- [appveyor-image]: https://ci.appveyor.com/api/projects/status/.../branch/master?svg=true -->
|
||||
<!-- [coverage-image]: https://img.shields.io/coveralls/github/rivy/os-paths/master.svg -->
|
||||
<!-- [coverage-url]: https://coveralls.io/github/rivy/os-paths -->
|
||||
<!-- [node-image]: https://img.shields.io/node/v/os-paths.svg?style=flat&color=darkcyan -->
|
||||
<!-- [node-url]: https://npmjs.org/package/os-paths -->
|
||||
<!-- [npm-image]: https://img.shields.io/npm/v/os-paths.svg?style=flat -->
|
||||
<!-- [npm-image]: https://img.shields.io/npm/v/os-paths.svg?style=flat&label=npm&logo=NPM&logoColor=linen -->
|
||||
<!-- [npm-url]: https://npmjs.org/package/os-paths -->
|
||||
<!-- [repository-image]:https://img.shields.io/badge/%E2%9D%A4-darkcyan?style=flat&logo=github -->
|
||||
<!-- [repository-image]:https://img.shields.io/github/v/tag/rivy/js.os-paths?label=%e2%80%8b&logo=github&logoColor=white&colorA=gray&logoWidth=15 -->
|
||||
<!-- [style-image]: https://img.shields.io/badge/code_style-XO-darkcyan.svg -->
|
||||
<!-- [style-image]: https://img.shields.io/badge/code_style-standard-darkcyan.svg -->
|
||||
<!-- [style-url]: https://github.com/xojs/xo -->
|
||||
<!-- [style-url]: https://standardjs.com -->
|
||||
<!-- [travis-image]: https://img.shields.io/travis/rivy/js.os-paths/master.svg?style=flat&logo=Travis-CI&logoColor=silver -->
|
||||
<!-- [travis-image]: https://travis-ci.org/rivy/js.os-paths.svg?branch=master -->
|
||||
130
node_modules/os-paths/package.json
generated
vendored
Normal file
130
node_modules/os-paths/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
{
|
||||
"name": "os-paths",
|
||||
"version": "4.4.0",
|
||||
"description": "Generate portable common OS paths (home, temp, ...)",
|
||||
"license": "MIT",
|
||||
"repository": "rivy/js.os-paths",
|
||||
"author": {
|
||||
"name": "Roy Ivy III",
|
||||
"email": "rivy.dev@gmail.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6.0"
|
||||
},
|
||||
"files": [
|
||||
"src/**/*",
|
||||
"CHANGELOG.mkd",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
],
|
||||
"main": "src/lib/index.js",
|
||||
"types": "src/lib/index.d.ts",
|
||||
"keywords": [
|
||||
"common",
|
||||
"cross-platform",
|
||||
"directory",
|
||||
"environment",
|
||||
"linux",
|
||||
"mac",
|
||||
"macos",
|
||||
"node6",
|
||||
"osx",
|
||||
"path",
|
||||
"paths",
|
||||
"portable",
|
||||
"unix",
|
||||
"windows"
|
||||
],
|
||||
"scripts": {
|
||||
"# coverage # calcuate and display (or send) code coverage [alias: 'cov']": "",
|
||||
"coverage": "run-s --silent _:max-node-8 && echo-cli \"[coverage] WARN Code coverage skipped [for NodeJS < v10]\" 1>&2 || run-s _:coverage",
|
||||
"cov": "run-s coverage",
|
||||
"cov:html": "nyc report --reporter=html",
|
||||
"cov:send": "nyc report --reporter=text-lcov | codecov --disable=gcov --pipe",
|
||||
"cov:text": "nyc report",
|
||||
"cov:view": "run-s cov:html && cd coverage && open-cli index.html",
|
||||
"# fix # fix package issues (automated/non-interactive)": "",
|
||||
"fix": "run-s fix:*",
|
||||
"# fix:lint # fix `ESLint` issues": "",
|
||||
"fix:lint": "eslint . --fix",
|
||||
"# fix:style # fix `Prettier` formatting issues": "",
|
||||
"fix:style": "prettier . --write",
|
||||
"# help # display help": "",
|
||||
"help": "< package.json node -e \"s = {p:'',e:'npm'}; if (new String(process.env.npm_execpath).match(/yarn.js$/)) { s = {p:'\\n',e:'yarn'}; }; console.log('%susage: \\`%s run TARGET [TARGET..]\\`\\n\\nTARGETs:\\n', s.p, s.e); re = /^.*?\\x22(?:\\W+\\s*)([^#\\x22]+)\\s+#+\\s+([^#\\x22]+?)(\\s+#+)?\\x22.*$/; require('readline').createInterface({ input: process.stdin, output: process.stdout, terminal: false }).on('line', function(line){ if (match = re.exec(line)) { console.log('%s %s', match[1].padEnd(19), match[2]); } });\"",
|
||||
"# lint # check for package code 'lint'": "",
|
||||
"lint": "run-s --silent _:max-node-8 && echo-cli \"[lint] WARN Lint checks skipped [for NodeJS < v10]\" 1>&2 || run-p lint:*",
|
||||
"# lint:lint # check for code 'lint' (using `ESLint`)": "",
|
||||
"lint:lint": "eslint .",
|
||||
"# lint:spell # check for spelling errors (using `cSpell`)": "",
|
||||
"lint:spell": "cspell {eg,examples,src,test}/**/* CHANGELOG{,.md,.mkd} README{,.md,.mkd} --no-summary",
|
||||
"# lint:style # check for format imperfections (using `Prettier`)": "",
|
||||
"lint:style": "prettier . --list-different",
|
||||
"# lint:types # check for type declaration errors (using `tsd`)": "",
|
||||
"lint:types": "tsd",
|
||||
"# test # test package": "",
|
||||
"test": "run-s lint && run-p test:*",
|
||||
"# test:code # test package code": "",
|
||||
"test:code": "nyc --silent ava",
|
||||
"# update:changelog # update CHANGELOG (using `git changelog ...`)": "",
|
||||
"update:changelog": "run-s --silent _:update:changelog && echo-cli \"[update] info CHANGELOG updated\"",
|
||||
"_:coverage": "is-ci && run-s cov:send || run-s cov:view",
|
||||
"_:exists:git-changelog": "node -e \"if (!require('command-exists').sync('git-changelog')){process.exit(1);};\" || (echo-cli \"WARN `git-changelog` missing (try `go get -u github.com/rivy-go/git-changelog/cmd/git-changelog`)\" & exit 1)",
|
||||
"_:max-node-8": "is-node-not-modern 10",
|
||||
"_:min-node-10": "is-node-modern 10",
|
||||
"_:vcs-clean": "git diff --quiet",
|
||||
"_:vcs-clean-err": "run-s --silent _:vcs-clean || (echo-cli \"[vcs] ERR! Uncommitted changes\" 1>&2 & exit 1)",
|
||||
"_:vcs-strictly-clean": "git status --porcelain | node -e \"process.stdin.on('data',function(_){process.exit(1);});\"",
|
||||
"_:vcs-strictly-clean-err": "run-s --silent _:vcs-strictly-clean || (echo-cli \"[vcs] ERR! Uncommitted changes and/or untracked files\" 1>&2 & exit 1)",
|
||||
"_:update:changelog": "run-s --silent _:exists:git-changelog && git changelog > CHANGELOG.mkd || echo-cli \"[update] info CHANGELOG not updated\" 1>&2",
|
||||
"_:version:update:changelog": "run-s --silent _:exists:git-changelog && node -e \"v=require('./package.json').version; result=require('child_process').spawnSync('git changelog --next-tag v'+v,{shell:true,encoding:'utf-8'}); if (result.status != 0) {console.error('ERR! '+result.stderr); process.exit(1);} else {require('fs').writeFileSync('CHANGELOG.mkd',result.stdout);};\" || echo-cli \"[version] WARN CHANGELOG not updated\" 1>&2",
|
||||
"prepublishOnly": "run-s update:* test _:vcs-strictly-clean-err",
|
||||
"preversion": "run-s test",
|
||||
"version": "run-s _:version:update:changelog lint:spell && git add CHANGELOG.mkd"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies:#": "* for testing, Node-v6 requires ava < v2 and nyc < v15",
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"codecov": "^3.5.0",
|
||||
"command-exists": "^1.2.9",
|
||||
"coveralls": "^3.0.5",
|
||||
"cross-spawn": "^6.0.5",
|
||||
"cspell": "^4.1.2",
|
||||
"echo-cli": "^1.0.8",
|
||||
"eslint": "^7.11.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
||||
"eslint-plugin-import": "^2.22.0",
|
||||
"is-ci": "^2.0.0",
|
||||
"is-node-modern": "^1.0.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"nyc": "^14.1.1",
|
||||
"open-cli": "^6.0.1",
|
||||
"prettier": "^2.1.1",
|
||||
"tsd": "^0.13.1"
|
||||
},
|
||||
"optionalDependencies": {},
|
||||
"prettier # overrides/[*.markdown]/tabWidth": "// set to 4 when https://github.com/prettier/prettier/issues/5019 is fixed",
|
||||
"prettier": {
|
||||
"printWidth": 100,
|
||||
"singleQuote": true,
|
||||
"useTabs": true,
|
||||
"tabWidth": 2,
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.md",
|
||||
"*.mkd",
|
||||
"*.markdown"
|
||||
],
|
||||
"options": {
|
||||
"tabWidth": 2,
|
||||
"useTabs": false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tsd": {
|
||||
"directory": "test"
|
||||
}
|
||||
}
|
||||
7
node_modules/os-paths/src/lib/index.d.ts
generated
vendored
Normal file
7
node_modules/os-paths/src/lib/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// # spell-checker:ignore rivy
|
||||
declare namespace OSPaths {
|
||||
function home(): string;
|
||||
function temp(): string;
|
||||
}
|
||||
declare function OSPaths(): typeof OSPaths;
|
||||
export = OSPaths;
|
||||
68
node_modules/os-paths/src/lib/index.js
generated
vendored
Normal file
68
node_modules/os-paths/src/lib/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
/* eslint-env es6, node */
|
||||
// # spell-checker:ignore HomeDrive HomePath LocalAppData UserProfile WinDir
|
||||
'use strict';
|
||||
|
||||
const os = require('os');
|
||||
const paths = require('path');
|
||||
|
||||
const isWinOS = /^win/i.test(process.platform);
|
||||
|
||||
function normalize_path(path) {
|
||||
return paths.normalize(paths.join(path, '.'));
|
||||
}
|
||||
|
||||
const base = () => {
|
||||
const { env } = process;
|
||||
|
||||
const object = {};
|
||||
|
||||
object.home = () => normalize_path(os.homedir ? os.homedir() : env.HOME);
|
||||
|
||||
object.temp = () => normalize_path(os.tmpdir ? os.tmpdir() : env.TMPDIR || env.TEMP || env.TMP);
|
||||
|
||||
return object;
|
||||
};
|
||||
|
||||
const windows = () => {
|
||||
const { env } = process;
|
||||
|
||||
const object = {};
|
||||
|
||||
object.home = () =>
|
||||
normalize_path(
|
||||
os.homedir
|
||||
? os.homedir()
|
||||
: env.USERPROFILE || paths.join(env.HOMEDRIVE, env.HOMEPATH) || env.HOME
|
||||
);
|
||||
|
||||
object.temp = () =>
|
||||
normalize_path(
|
||||
os.tmpdir
|
||||
? os.tmpdir()
|
||||
: env.TEMP ||
|
||||
env.TMP ||
|
||||
paths.join(env.LOCALAPPDATA || env.SystemRoot || env.windir, 'Temp')
|
||||
);
|
||||
|
||||
return object;
|
||||
};
|
||||
|
||||
class _OSPaths {
|
||||
constructor() {
|
||||
const OSPaths = function () {
|
||||
return new _OSPaths();
|
||||
};
|
||||
|
||||
this._fn = OSPaths;
|
||||
|
||||
// Connect to platform-specific API functions by extension
|
||||
const extension = isWinOS ? windows() : base();
|
||||
Object.keys(extension).forEach((key) => {
|
||||
this._fn[key] = extension[key];
|
||||
});
|
||||
|
||||
return this._fn;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new _OSPaths();
|
||||
Loading…
Add table
Add a link
Reference in a new issue