New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

honcode-certification-utils

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

honcode-certification-utils

HONcode certification utils functions

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
3
Weekly downloads
 
Created
Source

HONcode Certification Utils

Build Status Coverage Status Dependency Status NPM version

HONcode Certification Utils as NPM module

Usage

$ npm install honcode-certification-utils --save

Then you can require('honcode-certification-utils').

var HONcodeUtils = require('honcode-certification-utils');

HONcodeUtils.formatUrl('https://www.hon.ch/');
//=> 'hon.ch/'
HONcodeUtils.buildUrlToCheck('hon.ch/20-years/en/tools.html');
//=> [ 'hon.ch/20-years/en/', 'hon.ch/20-years/', 'hon.ch/' ]
HONcodeUtils.isValidUrl('https://');
//=> false
HONcodeUtils.isValidUrl('http://www.hon.ch');
//=> true
HONcodeUtils.addTrailingSlash('http://www.hon.ch');
//=> 'http://www.hon.ch/'
HONcodeUtils.addTrailingSlash('https://www.hon.ch/20-years');
//=> 'https://www.hon.ch/20-years/'

API

.addTrailingSlash(url)

Type: function

Add a trailing slash to a url if necessary.

.buildUrlToCheck(url)

Type: function

Return a list of urls to check in the HONcode MD5 list.

.formatUrl(url)

Type: function

Remove protocol (http:// or https://) and subdomain www from a url string.

.isValidUrl(str)

Type: function

Return true if the url is valid.

See Also

Contributing to HONcode Certification Utils

Contributions are always welcome, no matter how large or small.

See Contributing.

Developer

  • William BELLE

License

Apache License 2.0

Keywords

FAQs

Package last updated on 21 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc