Catalog npm
Back to packageRELEASE DETAILS

1.0.1

npm

@0xcap/loot-table

A simple loot table implementation in TypeScript.

dropslootrandomtable
Published17 Apr 2022
Direct dependencies7
Transitive dependenciesNot calculated

README

Current package documentation

loot-table

MIT License GitHub issues open

A simple loot table implementation in TypeScript.

Installation

Using yarn

yarn add @0xcap/loot-table

Using pnpm

pnpm add @0xcap/loot-table

Using npm

npm install @0xcap/loot-table

Usage

import { LootTable } from "@0xcap/loot-table";

const lootTable = new LootTable();

lootTable.addItem("item1", 2);
lootTable.addItem("item2", 4);

const drop = lootTable.dropItem();

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
uuid
Environment
{
  "local_name": "uuid",
  "alias": false,
  "peer_metadata": null
}
^8.3.2runtime
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^27.5.1development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^3.0.2development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^27.1.4development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.6.3development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^27.4.1development
@types/uuid
Environment
{
  "local_name": "@types/uuid",
  "alias": false,
  "peer_metadata": null
}
^8.3.4development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "6cb2ffa38f167ff1c8e27619e2ca5328486a227b",
  "tarball": "https://registry.npmjs.org/@0xcap/loot-table/-/loot-table-1.0.1.tgz",
  "fileCount": 13,
  "integrity": "sha512-7bnw/ygVHEamLtHT8wxF2AF6kVC3WPrH/wd8vxZCf1JyNMJm5AX85Bpx3NSYkdmd6VVSFEy1wBpeJISC94Q/rg==",
  "signatures": [
    {
      "sig": "MEQCIGwM5vvbn6pq2GHblmGAOaw+8gI3Q7pXOhM4TgpSX7vfAiBi0XQIZ0GvQZktwp/29ZqY4XrPSkT0UDXMeRQrDER5tw==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 5313,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXKRMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmriZQ//Sul7gVx4s3JAol0Aisv4fkk5wNdAdjcPJhW6GI288XR4pNUH\r\nIEnBCH13Uy3RRmWTn7g7xNi1pA8BODsVpc0QUiQBEfsCQgESSMeCji87cqRc\r\n8JexBgvpEYBUJwALjDdxVFyCqNl/0GqToZ3hYM2H9HA0B2Uri6LSNhtXH2ka\r\nQM5NXWWuduweA02ZrCoqs+ql/xONy6bP52gPaBpbNtXVozEnVcRmHUIojN2r\r\nMDx2L9z7kMJIb8D3DHYEpNGJTOlSd66lasnWgIu+PY1F8FaSSuqGZInOYosv\r\nZ+lMFH9KCyMBIMqVGA841UbKXXv2J/u70STHBRAjZCbAxXEg1AuvPrP4k3e3\r\n8r9PQiVU+6g9HMoGhUBazcLncev8aaPjAtrYCvLeRjQntsKr7zVWMABOL65X\r\n9drX5WCdUOjY+FbmAN61Eb5GiMG5YdXBB1pAjgxAaohXTFIydVHpJ+NN8Emj\r\ni9GJRVO1BAdBbkSGzDR6gVBPSbgF1FYFyjiyKRMvCvfLxo6TAWw8NzOlJ6ox\r\n0MoU2XRNyGhUD33Mx73ly3ZEzXqrgYmWMVMLla0RgLDXNPxiBi2iYZYDy5s6\r\nt4NgZzti7uMz+iV+DLY8d4F4nOv3qk7s1+cfd5eZzhaztjX4BM+Fy0/nUvdg\r\n6wsGXjZ58UOiiFoVdJ2FLohyf49CpOEgV9Y=\r\n=KqD2\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0xcap/loot-table

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:fc3fc4e71cc1270409ece5c51d63c7c81dd53b387a2e5deeb66ae925b72acb86

Other collected versions

2.0.013 Oct1.0.017 Apr0.2.08 Jul0.1.08 JulView all collected versions →