-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f321bde
commit f78cb4a
Showing
3 changed files
with
108 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ | |
"description": "A lightweight JavaScript library to manipulate the page url.", | ||
"main": "lib/index.js", | ||
"directories": { | ||
"example": "example" | ||
"example": "example", | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"test": "node test", | ||
|
@@ -16,14 +17,14 @@ | |
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jillix/url.js.git" | ||
"url": "git+https://github.com/jillix/url.js.git" | ||
}, | ||
"keywords": [ | ||
"url", | ||
"manipulate", | ||
"browser" | ||
], | ||
"author": "jillix <[email protected]>", | ||
"author": "jillix <[email protected]> (http://jillix.com)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/jillix/url.js/issues" | ||
|
@@ -33,5 +34,52 @@ | |
"ghosty": "^1.1.0", | ||
"lien": "0.0.15", | ||
"tester": "^1.3.0" | ||
}, | ||
"blah": { | ||
"title": "url.js", | ||
"description": [ | ||
{ | ||
"h2": "Demo" | ||
}, | ||
{ | ||
"p": "Browse the demos on http://jillix.github.io/url.js/" | ||
}, | ||
{ | ||
"p": "[![](http://i.imgur.com/BYxaxU1.png)](http://jillix.github.io/url.js/)" | ||
}, | ||
{ | ||
"h2": "CDN" | ||
}, | ||
{ | ||
"p": "The library is available on [CDNJS](https://cdnjs.com/libraries/urljs) as well. To use it, just do:" | ||
}, | ||
{ | ||
"code": { | ||
"language": "html", | ||
"content": "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/urljs/1.2.0/url.min.js\"></script>" | ||
} | ||
}, | ||
{ | ||
"h2": "Usage" | ||
}, | ||
{ | ||
"code": { | ||
"language": "html", | ||
"content": [ | ||
"<script src=\"path/to/url.js\"></script>", | ||
"<!-- or use the cdn", | ||
"<script src=\"https://cdnjs.cloudflare.com/ajax/libs/urljs/1.2.0/url.min.js\"></script>", | ||
"-->", | ||
"<script>", | ||
" Url.updateSearchParam(\"answer\", 42);", | ||
"</script>" | ||
] | ||
} | ||
}, | ||
{ | ||
"h2": "CommonJS-compatible" | ||
}, | ||
{ "p": "The library is CommonJS-compatible. You can `require(\"url.js\")` in your files." } | ||
] | ||
} | ||
} |