@nova-studios-ltd/typescript-dictionary
v1.0.8
Published
[![Node.js Package](https://github.com/Nova-Studios-Ltd/Typescript-Dictionary-Package/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Nova-Studios-Ltd/Typescript-Dictionary-Package/actions/workflows/npm-publish.yml) # Typescript Dictionar
Downloads
14
Readme
Typescript Dictionary
Description
NPM package for our internal Dictionary class
Requirements
- Node.js
- npm (normally included)
- typescript
Installation
npm install @nova-studios-ltd/typescript-dictionary
Basic Usage
import { KeyValuePair, Dictionary } from "@nova-studios-ltd/typescript-dictionary";
// Create new instance
const dict = new Dictionary<string, string>();
// Set key/value
dict.setValue("Hello", "Bonjour");
// Get value
dict.getValue("Hello") // -> Returns 'Bonjour'
Getting the Source Code
Download a zipped version here or clone via HTTPS:
git clone https://github.com/Nova-Studios-Ltd/Typescript-Dictionary-Package.git
License
This project is currently licensed under a GPLv3 license.