DefinitelyTyped/types/parse-passwd/index.d.ts
2018-12-31 08:32:14 -08:00

21 lines
561 B
TypeScript

// Type definitions for parse-passwd 1.0
// Project: https://github.com/doowb/parse-passwd
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = parsePasswd;
declare function parsePasswd(passwdText: string): parsePasswd.PasswdEntry[];
declare namespace parsePasswd {
interface PasswdEntry {
username: string;
password: string;
uid: string;
gid: string;
gecos: string;
homedir: string;
shell: string;
}
}