Socket
Socket
Sign inDemoInstall

castle.js

Package Overview
Dependencies
0
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    castle.js

Castle Fingerprinting Script


Version published
Weekly downloads
543
increased by5.64%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Castle Fingerprinting Script

Packaged version of Castle fingerprinting script.


Maintenance Notice

This package is in the maintenance mode and had been migrated to @castleio/castle-js . If you would like to take advantage of the new features try the newer version.


Introduction

The Castle JavaScript automatically captures every user action in your web application, including clicks, taps, swipes, form submissions, and page views. We use this data to build profiles of good user behavior in order to detect the bad.

Minimal Requirements:

ES3+ version supported browsers eg:

  • Chrome 5+
  • Firefox 3+
  • IE 6+
  • Safari 4+
  • All modern browsers (desktop and mobile)

Installation

npm install --save castle.js

Usage

import 'castle.js'

_castle('setAppId', YOUR_CASTLE_APP_ID);

Using the script as standalone

<script type="text/javascript" src='dist/c.js'></script>
<script type="text/javascript">
  _castle('setAppId', 'YOUR_CASTLE_APP_ID');
</script>

Be sure to replace YOUR_CASTLE_APP_ID with your site identifier provided after registration.

Usage

See Castle Docs for more information.

Changelog

  • 1.8.0 – bug fixes
  • 1.7.7 – bug fixes and stability improvements
  • 1.7.6 – internal enhancements
  • 1.7.5 – disabled auto page tracking (it can be enabled with _castle("autoTrack", true))
  • 1.7.4 – bug fixes and performance improvements
  • 1.7.3 – internal enhancements
  • 1.7.2 – introduced _castle("createRequestToken")
  • 1.7.1 – performance improvements
  • 1.7.0 – introduction of a new token version, external dependencies removal
  • 1.6.0 – support for multiple versions of tokens

Upgrade Instructions

For a better user experience, we recommend upgrading through version 1.6.0 if your current library version is lower.

Example: If you are currently using the 1.5.1 version, please upgrade to the 1.6.0 version, and then to the latest one.

License

MIT

FAQs

Last updated on 20 Sep 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc