This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@valueadd/typed-urls
TypeScript icon, indicating that this package has built-in type declarations

5.0.1 • Public • Published

@valueadd/typed-urls

version downloads

An utility package for creating typed url addresses

Installation

npm install --save-dev @valueadd/typed-urls

Usage

Based on provided value urlFactory will indicate whether any params are expected. It will throw an error in case they are.

import { urlFactory } from '@valueadd/typed-urls';

const url = urlFactory('http://api-domain/users/:id');

console.log(url.url({ id: '1234' }));

Readme

Keywords

none

Package Sidebar

Install

npm i @valueadd/typed-urls

Weekly Downloads

83

Version

5.0.1

License

MIT

Unpacked Size

15.5 kB

Total Files

30

Last publish

Collaborators

  • krzysztofskorupkadev
  • matelener
  • mateusz-dobrowolski-va
  • mateusz.stefanczyk
  • mateuszbasinski-va
  • michal-valueadd
  • sikora00
  • va-admin
  • valueadd-robot