🚀 DAY 4 OF LAUNCH WEEK: Introducing GitHub Actions Scanning Support.Learn more →
Socket
Book a DemoInstallSign in
Socket

@kth/furano-npm

Package Overview
Dependencies
Maintainers
6
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kth/furano-npm

Usability package for furano

latest
npmnpm
Version
1.0.12
Version published
Maintainers
6
Created
Source

furano-npm Continous Integration

An npm package for usage with a json validation service. In KTHs case that's a project called furano.

How to use

  • Add furano-npm to your package.json

  • Call using:

const furano-npm = require('furano-npm')

furano-npm.validate('app/schema', {'my': 'data'})
    .then(result => console.log(`Validation was: ${result.valid} with optional error ${result.error}`))
    .catch(err => console.log(`Caught error: ${err}`));

  When a bad schema path is passed, an error should be returned.

    âś” An error message was found in the return object.

  When a json is unvalid, mark as unvalid and add an error message.

    âś” Marked as invalid.
    âś” An error message was found in the return object.

  When a json is valid, mark as valid and set error message to 'null'

    âś” Marked as valid
    âś” No error message is added.

FAQs

Package last updated on 13 Dec 2022

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