Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-call

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-call - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

7

doc/jsdoc2md.json
{
"plugins": ["node_modules/jsdoc-babel"],
"template": "doc/template.hbs",
"source": {
"include": [
"src/http.js"
]
}
"template": "doc/template.hbs"
}

4

package.json
{
"name": "http-call",
"description": "make http requests",
"version": "1.0.8",
"version": "1.0.9",
"author": "Jeff Dickey @dickeyxxx",

@@ -47,3 +47,3 @@ "bugs": "https://github.com/dickeyxxx/http-call/issues",

"copy-flow": "flow-copy-source -v -i '*.test.js' src lib",
"doc": "jsdoc2md -c doc/jsdoc2md.json > README.md",
"doc": "jsdoc2md -c doc/jsdoc2md.json --files src/http.js > README.md",
"prepare": "npm run clean && npm run build && npm run copy-flow",

@@ -50,0 +50,0 @@ "test": "jest && flow && standard",

@@ -0,108 +1,60 @@

## Classes
jsdoc-to-markdown
<dl>
<dt><a href="#HTTP">HTTP</a></dt>
<dd></dd>
</dl>
Generates markdown documentation from jsdoc-annotated source code.
## Functions
Synopsis
<dl>
<dt><a href="#value">value(url, options)</a> ⇒ <code>Promise</code></dt>
<dd><p>make an http GET request</p>
</dd>
</dl>
$ jsdoc2md <jsdoc-options> [<dmd-options>]
$ jsdoc2md <jsdoc-options> --jsdoc
$ jsdoc2md <jsdoc-options> --json
$ jsdoc2md <jsdoc-options> --namepaths
$ jsdoc2md --help
$ jsdoc2md --config
## Typedefs
General options
<dl>
<dt><a href="#RequestOptions">RequestOptions</a> : <code>Object</code></dt>
<dd></dd>
</dl>
Main options affecting mode. If none of the following are supplied, the tool
will generate markdown docs.
<a name="HTTP"></a>
-h, --help Print usage information
--config Print all options supplied (from command line, `.jsdoc2md.json`
or `package.json` under the `jsdoc2md` property) and exit.
Useful for checking the tool is receiving the correct config.
--json Prints the data (jsdoc-parse output) supplied to the template
(dmd).
--jsdoc Prints the raw jsdoc data.
--version
--no-cache By default, repeat invocations against the same input with the
same options returns from cache. This option disables that.
--clear Clears the cache.
## HTTP
**Kind**: global class
<a name="new_HTTP_new"></a>
jsdoc options
### new HTTP()
Utility for simple HTTP calls
Options regarding the input source code, passed directly to jsdoc.
<a name="value"></a>
-f, --files file ... A list of jsdoc explain files (or glob expressions) to
parse for documentation. Either this or --source must
be supplied.
--source string A string containing source code to parse for
documentation. Either this or --files must be
supplied.
-c, --configure file Path to a jsdoc configuration file, passed directly to
`jsdoc -c`.
--html Enable experimental parsing of .html files. When
specified, any configuration supplied via --configure
is ignored.
--namepaths Print namepaths.
## value(url, options) ⇒ <code>Promise</code>
make an http GET request
dmd
**Kind**: global function
These options affect how the markdown output looks.
| Param | Type | Description |
| --- | --- | --- |
| url | <code>string</code> | url or path to call |
| options | <code>[RequestOptions](#RequestOptions)</code> | |
-t, --template <file> A custom handlebars template file to
insert documentation into. The default
template is `{{>main}}`.
--private Include identifiers marked @private in
the output
-d, --heading-depth number Root markdown heading depth, defaults to
2 (##).
--plugin module ... Use an installed package containing
helper and/or partial overrides.
--helper module ... Handlebars helper modules to override or
extend the default set.
--partial file ... Handlebars partial files to override or
extend the default set.
-l, --example-lang string Specifies the default language used in
@example blocks (for syntax-highlighting
purposes). In the default gfm mode, each
@example is wrapped in a fenced-code
block. Example usage: --example-lang js.
Use the special value none for no
specific language. While using this
option, you can override the supplied
language for any @example by specifying
the @lang subtag, e.g @example @lang hbs.
Specifying @example @lang off will
disable code blocks for that example.
--name-format Format identifier names as code
--no-gfm By default, dmd generates github-
flavoured markdown. Not all markdown
parsers render gfm correctly. If your
generated docs look incorrect on sites
other than Github (e.g. npmjs.org) try
enabling this option to disable Github-
specific syntax.
--separators Put <hr> breaks between identifiers.
Improves readability on bulky docs.
-m, --module-index-format string When muliple modules are found in the
input source code, an index is generated.
It can be styled by one of the following
options: none, grouped, table or dl.
-g, --global-index-format string When muliple global-scope identifiers are
found in the input source code, an index
is generated. It can be styled by one of
the following options: none, grouped,
table or dl.
-p, --param-list-format string Two options to render @param lists: list
or table (default). Table format works
well in most cases but switch to list if
things begin to look crowded.
-r, --property-list-format string Two options to render @property lists:
list or table (default).
--member-index-format string Two options to render member lists: list
or grouped (default). The list view is
loosely-based on the nodejs docs.
**Example**
```js
const http = require('http-call')
await http.get('https://google.com')
```
<a name="RequestOptions"></a>
Project repository: https://github.com/jsdoc2md/jsdoc-to-markdown
## RequestOptions : <code>Object</code>
**Kind**: global typedef
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| headers | <code>Object.&lt;string, string&gt;</code> | request headers |
| body | <code>string</code> &#124; <code>Object</code> | request body. Sets content-type to application/json and stringifies when object |
| raw | <code>boolean</code> | do not parse body, instead just return node request object |
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc