@abcnews/url2cmid 中文文档教程
url2cmid
从 ABC 新闻 URL 中提取 ID。
Usage
npm install @abcnews/url2cmid
然后……
import url2cmid from '@abcnews/url2cmid';
const cmid = url2cmid('http://www.abc.net.au/news/2017-06-09/quiz/8602590');
// returns '8602590'
Development
这个模块是用 typescript 编写的,使用 tsdx 用于构建/开发,np 用于部署。
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.