@abcnews/url2cmid

Extracts the ID from an ABC News URL.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
26Jun 12, 2021Aug 30, 2017Minified + gzip package size for @abcnews/url2cmid in KB

Readme

url2cmid

Extracts the ID from an ABC News URL.

Usage

npm install @abcnews/url2cmid

And then…

import url2cmid from '@abcnews/url2cmid';
const cmid = url2cmid('http://www.abc.net.au/news/2017-06-09/quiz/8602590');
// returns '8602590'

Development

This module is written in typescript, uses tsdx for build/dev and np for deployment.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.