Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rimble/utils

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rimble/utils

Rimble Utils is part of an array of tools to help web3 dApp developers launch products faster and with better UX.

  • 1.1.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

rimble-utils

Rimble Utils is part of an array of tools to help web3 dApp developers launch products faster and with better UX.

Getting started

Clone this repository and install its dependencies:

// with npm
npm install @rimble/utils --save

// with yarn
yarn add @rimble/utils

Usage Example

Import RimbleUtils library and call functions.

import RimbleUtils from '@rimble/utils';

const canDoWeb3 = RimbleUtils.browserIsWeb3Compatible(); // returns true or false boolean
const currentNetworkName = RimbleUtils.getEthNetworkNameById(4); // returns "Rinkeby" string
const isMobile = RimbleUtils.isMobileDevice(); // returns true or false boolean

Methods of RimbleUtils

NameParametersReturnsDescription
browserIsWeb3CapablenonebooleanExamines brower's UserAgent and determines if browser is recent Chrome, FireFox, Brave, or Opera
getEthNetworkNameByIdEthereum network IDstringConverts an Ethereum network ID into a network name
isMobileBrowsernonebooleanExamines browser's UserAgent and determines if the current device is a mobile platform

Documentation

Documentation

Issues

Open an issue for any bugs or feature requests

Contributing

We are open source and welcome your contributions !

License

MIT © ConsenSys

Keywords

FAQs

Package last updated on 15 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc