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
Install size
4.45 MB
Created

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

:exclamation: Pending npm publish - not available yet

npm install typed-apis --save

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)
	})
})
	

FAQs

Last updated on 03 Jun 2018

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