{
  "_id": "@yr/monotone-cubic-spline",
  "maintainers": [
    {
      "email": "andre.stokke@nrk.no",
      "name": "yr"
    },
    {
      "email": "saegrov@gmail.com",
      "name": "saegrov"
    }
  ],
  "dist-tags": {
    "latest": "1.0.3"
  },
  "author": {
    "name": "Alexander Pope",
    "email": "alexander.pope@nrk.no"
  },
  "_rev": "14-90578e6d14c4bfc7543a209d8228e7e9",
  "description": "Convert a series of points to a monotone cubic spline",
  "readme": "[![NPM Version](https://img.shields.io/npm/v/@yr/monotone-cubic-spline.svg?style=flat)](https://npmjs.org/package/@yr/monotone-cubic-spline)\n[![Build Status](https://img.shields.io/travis/YR/monotone-cubic-spline.svg?style=flat)](https://travis-ci.org/YR/monotone-cubic-spline?branch=master)\n\nConvert a series of points to a monotone cubic spline (based on D3.js implementation)\n\n## Usage\n\n```js\nconst spline = require('@yr/monotone-cubic-spline');\nconst points = spline.points([[0,0], [1,1], [2,1], [3,0], [4,0]]);\nconst svgPath = spline.svgPath(points);\n\nconsole.log(svgPath);\n// => 'M0 0C0.08333333333333333, 0.08333333333333333, ...'\n```\n\n## API\n\n**points(points)**: convert array of points (x,y) to array of bezier points (c1x,c1y,c2x,c2y,x,y)\n\n**slice(points, start, end)**: slice a segment of converted points\n\n**svgPath(points)**: convert array of bezier points to svg path (`d`) string",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/YR/monotone-cubic-spline.git"
  },
  "bugs": {
    "url": "https://github.com/YR/monotone-cubic-spline/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "@yr/monotone-cubic-spline",
      "description": "Convert a series of points to a monotone cubic spline",
      "version": "1.0.0",
      "author": {
        "name": "Alexander Pope",
        "email": "alexander.pope@nrk.no"
      },
      "dependencies": {},
      "devDependencies": {
        "buddy": "3.1.x",
        "expect.js": "*",
        "mocha": "*",
        "mocha-phantomjs": "*",
        "transfigure-babel": "6.1.x"
      },
      "main": "src/index.js",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/YR/monotone-cubic-spline.git"
      },
      "license": "MIT",
      "scripts": {
        "prepublish": "buddy build",
        "test": "NODE_ENV=test mocha test/lib-test.js --reporter spec",
        "test-client": "buddy build && mocha-phantomjs test/test-runner.html"
      },
      "browser": "index.js",
      "build": {
        "targets": [
          {
            "input": "src/index.js",
            "output": "test/lib.js",
            "boilerplate": true,
            "bootstrap": true
          },
          {
            "input": "src",
            "output": ".",
            "modular": false
          }
        ]
      },
      "gitHead": "8d0f74091d23dbf8a98c400d1cb5b3852ae52bdc",
      "bugs": {
        "url": "https://github.com/YR/monotone-cubic-spline/issues"
      },
      "homepage": "https://github.com/YR/monotone-cubic-spline#readme",
      "_id": "@yr/monotone-cubic-spline@1.0.0",
      "_shasum": "2d10671b0e47b0f1960e829fbbb3a8b343dd946f",
      "_from": ".",
      "_npmVersion": "3.3.9",
      "_nodeVersion": "5.0.0",
      "_npmUser": {
        "name": "yr",
        "email": "alexander.pope@nrk.no"
      },
      "dist": {
        "shasum": "2d10671b0e47b0f1960e829fbbb3a8b343dd946f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@yr/monotone-cubic-spline/-/monotone-cubic-spline-1.0.0.tgz",
        "integrity": "sha512-U+TEGmBYjfS0A3CV/qXXVuobQ3xJpLZ3COz+C1ehNQAPHeoSGW12VX+47aAq8n6BNeobK+lCnuZriMsmTllKbQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIBtNvJyIXzVpAnAgTDO7Jz0Z2DVsoX0/LgtBfK+rr/NcAiBCffzOBHq+og7Z340/p55dnoHQZW3rcTqG8ilrkadj2Q=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "yr",
          "email": "alexander.pope@nrk.no"
        }
      ],
      "directories": {}
    },
    "1.0.1": {
      "name": "@yr/monotone-cubic-spline",
      "description": "Convert a series of points to a monotone cubic spline",
      "version": "1.0.1",
      "author": {
        "name": "Alexander Pope",
        "email": "alexander.pope@nrk.no"
      },
      "dependencies": {},
      "devDependencies": {
        "buddy": "5.0.x",
        "buddy-plugin-babel": "6.7.x",
        "expect.js": "*",
        "mocha": "*",
        "mocha-phantomjs": "*"
      },
      "main": "src/index.js",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/YR/monotone-cubic-spline.git"
      },
      "license": "MIT",
      "scripts": {
        "prepublish": "buddy build",
        "test": "NODE_ENV=test mocha test/lib-test.js --reporter spec",
        "test-client": "buddy build && mocha-phantomjs test/test-runner.html"
      },
      "browser": "index.js",
      "build": {
        "targets": [
          {
            "input": "src",
            "output": ".",
            "modular": false
          },
          {
            "input": "src/index.js",
            "output": "test/lib.js"
          }
        ]
      },
      "gitHead": "7ff2a64a23cf747737efa67007bb69c15103915b",
      "bugs": {
        "url": "https://github.com/YR/monotone-cubic-spline/issues"
      },
      "homepage": "https://github.com/YR/monotone-cubic-spline#readme",
      "_id": "@yr/monotone-cubic-spline@1.0.1",
      "_shasum": "040a65eafb0841be2cb9fa573903557bf25fc785",
      "_from": ".",
      "_npmVersion": "3.8.6",
      "_nodeVersion": "6.0.0",
      "_npmUser": {
        "name": "popeindustries",
        "email": "alex@pope-industries.com"
      },
      "dist": {
        "shasum": "040a65eafb0841be2cb9fa573903557bf25fc785",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@yr/monotone-cubic-spline/-/monotone-cubic-spline-1.0.1.tgz",
        "integrity": "sha512-6N2fTVpTUotF9kKnS0y/kfYCVXhlmBCx3+aqgAu8WNwmwODs3o/MPdK4WPl9sKvOcCYmeO+wAzs03ejibkP/pQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIE3F2Lzq8VyN8DEK1gHuWomGbsVfehWda99ME6li5DtyAiBQe3dbHQawiGvGyGmFt5/Rx/k06aiuD4LZSPi33wsA8Q=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "popeindustries",
          "email": "alex@pope-industries.com"
        },
        {
          "name": "yr",
          "email": "alexander.pope@nrk.no"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/monotone-cubic-spline-1.0.1.tgz_1462171854303_0.8894699579104781"
      },
      "directories": {}
    },
    "1.0.2": {
      "name": "@yr/monotone-cubic-spline",
      "description": "Convert a series of points to a monotone cubic spline",
      "version": "1.0.2",
      "author": {
        "name": "Alexander Pope",
        "email": "alexander.pope@nrk.no"
      },
      "dependencies": {},
      "devDependencies": {
        "buddy": "5.1.x",
        "buddy-plugin-babel": "6.10.x",
        "expect.js": "*",
        "mocha": "*",
        "mocha-phantomjs": "*"
      },
      "main": "src/index.js",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/YR/monotone-cubic-spline.git"
      },
      "license": "MIT",
      "scripts": {
        "prepublish": "buddy build",
        "test": "NODE_ENV=test mocha test/lib-test.js --reporter spec",
        "test-client": "buddy build && mocha-phantomjs test/test-runner.html"
      },
      "browser": "index.js",
      "build": {
        "targets": [
          {
            "input": "src",
            "output": ".",
            "modular": false
          },
          {
            "input": "src/index.js",
            "output": "test/lib.js"
          }
        ]
      },
      "gitHead": "ab837f86d65e599e4fff4e1dad03a1d5c3e0589c",
      "bugs": {
        "url": "https://github.com/YR/monotone-cubic-spline/issues"
      },
      "homepage": "https://github.com/YR/monotone-cubic-spline#readme",
      "_id": "@yr/monotone-cubic-spline@1.0.2",
      "_shasum": "3a30f89c2c6c1494838cd6285e5a28ba2e24b6e7",
      "_from": ".",
      "_npmVersion": "3.9.5",
      "_nodeVersion": "6.2.2",
      "_npmUser": {
        "name": "popeindustries",
        "email": "alex@pope-industries.com"
      },
      "dist": {
        "shasum": "3a30f89c2c6c1494838cd6285e5a28ba2e24b6e7",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@yr/monotone-cubic-spline/-/monotone-cubic-spline-1.0.2.tgz",
        "integrity": "sha512-/gisZdA0JoQE4CxZF+lq3VWGAo9xJor4RdANP3l5v+nLwwSOU1uwgKqF9aMH1W5O/KED2yEw/Owpeg6VMQpedA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDfz5m1FiVIUq434SGAknK8ZreZJAz0QRf73+jc8wuyjQIgAKsHnvqbkMx3xKGOVjARB1tB6Vggu9VWiSgpk//A9xA="
          }
        ]
      },
      "maintainers": [
        {
          "name": "mariuslundgard",
          "email": "studio@mariuslundgard.com"
        },
        {
          "name": "popeindustries",
          "email": "alex@pope-industries.com"
        },
        {
          "name": "yr",
          "email": "alexander.pope@nrk.no"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/monotone-cubic-spline-1.0.2.tgz_1467013122749_0.3360384979750961"
      },
      "directories": {}
    },
    "1.0.3": {
      "name": "@yr/monotone-cubic-spline",
      "description": "Convert a series of points to a monotone cubic spline",
      "version": "1.0.3",
      "author": {
        "name": "Alexander Pope",
        "email": "alexander.pope@nrk.no"
      },
      "dependencies": {},
      "devDependencies": {
        "babel-plugin-syntax-trailing-function-commas": "6.22.0",
        "babel-plugin-transform-async-generator-functions": "6.24.1",
        "babel-plugin-transform-async-to-generator": "6.24.1",
        "babel-plugin-transform-es2015-arrow-functions": "6.22.0",
        "babel-plugin-transform-es2015-block-scoped-functions": "6.22.0",
        "babel-plugin-transform-es2015-block-scoping": "6.24.1",
        "babel-plugin-transform-es2015-classes": "6.24.1",
        "babel-plugin-transform-es2015-computed-properties": "6.24.1",
        "babel-plugin-transform-es2015-destructuring": "6.23.0",
        "babel-plugin-transform-es2015-duplicate-keys": "6.24.1",
        "babel-plugin-transform-es2015-for-of": "6.23.0",
        "babel-plugin-transform-es2015-function-name": "6.24.1",
        "babel-plugin-transform-es2015-literals": "6.22.0",
        "babel-plugin-transform-es2015-object-super": "6.24.1",
        "babel-plugin-transform-es2015-parameters": "6.24.1",
        "babel-plugin-transform-es2015-shorthand-properties": "6.24.1",
        "babel-plugin-transform-es2015-spread": "6.22.0",
        "babel-plugin-transform-es2015-sticky-regex": "6.24.1",
        "babel-plugin-transform-es2015-template-literals": "6.22.0",
        "babel-plugin-transform-es2015-unicode-regex": "6.24.1",
        "babel-plugin-transform-es5-property-mutators": "6.24.1",
        "babel-plugin-transform-exponentiation-operator": "6.24.1",
        "babel-plugin-transform-object-rest-spread": "6.23.0",
        "buddy": "6.x.x",
        "expect.js": "*",
        "mocha": "*"
      },
      "main": "src/index.js",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/YR/monotone-cubic-spline.git"
      },
      "license": "MIT",
      "scripts": {
        "prepublish": "buddy build",
        "test": "NODE_ENV=test mocha test/lib-test.js --reporter spec"
      },
      "browser": "index.js",
      "buddy": {
        "build": [
          {
            "input": "src/",
            "output": ".",
            "bundle": false,
            "version": "es5"
          },
          {
            "input": "src/index.js",
            "output": "test/lib.js"
          }
        ]
      },
      "gitHead": "c2a8e9536e8788e02c32fa987aa1418f057abbf2",
      "bugs": {
        "url": "https://github.com/YR/monotone-cubic-spline/issues"
      },
      "homepage": "https://github.com/YR/monotone-cubic-spline#readme",
      "_id": "@yr/monotone-cubic-spline@1.0.3",
      "_npmVersion": "5.0.3",
      "_nodeVersion": "8.0.0",
      "_npmUser": {
        "name": "popeindustries",
        "email": "alex@pope-industries.com"
      },
      "dist": {
        "integrity": "sha512-FQXkOta0XBSUPHndIKON2Y9JeQz5ZeMqLYZVVK93FliNBFm7LNMIZmY6FrMEB9XPcDbE2bekMbZD6kzDkxwYjA==",
        "shasum": "7272d89f8e4f6fb7a1600c28c378cc18d3b577b9",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@yr/monotone-cubic-spline/-/monotone-cubic-spline-1.0.3.tgz",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIBAg8v568/izDXFMscglgM7Fb6I7aS0BPufWKG/wfvZHAiEA9jHMkZhd1rTfzLSMXf9Ml0gMMCv2PcGZVGHEZbb1aeQ="
          }
        ]
      },
      "maintainers": [
        {
          "email": "saegrov@gmail.com",
          "name": "saegrov"
        },
        {
          "email": "alex@pope-industries.com",
          "name": "popeindustries"
        },
        {
          "email": "alexander.pope@nrk.no",
          "name": "yr"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/monotone-cubic-spline-1.0.3.tgz_1496836880305_0.7718168895225972"
      },
      "directories": {}
    }
  },
  "name": "@yr/monotone-cubic-spline",
  "time": {
    "modified": "2026-05-21T21:44:07.538Z",
    "created": "2015-11-14T15:07:36.246Z",
    "1.0.0": "2015-11-14T15:07:36.246Z",
    "1.0.1": "2016-05-02T06:50:56.549Z",
    "1.0.2": "2016-06-27T07:38:45.103Z",
    "1.0.3": "2017-06-07T12:01:21.177Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/YR/monotone-cubic-spline#readme"
}