@types/original

  • Version 1.0.3
  • Published
  • 3.62 kB
  • No dependencies
  • MIT license

Install

npm i @types/original
yarn add @types/original
pnpm add @types/original

Overview

TypeScript definitions for original

Index

Functions

function origin

origin: typeof origin;
  • Transform an URL to a valid origin value.

    Parameter url

    URL to transform to it's origin.

    Returns

    The origin. public

function same

same: (a: string, b: string) => boolean;
  • Check if the origins are the same.

    Parameter a

    URL or origin of a.

    Parameter b

    URL or origin of b.

    Returns

    true if origins are the same, false otherwise public

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (0)

No dev dependencies.

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/original.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/original)
  • HTML
    <a href="https://www.jsdocs.io/package/@types/original"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>