Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 2, 2024 via pnpm

doctrine 2.1.0

JSDoc parser
Package summary
Share
0
issues
2
licenses
1
Apache-2.0
1
BSD-2-Clause
Package created
10 May 2012
Version published
6 Jan 2018
Maintainers
5
Total deps
2
Direct deps
1
License
Apache-2.0

Issues

0
This package has no issues

Licenses

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
doctrine@2.1.0

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
esutils@2.0.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of doctrine 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
esutils2.0.39.32 kBBSD-2-Clause
prod

Visualizations

Frequently Asked Questions

What does doctrine do?

Doctrine is a JSDoc parser utilized for analyzing JavaScript documentation comments. Unlike other parsers, Doctrine only needs the comment for examination and does not require the entire JavaScript file. By offering an effective way to parse JSDoc comments, Doctrine helps developers to understand and manage their JavaScript code documentation in a more efficient manner.

How do you use doctrine?

To use Doctrine, you first need to install it using npm with the following command:

$ npm install doctrine --save-dev

Doctrine can also be utilized in web browsers with the help of Browserify.

To use Doctrine in your JavaScript code, you need to require it:

var doctrine = require("doctrine");

The main method for Doctrine is parse(), which accepts a JSDoc comment to parse and optional parameters for customization:

var ast = doctrine.parse(
    [
        "/**",
        " * This function comment is parsed by doctrine",
        " * @param {{ok:String}} userName",
        "*/"
    ].join('\n'), { unwrap: true });

In this code, the 'unwrap' option is set to true, which means that it will remove the leading /**, any * that begins a line, and the trailing */ from the source text.

Where are the doctrine docs?

The Doctrine documentation can be found within the Doctrine GitHub project, which provides a comprehensive understanding of the package. The page contains a host of information, including installation instructions, usage guidelines, and options for customizing the parser. Developers can also check out the demo page at http://eslint.org/doctrine/demo/ for more details. For any additional questions or support, you can join the Doctrine chatroom.