You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

fast-spec

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-spec - npm Package Compare versions

Comparing version
0.0.2
to
0.0.3
+1
-1
package.json
{
"name": "fast-spec",
"version": "0.0.2",
"version": "0.0.3",
"description": "Discover laws in your code like with QuickSpec",

@@ -5,0 +5,0 @@ "main": "lib/fast-spec.js",

@@ -15,10 +15,12 @@ # fast-spec

```ts
```js
import * as fc from "fast-check";
import { funcDef, instDef, varDef, findSpecs } from "fast-spec";
// const fc = require("fast-check");
// const { funcDef, instDef, varDef, findSpecs } = require("fast-spec");
findSpecs([
// declare functions to be considered
funcDef("concat", 2, (a: any[], b: any[]) => [...a, ...b]),
funcDef("reverse", 1, (a: any[]) => [...a].reverse()),
funcDef("concat", 2, (a, b) => [...a, ...b]),
funcDef("reverse", 1, (a) => [...a].reverse()),
// declare basic root values (of special interest)

@@ -47,1 +49,3 @@ instDef("[]", []),

- ...
*Live example available at https://runkit.com/dubzzz/hello-world-fast-spec*