2.4.3 • Published 4 years ago
destiny2-manifest v2.4.3
destiny2-manifest
a simple (node!) class with functions to download and access the d2 manifest
// example.js
const D2Manifest = require('destiny2-manifest').default;
const manifest = new D2Manifest('asdf');
await manifest.load(); // or manifest.update() if you're into that
//-> manifest loaded
manifest.get('DestinyInventoryItemDefinition', 460688465).displayProperties.description;
//-> "Mine is not a final shape. She showed me that." –Eris Morn
manifest.getAll('DestinyDamageTypeDefinition').length;
//-> 4
manifest.find('DestinyInventoryItemDefinition', 'orpheus')[0].displayProperties.name;
//-> 'Orpheus Rig'
i mainly wanted a simple way to pull pre-typed records from the manifest
this returns records with bungie-api-ts definitions
// example.ts
import D2Manifest from "destiny2-manifest";
// [...etc...]
const myItem = manifest.get('DestinyInventoryItemDefinition', 460688465);
myItem.icon;
// TypeScript error: Property 'icon' does not exist on type 'DestinyInventoryItemDefinition'.ts(2339)
2.4.3
4 years ago
2.4.2
4 years ago
2.4.0
4 years ago
2.3.5
4 years ago
2.3.4
4 years ago
2.3.3
4 years ago
2.3.2
4 years ago
2.3.1
4 years ago
2.2.3
4 years ago
2.2.4
4 years ago
2.2.1
4 years ago
2.2.2
4 years ago
2.1.0
4 years ago
2.0.0
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.4
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.3
4 years ago
1.0.0
4 years ago