
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@accuser/ulnjs
Advanced tools
A Unique Learner Number (ULN) is a unique identifier assigned to learners in the United Kingdom. It is used to track and record an individual's learning and qualifications across different educational institutions and training providers.
npm install @accuser/ulnjs
Create a new ULN object from a String value:
const uln = ULN.fromString("0000000042");
Validate a ULN:
if (!ULN.isValid(uln)) {
// ...grumble
};
Require a valid ULN:
class LearnerRegistrationRequest {
#uln;
/**
* @param {string|ULN} uln
*/
constructor(uln) {
// `uln` is not `null` or `undefined`
// `uln` is a valid ULN value
this.#uln = ULN.requireValidULN(uln);
}
}
To clone the package repo and perform unit tests:
git clone https://github.com/accuser/ulnjs.git
cd ulnjs
node run test
The original author of @accuser/ulnjs is Matthew Gibbons.
Copyright 2024 Matthew Gibbons
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Unique Learner Number (ULN) library for JavaScript
We found that @accuser/ulnjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.