Function
Static Public Summary | ||
public |
cleanStyle(styleStr: string): string Internal function to remove unuseful styles from a |
since 0.4.0 |
public |
collectMedia($: type): Array
|
since 0.4.0 |
Static Private Summary | ||
private |
async fetchAndParse(url: String): $ Internal shorthand for fetching & parsing a general webpage. |
since 0.2.0 |
private |
Don't use. Internal function of NormalizedWeChatArticle. In case you really need it, it proceeds the content cheerio instance. |
since 0.3.0 |
Static Public
public cleanStyle(styleStr: string): string since 0.4.0 source
import {cleanStyle} from 'wearticle/src/lib/style.js'
Internal function to remove unuseful styles from a style
string.
Params:
Name | Type | Attribute | Description |
styleStr | string | Original style string from |
public collectMedia($: type): Array since 0.4.0 source
import {collectMedia} from 'wearticle/src/lib/media.js'
collectMedia
is an internal function used to collect media info. Takes the
raw $
and returns the array you can get by WeChatArticle#getMedia.
Params:
Name | Type | Attribute | Description |
$ | type | Raw |
Static Private
private async fetchAndParse(url: String): $ since 0.2.0 source
import {fetchAndParse} from 'wearticle/src/utils.js'
Internal shorthand for fetching & parsing a general webpage.
Params:
Name | Type | Attribute | Description |
url | String | URL to that page. |
private normalize($: $): $ since 0.3.0 source
import {normalize} from 'wearticle/src/normalize.js'
Don't use. Internal function of NormalizedWeChatArticle.
In case you really need it, it proceeds the content cheerio instance.
Params:
Name | Type | Attribute | Description |
$ | $ |