Skip to content

Commit da06f09

Browse files
committedMay 31, 2019
Tidelift tasks
1 parent f6ecb85 commit da06f09

File tree

3 files changed

+18
-25
lines changed

3 files changed

+18
-25
lines changed
 

‎.github/funding.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: sindresorhus
2+
tidelift: npm/find-cache-dir

‎.github/security.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Security Policy
2+
3+
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.

‎readme.md

+13-25
Original file line numberDiff line numberDiff line change
@@ -41,30 +41,15 @@ findCacheDir({name: 'unicorns'});
4141
```
4242

4343

44-
---
45-
46-
<div align="center">
47-
<b>
48-
<a href="https://tidelift.com/subscription/pkg/npm-find_cache-dir?utm_source=npm-find-cache-dir&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
49-
</b>
50-
<br>
51-
<sub>
52-
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
53-
</sub>
54-
</div>
55-
56-
---
57-
58-
5944
## API
6045

61-
### findCacheDir([options])
46+
### findCacheDir(options?)
6247

6348
Finds the cache directory using the supplied options. The algorithm tries to find a `package.json` file, searching every parent directory of the `cwd` specified (or implied from other options). It returns a `string` containing the absolute path to the cache directory, or `undefined` if `package.json` was never found.
6449

6550
#### options
6651

67-
Type: `Object`
52+
Type: `object`
6853

6954
##### name
7055

@@ -75,7 +60,7 @@ Should be the same as your project name in `package.json`.
7560

7661
##### files
7762

78-
Type: `string[]` `string`
63+
Type: `string[] | string`
7964

8065
An array of files that will be searched for a common parent directory. This common parent directory will be used in lieu of the `cwd` option below.
8166

@@ -126,11 +111,14 @@ This is helpful for actually putting actual files in the cache!
126111
- [`javascripthon-loader`](https://github.com/Beg-in/javascripthon-loader)
127112

128113

129-
## Security
130-
131-
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
132-
133-
134-
## License
114+
---
135115

136-
MIT
116+
<div align="center">
117+
<b>
118+
<a href="https://tidelift.com/subscription/pkg/npm-find_cache-dir?utm_source=npm-find-cache-dir&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
119+
</b>
120+
<br>
121+
<sub>
122+
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
123+
</sub>
124+
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.