Have ideas to improve npm?Join in the discussion! »

is-relative-uri
TypeScript icon, indicating that this package has built-in type declarations

3.0.6 • Public • Published

is-relative-uri

Is given string a relative URI?

Install

npm i is-relative-uri

Quick Take

import { strict as assert } from "assert";
import { isRel } from "dist/is-relative-uri.esm";

assert.deepEqual(isRel(".../resource.txt"), {
  res: false,
  message: `Three consecutive dots.`,
});

Documentation

Please visit codsen.com for a full description of the API and examples.

Contributing

To report bugs or request features or assistance, raise an issue on GitHub.

Licence

MIT License

Copyright (c) 2010-2021 Roy Revelt and other contributors

ok codsen star

Install

npm i is-relative-uri

DownloadsWeekly Downloads

47

Version

3.0.6

License

MIT

Unpacked Size

49.8 kB

Total Files

12

Last publish

Collaborators

  • avatar