mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Use check-types helper
This commit is contained in:
parent
fb46377e2c
commit
27ebf55bb7
4 changed files with 10 additions and 28 deletions
|
|
@ -7,12 +7,10 @@ import parser from 'fast-xml-parser'
|
|||
import axios from 'axios'
|
||||
import { structuredDataTest } from 'structured-data-testing-tool'
|
||||
import { Google, Twitter } from 'structured-data-testing-tool/presets'
|
||||
// import { isString } from '../helpers/check-types.js'
|
||||
|
||||
require('dotenv').config()
|
||||
|
||||
function isString( maybeString ) {
|
||||
return (typeof maybeString === 'string' || maybeString instanceof String)
|
||||
}
|
||||
|
||||
async function pageContains ( needle, pageUrlString ) {
|
||||
const pageUrlInstance = new URL( pageUrlString )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue