Skip to content

Commit

Permalink
URL: Adding a README for the URL Package
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jul 25, 2017
1 parent a80a4df commit b9961a4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/url/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# WordPress URL Package

A collection of utilities to manipulate URLs

## Installation

Install the module

```bash
npm install @wordpress/url --save
```

## Usage

```JS
importaddQueryArgs } from '@wordpress/url';

// Appends arguments to the query string of a given url
const newUrl = addQueryArgs( 'https://google.com', { q: 'test' } ); // https://google.com/?q=test
```

0 comments on commit b9961a4

Please sign in to comment.