Socket
Socket
Sign inDemoInstall

typed-apis

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-apis

Unified JavaScript APIs from various providers


Version published
Maintainers
1
Weekly downloads
1

Weekly downloads

Readme

Source

Typed APIs

:exclamation: Work in progress

Intro

Typed APIs provides uniform interfaces to use some of the most common web APIs. Its written in Typescript to provide type checking and better code readability and is Promise based to overcome the inconsistent nature of the current APIs that are using callbacks.

Features

  • On demand script loading, libraries are loaded asynchronously when need to be used
  • Promise based uniform API with with type definition support

Usage

Installation - package/typed-apis

npm install typed-apis --save  
  
yarn add typed-apis

Examples

Google OAuth2 client sign-in

import {Google} from 'typed-apis'  
  
Google.load({apiKey: 'public-api-key'}).then(Google => {     
    Google.getAuth2().signIn().then(GoogleUser => {    
        console.log('GoogleUser', GoogleUser)  
 })})  

Keywords

FAQs

Last updated on 28 Dec 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc