{"id":16672157,"url":"https://github.com/dragonman225/ngrp","last_synced_at":"2026-04-20T21:32:42.360Z","repository":{"id":44127449,"uuid":"185673447","full_name":"dragonman225/ngrp","owner":"dragonman225","description":"A Ngspice ASCII rawfile parser written in Javascript.","archived":false,"fork":false,"pushed_at":"2022-02-12T02:24:18.000Z","size":1038,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T17:57:16.580Z","etag":null,"topics":["eda","eletronics","ic-design","ngspice","spice"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dragonman225.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-08T20:15:43.000Z","updated_at":"2020-07-27T07:05:19.000Z","dependencies_parsed_at":"2022-09-03T20:21:21.681Z","dependency_job_id":null,"html_url":"https://github.com/dragonman225/ngrp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragonman225%2Fngrp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragonman225%2Fngrp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragonman225%2Fngrp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragonman225%2Fngrp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dragonman225","download_url":"https://codeload.github.com/dragonman225/ngrp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318758,"owners_count":20272144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eda","eletronics","ic-design","ngspice","spice"],"created_at":"2024-10-12T12:05:25.649Z","updated_at":"2025-12-28T01:15:25.370Z","avatar_url":"https://github.com/dragonman225.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ngspice **ASCII** Rawfile Parser\n\n\u003e A Ngspice **ASCII** rawfile parser written in Javascript. Dependent on Node.js.\n\n## Installation\n\n```bash\nnpm install dragonman225/ngrp\n```\n\n## Run the Example\n\n```bash\nnpm run test\n```\n\nTake a look at `parser.spec.js` in folder `test` to see how it works.\n\n## API\n\n### Instance `parser`\n\n##### `async parser.load(path)`\n\n* Load Ngspice **ASCII** raw file asynchronously.\n\n  * To change Ngspice rawfile format to `ascii`, add a line `set filetype=ascii` in your `.spiceinit`.\n\n##### `parser.summarize()`\n\n* Return a summary object of the parsed data.\n\n##### `parser.getResults()`\n\n* Return the parsed data in the following format.\n\n* An array containing all plots (e.g. Operating Points, Transient Analysis). Each plot is an object.\n\n  ```javascript\n  [\n    {\n      title: String, /* Title. Normally empty. */\n      date: String, /* Date */\n      name: String, /* Plotname. Name of the plot. */\n      flags: String, /* Flags */\n      nVariables: Integer, /* No. Variables */\n      nPoints: Integer, /* No. Points */\n      variables: [\n        {\n          index: Integer, /* The index of data values in \"Point\" array. */\n          name: String, /* Name of the variable. */\n          type: String /* Type of the variable, e.g. voltage, current. Ngspice sometimes gives wrong type. */\n        }\n      ],\n      values: [\n        [ Float ] /* An array of float numbers. */\n      ]\n    }\n  ]\n  ```\n\n* Note\n\n  For a variable :\n  ```javascript\n  {\n    index: 3,\n    name: \"xxx\",\n    type: \"yyy\"\n  }\n  ```\n\n  Data of the variable are `values[0][3]`, `values[1][3]`, ... `values[nPoints-1][3]`.\n\n##### `parser.getResultsCSV()`\n\n* Return CSV strings of all plots.\n\n  ```javascript\n  [\n      String, /* Plot 1 CSV string */\n      String, /* Plot 2 CSV string */\n      ...\n  ]\n  ```\n\n  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragonman225%2Fngrp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdragonman225%2Fngrp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragonman225%2Fngrp/lists"}