Coder Social home page Coder Social logo

devmehq / devme-sdk-js Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 411 KB

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

Home Page: https://dev.me

License: MIT License

Shell 0.41% TypeScript 97.05% JavaScript 2.54%
email-verification currency-converter currency-exchange-rates currency-exchange ip-geolocation ip-location-lookup ip-data phone-validation phone-number-validation email-stmp-verification

devme-sdk-js's Introduction

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

devme-sdk-js's People

Contributors

dependabot[bot] avatar meabed avatar renovate-bot avatar renovate[bot] avatar semantic-release-bot avatar

Stargazers

 avatar  avatar

Watchers

 avatar

devme-sdk-js's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • styfle/cancel-workflow-action 0.12.1
  • actions/checkout v4@a5ac7e51b41094c92402da3b24376905380afc29
  • FranzDiebold/github-env-vars-action v2
  • actions/setup-node v4
.github/workflows/release.yml
  • styfle/cancel-workflow-action 0.12.1
  • actions/checkout v4@a5ac7e51b41094c92402da3b24376905380afc29
  • FranzDiebold/github-env-vars-action v2
  • actions/setup-node v4
npm
package.json
  • axios 1.7.2
  • @types/chai 4.3.16
  • @types/mocha 10.0.6
  • chai 5.1.1
  • husky 9.0.11
  • lint-staged 15.2.5
  • mocha 10.4.0
  • prettier 3.2.5
  • pretty-quick 4.0.0
  • should 13.2.3
  • ts-node 10.9.2
  • typescript 5.4.5

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.