Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ml-xsadd

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-xsadd - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

lib-esm/index.d.ts

60

package.json
{
"name": "ml-xsadd",
"version": "2.0.0",
"version": "3.0.0",
"description": "JavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator",
"main": "./lib/xsadd.js",
"module": "./lib-es6/xsadd.js",
"types": "./lib/xsadd.d.ts",
"module": "./lib-esm/index.js",
"types": "./lib/index.d.ts",
"files": [
"src",
"lib",
"lib-es6"
"lib-esm"
],
"scripts": {
"clean": "rimraf lib lib-es6",
"prepublishOnly": "npm run tsc",
"test": "npm run test-only && npm run tslint",
"test-only": "jest",
"tsc": "npm run clean && npm run tsc-es5 && npm run tsc-es6",
"tsc-es5": "tsc",
"tsc-es6": "tsc --project tsconfig.es6.json",
"tslint": "tslint --project tsconfig.base.json",
"tslint-fix": "npm run tslint -- --fix"
"check-types": "tsc --noEmit",
"clean": "rimraf lib lib-esm",
"eslint": "eslint src",
"eslint-fix": "npm run eslint -- --fix",
"prepack": "npm run tsc",
"prettier": "prettier --check src",
"prettier-write": "prettier --write src",
"test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types",
"test-only": "vitest run --coverage",
"tsc": "npm run clean && npm run tsc-cjs && npm run tsc-esm",
"tsc-cjs": "tsc --project tsconfig.cjs.json",
"tsc-esm": "tsc --project tsconfig.esm.json"
},

@@ -44,25 +48,13 @@ "repository": {

"homepage": "https://github.com/mljs/xsadd#readme",
"jest": {
"testEnvironment": "node",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
},
"devDependencies": {
"jest": "^23.5.0",
"rimraf": "^2.6.2",
"ts-jest": "^23.1.3",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.14.0",
"typescript": "^3.0.1"
"@vitest/coverage-v8": "^2.1.3",
"eslint": "^9.12.0",
"eslint-config-cheminfo-typescript": "^16.0.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "^5.6.3",
"vitest": "^2.1.3"
}
}

@@ -1,6 +0,18 @@

# xsadd
# ml-xsadd
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![npm download][download-image]][download-url]
<h3 align="center">
<a href="https://www.zakodium.com">
<img src="https://www.zakodium.com/brand/zakodium-logo-white.svg" width="50" alt="Zakodium logo" />
</a>
<p>
Maintained by <a href="https://www.zakodium.com">Zakodium</a>
</p>
[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![npm download][download-image]][download-url]
</h3>

@@ -17,2 +29,9 @@ JavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator.

```js
const { XSadd } = require("ml-xsadd");
const gen = new XSadd();
const number = gen.getFloat();
```
### new XSadd([seed])

@@ -36,5 +55,5 @@

```js
var XSadd = new XSadd();
var random = xsadd.random;
var number = random();
const xsadd = new XSadd();
const random = xsadd.random;
const number = random();
```

@@ -52,5 +71,5 @@

[npm-url]: https://npmjs.org/package/ml-xsadd
[travis-image]: https://img.shields.io/travis/mljs/xsadd/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/mljs/xsadd
[ci-image]: https://github.com/mljs/xsadd/workflows/Node.js%20CI/badge.svg?branch=main
[ci-url]: https://github.com/mljs/xsadd/actions?query=workflow%3A%22Node.js+CI%22
[download-image]: https://img.shields.io/npm/dm/ml-xsadd.svg?style=flat-square
[download-url]: https://npmjs.org/package/ml-xsadd
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc