3.0.8 • Published 5 months ago

rk-anchorme v3.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Anchorme.js

Documentation Getting Started, Documentations, Demos and more

npm npm GitHub release license

Tiny, fast, efficient, feature rich Javascript library to detect links / URLs / Emails in text and convert them to clickable HTML anchor links.

Main features

  • Sensitivity:
    • It's Highly sensitive with the least false positives.
    • It validates URLs and Emails against full IANA list.
    • Validates port numbers (if present).
    • Validates IP octet numbers (if present).
    • Works on non latin alphabets URLs.
  • Robustness:
    • Skips HTML, so it doesn't break your HTML if it had a URL as an attribute for an element, or a link that is already inside an anchor.
    • Links with or without protocols.
    • Works with IPs, FTPs, Emails and files.
    • Can detect parenthesis and quotation marks as part of the URL or as a surrounding to the URL.
    • Easily extensible with your own code (e.g. for hashtags and mentions).
  • Fast: Performance is one of the main things that were kept in mind while writing this library.
    • It's incredibly fast since 99% of all the heavy lifting is based on a single optimized regular expression.
    • Processing H.G. Wells novel, the time machine, took only 2.2 milliseconds on my machine.
    • This library is also a lot faster than other alternatives (linkify & autolinker). Link to benchmark
  • Light Weight: Although it's a feature rich library with a full IANA list included, it's only 9KB when minified and GZipped.

CHANGE

  • Match
acceptsacornacorn-dynamic-importacorn-jsxansi-colorsansi-regexansi-stylesanymatchargargparseasyncasync-each-seriesasynckitaxiosbalanced-matchbase64idbatchbinary-extensionsbrace-expansionbracesbrowser-stdoutbrowser-syncbrowser-sync-clientbrowser-sync-uibs-recipesbublebuffer-frombytescamelcasechalkcliuicolor-convertcolor-namecombined-streamcommandercommondirconcat-mapconnectconnect-history-api-fallbackconnect-loggercookiecorsdebugdecamelizedelayed-streamdepddestroydev-ipdiffdiff-sequenceseasy-extendereazy-loggeree-firstemoji-regexencodeurlengine.ioengine.io-clientengine.io-parserescaladeescape-htmlescape-string-regexpestree-walkeretageventemitter3fill-rangefinalhandlerfind-upflatfollow-redirectsform-datafreshfs-extrafs.realpathfseventsfunction-bindget-caller-fileglobglob-parentgraceful-fshashas-flaghehttp-errorshttp-proxyiconv-liteimmutableinflightinheritsis-binary-pathis-core-moduleis-extglobis-fullwidth-code-pointis-globis-numberis-number-likeis-plain-objis-referenceis-unicode-supportedis-wsljest-diffjest-get-typejest-matcher-utilsjest-message-utiljest-regex-utiljs-tokensjs-yamljsescjsonfilelimiterlocaltunnellocate-pathlodashlodash.isfinitelog-symbolsmagic-stringmake-errormicromatchmimemime-dbmime-typesminimatchminimistmittmomentmsnegotiatornormalize-pathobject-assignon-finishedonceopenurlopnp-limitp-locateparseurlpath-existspath-is-absolutepath-parsepicomatchportscannerpretty-formatrandombytesrange-parserraw-bodyreact-isreaddirpregenerateregenerate-unicode-propertiesregexpu-coreregjsgenregjsparserrequire-directoryrequires-portresolveresp-modifierrxsafe-buffersafer-buffersendserialize-javascriptserve-indexserve-staticserver-destroysetprototypeofslashsocket.iosocket.io-adaptersocket.io-clientsocket.io-parsersource-mapsource-map-supportsourcemap-codecstack-utilsstatusesstream-throttlestring-widthstrip-ansistrip-json-commentssupports-colorsupports-preserve-symlinks-flagto-regex-rangetoidentifiertr46ua-parser-jsunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptuniversalifyunpipeutils-mergevarywebidl-conversionswhatwg-urlworkerpoolwrap-ansiwrappywsxmlhttprequest-ssly18nyargsyargs-parseryargs-unparserynyocto-queue
3.0.8

5 months ago