Add "meta" query param

This commit is contained in:
MICHAEL JACKSON
2017-08-10 23:12:22 -07:00
parent 5d726d6864
commit de18c52eef
4 changed files with 34 additions and 27 deletions

View File

@ -39,12 +39,12 @@ Append a `/` at the end of a URL to view a listing of all the files in a package
<tr>
<td>`main`</td>
<td>`unpkg`, `browser`, `main`</td>
<td>The name of the field in [package.json](https://docs.npmjs.com/files/package.json) to use as the main entry point when there is no file path in the URL.</td>
<td>The name of the field in [package.json](https://docs.npmjs.com/files/package.json) to use as the main entry point when there is no file path in the URL</td>
</tr>
<tr>
<td>`json`</td>
<td>`meta`</td>
<td>`undefined`</td>
<td>Return a recursive list of metadata about all the files in a directory as JSON (e.g. `/any/path/?json`). Note: this only works for directories.</td>
<td>Return metadata about a file in a package as JSON (e.g. `/any/file?meta`)</td>
</tr>
</tbody>
</table>