Software Developer Kit of Magic Point project build on Javascript/NodeJS
npm install magic-point-sdkIntegrate the magic-point-sdk into your project to utilize its features across your entire application. This guide covers installation and setup for various JavaScript frameworks using TypeScript.
##### * Just need to initialize, everything is setted up by Magic Point.
Install the magic-point-sdk using npm, run the following command:
``bash`
npm install magic-point-sdk
add following lines of code into your entry file (index.js/ts, main.js/ts, ...)
`javascript
/// your imports
import MagicPoint from 'magic-point-sdk'/// your code
new MagicPoint({apiKey: 'your-api-key-here'}) //Replaced
'your-api-key-here' with your actual API key from Magic Point Management.
`Code Example
`javascript
import MagicPoint from './magic-point-sdk'
new MagicPoint({apiKey: 'generate-on-management-page',
lng: "en",
breakpoints: {
aKeyName: 120,
anotherKeyName: 576,
...,
andSoOn: 1200
}})
``