2.0.4 • Published 15 days ago

@teamteanpm2024/amet-voluptate-temporibus v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

GitHub Workflow Status (branch) npm npm npm bundle size GitHub

@teamteanpm2024/amet-voluptate-temporibus

A super lightweight JavaScript / TypeScript library to check whether a given url is valid and exists or not.

Installation

npm install @teamteanpm2024/amet-voluptate-temporibus

Features

A super lightweight library to validate if a given url is valid or not. Some additional features are-

  • less than 1 kb in size
  • additional configuration to validate as per custom requirement
  • supports node.js latest version
  • TypeScript and JavaScript support
  • built on ES6 modules
  • Jest test cases with 100% coverage
  • Promise based result

Usage (TypeScript)

import { linkExists } from '@teamteanpm2024/amet-voluptate-temporibus';

const result = await linkExists('https://stackblogger.com');
console.log(result);
// OUTPUT true

const result = await linkExists('https://some-invalid-url.com');
console.log(result);
// OUTPUT false

const result = await linkExists('stackblogger.com');
console.log(result);
// OUTPUT false

// Configuration
const result = await linkExists('stackblogger.com', { ignoreProtocol: true });
console.log(result);
// OUTPUT true

Usage (JavaScript)

const { linkExists } = require('@teamteanpm2024/amet-voluptate-temporibus');

const result = await linkExists('https://stackblogger.com');
console.log(result);
// OUTPUT true

const result = await linkExists('https://some-invalid-url.com');
console.log(result);
// OUTPUT false

const result = await linkExists('stackblogger.com');
console.log(result);
// OUTPUT false

// Configuration
const result = await linkExists('stackblogger.com', { ignoreProtocol: true });
console.log(result);
// OUTPUT true

License

MIT

ebspackage managerlistenersinputjsonpathcloudfrontpropparentString.prototype.trimratelimitpostcss-pluginemojiObject.fromEntriesxtermArray.prototype.flattenES2017ECMAScript 2018testervalueestreeform-validationautoscalingprunethreefile systemshrinkwrapregexpObject.entrieshttpshttpsharedarraybufferrobustwindowshooksforEachargumentnameregular expressiontrimaccessorfunctioninspectsafetimermes2016letdropduplexgetterclassnamesigintvalidationmetadatabootstrap csscolorsgesturescomparewidthpureRegExp#flagswhichfullwalkECMAScript 2022fspostcssregularUint8ClampedArraywarningtraverseserializerES2022shamyamlrmdirfiletapless.jsasyncvartypedarray-0Object.getPrototypeOfintrinsicRegExp.prototype.flagscloudwatch6to5UnderscoremonorepotestingdescriptordescriptorssyntaxerrorzodECMAScript 2017prototypeES2023takeesqueryoffsetsetterio-tsdataviewObservablesutilsArrayBufferkeysutil.inspectpositivesetregextestarthashparsevalidvalidateruntimeframerbindcodesreducertapetranspileutilitymime-dbshellenumerablees2015eslintpluginmacosjwtcopycompile lessless mixinsutilexpressionmatchesaws__proto__getspectoStringTagstyled-componentsstatelessflagselectronregular expressionslookqssignalstylesrequireconsumeminimalstablepromisesclassesoperating-systemconcatMapflatiechecks3Symbol.toStringTagfindupcjkarraysfiltertrimLeftpicomatchresolveapiwritablewatchreduxstructuredClonebatchtranspilerObservablebabel-corerdseventsredux-toolkitwaitsimpledbchromeexecwalkingbyteOffsetkinesisswfflatMapwebutilitiesdeterministicauthenticationrandomRx256invariantFunction.prototype.nameroute53Int32Arraycall-bindpatchdebuggradients css3ArrayBuffer#sliceawaitObject.istasknpmnodejsdotenvcommandertoobjectJSONjson-schemaconnectscheme-validation
2.0.3

16 days ago

2.0.4

15 days ago

1.0.3

17 days ago

1.0.2

18 days ago

1.0.1

19 days ago

1.0.0

20 days ago