@erfffun/utils
Version:
Energi javascript utilities for web development
59 lines (57 loc) • 1.34 kB
JavaScript
import { delay } from './lib/timers';
import { emailPattern } from './lib/patterns';
import {
getNodeStyle,
nodeBottom,
nodeLeft,
nodeRight,
nodeTop,
scrollIntoParentView,
} from './lib/dom-elements';
import cookieProperty from './lib/cookieProperty';
import copyToClipboard from './lib/copyToClipboard';
import isMobile from './lib/detectMobile';
import formatBN, { cleanCacheFormatBN } from './lib/format-bn';
import idGenerator from './lib/idGenerator';
import isNode from './lib/isNode';
import localStorage from './lib/localStorage';
import localStorageProperty from './lib/localStorageProperty';
import noCryptoWalletMsg from './lib/noCryptoWalletMsg';
import translate from './lib/translate';
import toBN, { cleanCacheToBN } from './lib/toBN';
import usePrevious from './lib/usePrevious';
import getWeb3, {
getWeb3Socket,
subscribeToWeb3Socket,
clearSubscriptions,
} from './lib/getWeb3';
import Web3 from 'web3';
export {
cleanCacheFormatBN,
cleanCacheToBN,
cookieProperty,
copyToClipboard,
delay,
emailPattern,
formatBN,
getNodeStyle,
idGenerator,
isMobile,
isNode,
localStorage,
localStorageProperty,
noCryptoWalletMsg,
nodeBottom,
nodeLeft,
nodeRight,
nodeTop,
scrollIntoParentView,
toBN,
translate,
usePrevious,
getWeb3,
getWeb3Socket,
subscribeToWeb3Socket,
clearSubscriptions,
Web3,
};