
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
ndla-licenses
Advanced tools
A simple library for retrieving license information by abbreviation (and locale).
$ npm install ndla-licenses
import getLicenseByAbbreviation from 'ndla-licenses';
const license = getLicenseByAbbreviation('CC-BY-NC-4.0', 'en');
console.log(license);
//> { short: 'Free use', title: 'Attribution-NonCommercial', description: 'This license...', rights: ['by', 'sa'] }
// defaults to Norsk Bokmål (nb)
const license = getLicenseByAbbreviation('CC-BY-NC-4.0', 'unknown-locale');
console.log(license);
//> { short: 'Fri bruk', title: 'Navngivelse-IkkeKommersiell', description: 'Denne lisensen...', rights: ['by', 'sa'] }
// returns abbreviation if license is unknown
const license = getLicenseByAbbreviation('unknown-license', 'en');
console.log(license);
//> { short: 'unknown-license', title: 'unknown-license', description: 'unknown-license', rights: [] }
import { getLicenseRightByAbbreviation, BY, CC } from 'ndla-licenses';
const licenseRight = getLicenseRightByAbbreviation(BY, 'en');
console.log(licenseRight);
//> { short: 'cc', title: 'Copyright', userFriendlyTitle: 'Copyright', description: 'Only the creator can derive...' }
// defaults to Norsk Bokmål (nb)
const licenseRight = getLicenseRightByAbbreviation(CC, 'unknown-locale');
console.log(licenseRight);
//> { short: 'cc', title: 'Copyright', userFriendlyTitle: 'Opphavsrett', description: 'Bare opphavspersonen kan bearbeide...' }
// returns abbreviation if licenseRight is unknown
const licenseRight = getLicenseRightByAbbreviation('unknown-lr', 'en');
console.log(licenseRight);
//> { short: 'unknown-lr', title: 'unknown-lr', userFriendlyTitle: 'unknown-lr', description: 'unknown-lr'}
import React from 'react';
import { BY, SA } from 'ndla-licenses';
import Icon from './Icons';
const LicenseIcon = ({ licenseRight }) => {
switch (licenseRight) {
case BY:
return <Icon.LicenseBy />;
case SA:
return <Icon.LicenseSa />;
default:
return undefined;
}
};
Available constants:
| Exported name | Value | Description |
|---|---|---|
BY | 'by' | Attribution |
SA | 'sa' | Share-alike |
NC | 'nc' | Non-commercial |
ND | 'nd' | No derivative work |
PD | 'pd' | Public Domain |
CC0 | 'cc0' | Public Domain Dedication |
CC | 'cc' | Copyright |
FAQs
A simple library for retrieving license information for NDLA
We found that ndla-licenses demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.