[Pkg-javascript-commits] [node-stack-utils] 18/67: Update documentation with reverted arguments
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Sep 7 09:53:02 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-stack-utils.
commit bf0b370e125e91dcb495966617fc7c204126faba
Author: James Talmage <james at talmage.io>
Date: Thu Jan 7 15:17:34 2016 -0500
Update documentation with reverted arguments
[skip ci]
---
readme.md | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/readme.md b/readme.md
index 41da283..0f13bed 100644
--- a/readme.md
+++ b/readme.md
@@ -65,33 +65,27 @@ Returns a `string` with the cleaned up stack (always terminated with a `\n` newl
Type: `string` or an `array` of `string`s
-### stackUtils.capture([options])
+### stackUtils.capture([limit], [startStackFunction])
Captures the current stack trace, returning an array of `CallSite`s. There are good overviews of the available CallSite methods [here](https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces), and [here](https://github.com/sindresorhus/callsites#api).
-#### options
-
-##### limit
+#### limit
Type: `number`
Default: `Infinity`
Limits the number of lines returned by dropping all lines in excess of the limit. This removes lines from the stack trace.
-##### startStackFunction
+#### startStackFunction
Type: `function`
The function where the stack trace should start. The first line of the stack trace will be the function that called `startStackFunction`. This removes lines from the end of the stack trace.
-### stackUtils.captureString([options])
-
-Captures the current stack trace, cleans it using `stackUtils.clean(stack)`, and returns a string with the cleaned stack trace.
-
-#### options
+### stackUtils.captureString([limit], [startStackFunction])
-`captureString` has the same available options as `capture`
+Captures the current stack trace, cleans it using `stackUtils.clean(stack)`, and returns a string with the cleaned stack trace. It takes the same arguments as `stackUtils.capture`.
### stackUtils.at([startStackFunction])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stack-utils.git
More information about the Pkg-javascript-commits
mailing list