Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@types/oauth-signature
Advanced tools
TypeScript definitions for oauth-signature
npm install --save @types/oauth-signature
This package contains type definitions for oauth-signature (https://github.com/bettiolo/oauth-signature-js).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oauth-signature.
declare namespace OauthSignature {
function generate(
httpMethod: string,
url: string,
parameters: { [key: string]: any },
consumerSecret: string,
tokenSecret?: string,
options?: GenerateOptions,
): string;
interface GenerateOptions {
encodeSignature: boolean;
}
class SignatureBaseString {
constructor(httpMethod: string, url: string, parameters: { [key: string]: any });
generate(): string;
}
class HttpMethodElement {
constructor(httpMethod: string);
get(): string;
}
interface ParsedUrl {
scheme: string;
authority: string;
port: string;
path: string;
}
class UrlElement {
constructor(url: string);
get(): string | undefined | null;
parseInBrowser(): ParsedUrl;
parseInNode(): ParsedUrl;
}
class ParametersElement {
constructor(parameters: { [key: string]: any });
get(): string;
}
class ParametersLoader {
constructor(parameters: { [key: string]: any });
get(): { [key: string]: any };
}
class Rfc3986 {
encode(decoded?: string): string;
decode(encoded?: string): string;
}
class HmacSha1Signature {
constructor(signatureBaseString: string, consumerSecret?: string, tokenSecret?: string);
generate(encode?: boolean): string;
}
class HmacSha1 {
constructor(text?: string, key?: string);
getBase64EncodedHash(): string;
}
}
declare var oauthSignature: typeof OauthSignature;
export as namespace oauthSignature;
export = oauthSignature;
These definitions were written by Sean Coker.
FAQs
TypeScript definitions for oauth-signature
We found that @types/oauth-signature demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.