Socket
Socket
Sign inDemoInstall

@gemeentenijmegen/utils

Package Overview
Dependencies
2
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @gemeentenijmegen/utils

A library of utilities used by the municipality of Nijmegen.


Version published
Weekly downloads
304
decreased by-22.84%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

Nijmegen Utils

A library of utilities used by the municipality of Nijmegen.

Available utilities:

  • BSN validator
  • AWS utilities

BSN

A convenience class wrapping a BSN-number. It validates them on creation, ensuring that further use of the BSN is safe. Useage:

const { Bsn } = require('@gemeentenijmegen/utils');

try {
    const myBsn = new Bsn('999996708');
    doSomethingWith(myBsn.bsn);
} catch (err) {
    console.error('The BSN wasn't valid');
}

AWS

A utility with two methods getParameter(name: string) and getSecret(arn: string) for fetching parameters and secret strings from the parameter store or secret manager. Both functions return a promise.

const { AWS } = require('@gemeentenijmegen/utils');
const param = await AWS.getParameter('/cdk/path/to/ssm/param/');
const secret = await AWS.getSecret('/cdk/path/to/secrets/manager/secret');

FAQs

Last updated on 08 Feb 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc