npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eva-sdk-js

v4.8.5

Published

The JavaScript based SDK for the EVA platform

Downloads

75

Readme

About the EVA JavaScript SDK Build Status

DEPRECATION NOTICE: This SDK is deprecated. Please check out the current EVA SDK

The EVA SDK provides access to the functionality exposed by the EVA API using developer focused methods and classes. It is tightly coupled to the low-level shared definitions exposed by the EVA API. The SDK provides a higher level of abstraction for using the EVA API.

Installing

The SDK is available through both npm:

npm install --save eva-sdk-js

and bower:

bower install --save eva-sdk-js

Basic usage

The SDK needs to be initialised once before it can be used.

var EvaSDK              = require( "eva-sdk-js" );
var applicationId       = 1;
var endPointURL         = "https://eva.newblack.io";
var authenticationToken = "YOURTOKENHERE";

EvaSDK.init( authenticationToken, applicationId, endPointURL );

Once initialised you can start using the classes exposed by the SDK to gain access to data in EVA. As an example the below code retrieves a product from the server.

var product = new EvaSDK.Product( productId );

product.fetch()
.then( function( response )
{
    // Product data is available in the response variable or
    // from the product.data property or product.getData() method
    //
    console.log( "Product data", response );
} )
.catch( function( error )
{
    console.error( "Product retrieval error", error );
} );

You can check the documentation or unit tests for more examples

Developing

Dependencies are installed with npm install and bower install

This SDK uses gulp for its development task. You can run gulp to get a list of available commands and a description of what the task does.

Building the SDK bundle is done with gulp build.

You may need to update the EVA shared definitions files at times. You can run gulp typings to automatically download and install them.

During development you can let gulp watch for file changes and rebuild your bundle using gulp watch.

Releasing

Builds from master branch of the SDK are automatically published to NPM. Versioning is managed by semantic release. The master branch is locked for direct commits. Changed should be collected on develop and once a release is required a pull request on github needs to be made from develop to master. This pull request will be validated using TravisCI before it can be merged for the actual release build.

Documentation

The SDK is documented using typedoc. Once you can successfully build the SDK you can generate it using gulp typedoc.

The documentation can be found in the docs/ folder.

Testing

You can run the unit tests with gulp test

If you want to run a specific unit test you can specify you can do:

gulp test --tests=test/products-spec.js

You can run the tests without building like so:

gulp test --skip-build --tests=test/products-spec.js