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

@devmehq/sdk-js

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devmehq/sdk-js

DEV.ME SDK for JavaScript & TypeScript for Server & Browser, Compatible with Node.js & React & Vue.js & Angular

  • 1.1.3-beta.27
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-52.63%
Maintainers
1
Weekly downloads
 
Created
Source

DEV.ME SDK for JavaScript & TypeScript

Build Status NPM version Downloads

DEV.ME SDK for JavaScript & TypeScript

Works with Node.js and in The Browser, Compatible with Node.js & React.js & Vue.js & Angular.js

Get Your Free API Key

Signup Here and Get Your Free API Key

Installation and usage instructions

Installation

Install the module through YARN:

yarn add @devmehq/sdk-js

Or NPM

npm insgall @devmehq/sdk-js

Examples

Currency API Conversion

import { CurrencyApi, Configuration } from '@devmehq/sdk-js';
const config = new Configuration({ apiKey: 'demo-key' });
const currencyApi = new CurrencyApi(config);

const { data } = await currencyApi.v1ConvertCurrency({
  amount: 10,
  from: 'USD',
  to: 'EUR',
});
// {
//   convertedAmount: 8.819,
//   convertedText: '10 USD equal to 8.819 EUR',
//   exchangeRate: 0.8819,
//   from: 'USD',
//   originalAmount: 10,
//   rateTime: '2022-01-20T14:49:28.046Z',
//   to: 'EUR'
// }

IP API Geolocation, IP2Location, IP Data

import { IPApi, Configuration } from '@devmehq/sdk-js';
const config = new Configuration({ apiKey: 'demo-key' });
const ipApi = new IPApi(config);

const { data } = await ipApi.v1GetIpDetails({ ip: '52.45.23.11' });

// {
//   asn: 14618,
//   aso: 'AMAZON-AES',
//   city: {
//   accuracyRadius: 1000,
//     latitude: 39.0469,
//     longitude: -77.4903,
//     metroCode: 511,
//     name: 'Ashburn',
//     timeZone: 'America/New_York',
//   },
//   countryCode: 'US',
//   ip: '52.45.23.11',
//   registeredCountryCode: 'US',
// }

Testing

yarn test

Need Help?

If you need help please drop us a message, we would be glad to help @ Contact us

Contributing

Please feel free to open an issue or create a pull request and fix bugs or add features, All contributions are welcome. Thank you!

LICENSE MIT

Keywords

FAQs

Package last updated on 14 Aug 2023

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