
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
leanplum-sdk
Advanced tools
The JavaScript SDK for Leanplum allows developers to integrate the Leanplum platform with applications that use JavaScript and HTML5. Leanplum is an customer engagement platform that provides mobile A/B testing, messaging, and personalization features for
This is the JavaScript SDK for Leanplum, allowing developers to access and integrate the functionality of Leanplum with applications and devices through JavaScript and HTML5.
Leanplum is a marketing cloud platform that provides A/B testing, messaging, and personalization features for applications.
Add leanplum.js to your project:
<script src="https://unpkg.com/leanplum-sdk@1.3.0/dist/leanplum.min.js"></script>
Install the package with
npm install leanplum-sdk
Use the package in your project
import Leanplum from 'leanplum-sdk';
// This value should be set to true only if you're developing on your server.
var isDevelopmentMode = true;
// Sample variables. This can be any JSON object.
var variables = {
items: {
color: 'red',
size: 20,
showBadges: true
},
showAds: true
};
// Insert your API keys here.
if (isDevelopmentMode) {
Leanplum.setAppIdForDevelopmentMode("APP_ID", "DEVELOPMENT_KEY");
} else {
Leanplum.setAppIdForProductionMode("APP_ID", "PRODUCTION_KEY");
}
Leanplum.setVariables(variables);
Leanplum.start(function(success) {
console.log('Success: ', success);
console.log('Variables: ', Leanplum.getVariables());
});
For a complete reference on how to use the Leanplum JavaScript SDK, refer to the developer documentation.
Install yarn package manager and run have it install all dependencies.
npm i -g yarn
yarn install
yarn start - Starts Webpack in development/watch mode.yarn lint - Lints all files.yarn build - Builds a distribution version of the library.yarn test - Runs the unit tests.Before making a contribution, please read through the contribution guidelines.
Once you have done that:
git checkout -b feature/my-new-featuregit commit -am 'Add some feature'git push origin feature/my-new-featuregit flow release start "NEW_VERSION"
yarn install
./bump_version.sh OLD_VERSION NEW_VERSION
yarn build
yarn test
git flow release finish "NEW_VERSION"
Run:
yarn test --coverage
See the LICENSE file.
FAQs
The JavaScript SDK for Leanplum allows developers to integrate the Leanplum platform with applications that use JavaScript and HTML5. Leanplum is an customer engagement platform that provides mobile A/B testing, messaging, and personalization features for
The npm package leanplum-sdk receives a total of 458 weekly downloads. As such, leanplum-sdk popularity was classified as not popular.
We found that leanplum-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.