@types/parse-author
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Installation

npm install --save @types/parse-author

Summary

This package contains type definitions for parse-author (https://github.com/jonschlinkert/parse-author).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-author.

index.d.ts

/**
 * Parse a string into an object with `name`, `email` and `url` properties following npm conventions.
 *
 * Useful for the `authors` property in package.json or for parsing an AUTHORS file into an array of authors objects.
 */
declare function parse(author: string): parse.Author;

export = parse;

declare namespace parse {
    interface Author {
        name?: string | undefined;
        email?: string | undefined;
        url?: string | undefined;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Remco Haszing.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/parse-author

      Weekly Downloads

      36,289

      Version

      2.0.3

      License

      MIT

      Unpacked Size

      3.51 kB

      Total Files

      5

      Last publish

      Collaborators

      • types