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

flemish-uri-standard-validator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flemish-uri-standard-validator

npm package to check if a URI meets the requirements of the flemish URI standard for data

  • 1.4.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Flemish URI Standard Validator

Introduction

The Flemish government uses form rules, described in this document, to comply in order to access data resources in a uniform manner via the Web. This document describes how "Uniform Resource Identifiers" (URIs) must be manufactured to identify those resources persistently. This allows underlying systems to evolve while the URI remains unchanged. The form rules do not necessarily apply to URIs of services, but they do apply to data that are accessed via services.

This validator checks whether these form rules are met. The following rules are checked by the validator:

  • Does the URI scheme use the HTTP(S) protocol?
  • Does the URI scheme follow the following structure: {domein}/{type}/{concept}(/{referentie})*
  • Does the {type} of all URIs in the domain and subdomains follow the same strict classification, including at least id, doc and ns?
  • Except when {type} is ns, no fragment identifiers are being used

Installation

Node

npm install
const uriValidator = require('flemish-uri-standard-validator')

Browser

npm run build

The dist/main.js file can then be reused in a Web application via the script tag

FAQs

Package last updated on 03 Apr 2020

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