Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@gemeentenijmegen/utils
Advanced tools
A library of utilities used by the municipality of Nijmegen.
A library of utilities used by the municipality of Nijmegen.
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');
}
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');
A way to interact with storage. For now only an 'S3' implementation S3Storage
is available, for working with S3, and S3 compatible API's. It adds methods for storing, copying (between buckets, regions) retrieving and generating presigned URL's.
import 'S3Storage' from '@gemeentenijmegen/utils';
const storage = new S3Storage('bucketname');
storage.store('somekey', 'somevalue');
storage.get('somekey');`
storage.copy('sourcebucket', 'sourcekey', 'destinationbucket', 'destinationkey');
FAQs
A library of utilities used by the municipality of Nijmegen.
The npm package @gemeentenijmegen/utils receives a total of 321 weekly downloads. As such, @gemeentenijmegen/utils popularity was classified as not popular.
We found that @gemeentenijmegen/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.