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
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
Once the Login is Done it Maintains it's Session.
import {login, logout} from 'frappe-sdk'
await login(usr, pwd);
await logout()
The Official Documentation is Available at frappesdk.64bitlabs.com
License: Apache-2.0
Powered By 64BitLabs