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 🙏

© 2026 – Pkg Stats / Ryan Hefner

secursus_api

v1.2.0

Published

Library JS for Secursus api.

Readme

Secursus Integration API

Secursus is the most powerful digital insurance for parcels, covering the most sensitive items and up to €100,000 per parcel. To integrate the insurance service in your website, we provide this js library that will allow you to automate your insurance orders.

For more information about the product, please visit our website : https://www.secursus.com/integration/

Prerequisite

To use the Secursus API, you need to create an account on our platform and activate it.

https://www.secursus.com/integration/registration.php

Installation

npm install secursus_api

Usage

const Api = require('secursus_api');

// Set your API credentials here
var secursus = new Api(
    'YOUR_API_ID',
    'YOUR_API_KEY'
);

// And call methods after
secursus.retrieveParcelOrder('YOUR_PARCEL_ID', function(response) {
    console.log(response);
});

Documentation

Get the insurance amount fees

This method is used to calculate the amount of insurance fees.

More details : https://developer.secursus.com/parcels/fees

Usage

secursus.getInsuranceAmount(10000, function(response) {
    console.log(response);
});

Argument

The create parcel order method can receive only one argument, the parcel value. This argument need to be an integer and represents the total value of the parcel in euro cents.

Create parcel order

A parcel object is created and the insurance credentials are returned. Once the object has been created, you have 12 hours if you want to cancel the insurance order.

More details : https://developer.secursus.com/parcels/create

Usage

secursus.createParcelOrder(params, function(response) {
    console.log(response);
});

Data argument

The create parcel order method can receive an Object who can contains these eight arguments (six are required):

| Entry | Required | Data type | Description | |-------|----------|-----------|-------------| | parcel_value | Yes | Integer | Total value of the order in euro cents. | | first_name | Yes | String | Customer first name. | | last_name | Yes | String | Customer last name. | | email | Yes | String | Customer email address. | | full_address | Yes | String | Customer full address. | | cart_data | Yes | Json | Details of cart on your website. No specific format is required, this information will be analyzed for any claim. | | company | No | String | Customer company name. | | lang | No | String | Language used for the insurance confirmation email sent to the customer. Two possible values: "fr" or "en". Default value: "en". |

Retrieve a parcel order

This method is used to get the insurance credentials and parcel informations.

Usage

secursus.retrieveParcelOrder('YOUR_PARCEL_ID', function(response) {
    console.log(response);
});

Argument

The retrieve parcel order method can receive only one argument, the parcel id. This argument need to be a string and is the insurance id generated by the createParcelOrder method.

Retrieve a current parcel report

This method is used to get the list of all parcels to due during the current month.

Usage

secursus.retrieveCurrentReport(function(response) {
    console.log(response);
});

Retrieve a history parcel report

This method is used to get the list of all parcels of the account.

Usage

secursus.retrieveHistoryReport(function(response) {
    console.log(response);
});

Cancel a parcel order

This method is used to cancel an insurance order that you previously sent.

Note: Once the insurance request has been created, you have 12 hours if you want to cancel the insurance order. After this period, the insurance order is considered as confirmed and can't be canceled. The insurance fees are then payable.

More details : https://developer.secursus.com/parcels/cancel

Usage

secursus.cancelParcelOrder('YOUR_PARCEL_ID', function(response) {
    console.log(response);
});

Argument

The retrieve parcel order method can receive only one argument, the parcel id. This argument need to be a string and is the insurance id generated by the createParcelOrder method.