https://github.com/azer/title-from-url
Generate a title from given URL
https://github.com/azer/title-from-url
Last synced: 12 months ago
JSON representation
Generate a title from given URL
- Host: GitHub
- URL: https://github.com/azer/title-from-url
- Owner: azer
- Created: 2014-11-23T11:33:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-11-03T23:30:01.000Z (over 7 years ago)
- Last Synced: 2025-05-17T14:54:47.443Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## title-from-url
Generate a title from given URL
## Install
```bash
$ npm install title-from-url
```
## Usage
```js
var title = require('title-from-url')
title('http://wikipedia.org')
// => Wikipedia
title('https://encrypted.google.com/search?q=foo&bar=qux')
// => Search (q:foo, bar:qux) @ Encrypted, Google
```
see `test.js` for more info.