UNPKG

slanted-gamedev-toolz

Version:

A slanted mix of tools for your brilliant ideas in game design.

22 lines (21 loc) 1.71 kB
// Now people can do // import { Example } from 'your-package-name'; import { randomArrayItem, removeObjectsWithSameName, } from "./_arrays/_arrayUtils"; import { percentageChance, rollDice, rollDiceIsMaxRoll, rollHighWeightedDice, rollLowWeightedDice, } from "./_dice/diceUtil"; import { isNumberTooLarge } from "./_numbers/_numberUtils"; import { numberWithCommas } from "./_numbers/numberWithComma"; import { HexBtn } from "./components/buttons/HexBtn/HexBtn"; import { ImportExportLocalStorage } from "./components/ImportExportLocalStorage/ImportExportLocalStorage"; import { useImportExportLocalStorageActions } from "./components/ImportExportLocalStorage/stores/importExportLocalStorageStore"; import { getDataFromLocalStorage, saveDataToLocalStorage, useLocalSaveData, } from "./components/ImportExportLocalStorage/utils/useSaveData"; import { LocalizationSelect } from "./components/LocalizationSelect/LocalizationSelect"; import { getLangCode, getLocalizedDynamicTextRaw, getLocalizedTextRaw, } from "./components/LocalizationSelect/useLocalization"; // these are exported export { percentageChance, rollDice, rollLowWeightedDice, rollHighWeightedDice, removeObjectsWithSameName, randomArrayItem, isNumberTooLarge, rollDiceIsMaxRoll, ImportExportLocalStorage, useLocalSaveData, useImportExportLocalStorageActions, LocalizationSelect, getLocalizedTextRaw, getLocalizedDynamicTextRaw, getLangCode, HexBtn, numberWithCommas, getDataFromLocalStorage, saveDataToLocalStorage, }; // Now people can do // import { rollDice } from 'your-package-name'; // How to publish to NPM? // set version in package.json > `npm publish` // // USAGE // import { getDataFromLocalStorage } from "slanted-gamedev-toolz";