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

@oslo-flanders/core

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oslo-flanders/core

Core interfaces and utilities

  • 0.0.6-alpha.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

OSLO Core

Package that contains the core interfaces, classes and functions that can be used across other packages

Install

npm install @oslo-flanders/Core

Usage

Everything can be imported through named imports from the core packages.

import { XXX } from '@oslo-flanders/core'

Package content

The core package contains general interfaces and utility functions

Interfaces

IConversionService

Interface that must be implemented when creating a new conversion service

IGenerationService

Interface that must be implemented when creating a new generator.

IOutputHandler

Interface that must be implemented when creating a new output handler.

IConfiguration

Interface that must be implemented when creating a new configuration class.

AppRunner

Abstract class that contains the CLI service to start a conversion or generator service.

Utils

Small and easy functions that can be used in other packages

fetchFileOrUrl

Fetches a file or URL and returns a Buffer.

import { fetchFileOrUrl } from '@oslo-flanders/core'

const buffer = fetchFileOrUrl('/path/or/url/to/file');
namespaces

Function that ensures that we don't have to write full URIs anymore. Takes the local identifier as string parameter and returns an RDF.NamedNode:

import { ns } from '@oslo-flanders/core'

const exampleNamedNode = ns.example('test');

// exampleNamedNode.value is equal to 'http://example.org/test'

const rdfType = ns.rdf('type');

// rdfType.value will be 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'
uniqueId

Function that returns random string, with a very low probability that the same string is going to be returned multiple times.

import { uniqueId } from '@oslo-flanders/core'

const id = uniqueId();

FAQs

Package last updated on 19 Feb 2024

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