0.0.1 • Published 10 months ago

@64bitlabs/frappe-javascript-sdk v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
10 months ago

Frappe JavaScript SDK

This is a basic JavaScript SDK Made to work with Frappe Framework. The Overall goal of this Library is to Make Integrations to Frappe backend Easy. This Library Contains Following Things

  1. Basic Methods Like Get, List, Update
  2. Authentication to Any Site using Login & Password
  3. Easy Types Generation
  4. Support for Both Node & Browser
Setup
yarn add frappe-sdk

Once the Installation is Done You need to Configure it if you are using it for NodeJS or in Browser if CORS is Setup from your Side

import {setBaseURL} from 'frappe-sdk'

setBaseURL('https://example.com')

If you are in browser and you have proxy setted up then you don't require above step to do

Methods

Auth

Once the Login is Done it Maintains it's Session.

import {login, logout} from 'frappe-sdk'

await login(usr, pwd);
await logout()

Docs

The Official Documentation is Available at frappesdk.64bitlabs.com

License: Apache-2.0

Powered By 64BitLabs