
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@iiif/presentation-2
Advanced tools
A set of types that describe the format of the IIIF Presentation 2.1.1 specification as accurately as possible. Types are also available for [IIIF Presentation 3](https://github.com/IIIF-Commons/presentation-3-types)
A set of types that describe the format of the IIIF Presentation 2.1.1 specification as accurately as possible. Types are also available for IIIF Presentation 3
Installation:
$ npm i @iiif/presentation-2
Installation (yarn):
$ yarn add @iiif/presentation-2
Usage (Typescript):
import { Manifest } from '@iiif/presentation-2';
const manifest = getManifestFromSomewhere() as Manifest;
function doSomethingWithManifest(manifest: Manifest) {
// ...
}
Usage (Javascript):
/**
* @typedef { import("@iiif/presentation-2").Manifest } Manifest
*/
/**
* @type {Manifest}
*/
const manifest = {};
/**
* @param manifest {Manifest}
*/
function doSomethingWithManifest(manifest) {
console.log(manifest.label);
}
// You can also inline the import:
/**
* @type {import("@iiif/presentation-2").Manifest}
*/
const manifest2 = {};
This will enable types completions in VSCode and IDEA, along with inline documentation from the IIIF specification:

The following types are supported:
These types are building blocks of other types.
| Type | Description |
|---|---|
| TechnicalProperties | The technical properties of IIIF in a map TechnicalProperties['id'] |
| DescriptiveProperties | The descriptive properties of IIIF in a map DescriptiveProperties['label'] |
| LinkingProperties | The linking properties of IIIF in a map LinkingProperties['related'] |
| PagingProperties | The paging properties of IIIF in a map PagingProperties['first'] |
| RightsProperties | The structural properties of IIIF in a map RightsProperties['attribution'] |
FAQs
A set of types that describe the format of the IIIF Presentation 2.1.1 specification as accurately as possible. Types are also available for [IIIF Presentation 3](https://github.com/IIIF-Commons/presentation-3-types)
The npm package @iiif/presentation-2 receives a total of 921 weekly downloads. As such, @iiif/presentation-2 popularity was classified as not popular.
We found that @iiif/presentation-2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.