npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

simres

v0.1.0

Published

node.js package to read and write simulation result files

Readme

simres

simres is a node.js package to read and write csv files that have been generated by a simulation tool.

The package is being developed and maintained by the Chair of Automation and Energy Systems at the Saarland University.

License

simres is released under the ISC license.

Installation

$ npm install simres

Usage

The simres package provides four functions.

parseCsvFile

  • purpose: parse the content of a simulation result file
  • arguments:
    1. (String): the content of the simulation result file as plain text
    2. (Object): the optional options Objectto adjust the way of parsing with the following attributes:
      • columnSeparator (String): the character sequence that is used to separate columns (standard value is '\t')
      • rowSeparator (String): the character sequence that is used to separate rowss (standard value is '\r\n')
      • automaticRowEndDetection (Boolean): define whether the row ending separator shall be detected automatically (standard value is true)
  • returns (Array): the simulation result as array of timeseries objects (timestamps are a timeseries on their own). Each item in the array is an Object with the following attributes:
    • label (String): the label of the timeseries
    • type (String): the type of the timeseries
    • unit (String): the unit of the timeseries
    • values (Array): the values of the timeseries

readAndParseCsvFile

  • purpose: asynchronously read and parse the content of a simulation result file
  • arguments:
    1. (String): the path to the csv file
    2. (Object): the optional options Objectto adjust the way of parsing
      • columnSeparator (String): the character sequence that is used to separate columns (standard value is '\t')
      • rowSeparator (String): the character sequence that is used to separate rowss (standard value is '\r\n')
      • automaticRowEndDetection (Boolean): define whether the row ending separator shall be detected automatically (standard value is true)
  • returns (Array): the simulation result as array of timeseries objects (timestamps are a timeseries on their own). Each item in the array is an Object with the following attributes:
    • label (String): the label of the timeseries
    • type (String): the type of the timeseries
    • unit (String): the unit of the timeseries
    • values (Array): the values of the timeseries

composeCsvFile

  • purpose: compose the content of a simulation result file
  • arguments:
    1. (Array): the collection of timeseries items with each item being an Object with the following attributes:
      • label (String): the label of the timeseries
      • type (String): the type of the timeseries
      • unit (String): the unit of the timeseries
      • values (Array): the values of the timeseries
    2. (Object): the optional options Object to adjust the way of parsing with the following attributes:
      • columnSeparator (String): the character sequence that is used to separate columns (standard value is '\t')
      • rowSeparator (String): the character sequence that is used to separate rowss (standard value is '\r\n')
  • returns (String): the simulation result converted to plain text

composeAndWriteCsvFile

  • purpose: asynchronously compose the content of a simulation result and write it to a file
  • arguments:
    1. (String): the path to file that shall be written
    2. (Array): the collection of timeseries items with each item being an Object with the following attributes:
      • label (String): the label of the timeseries
      • type (String): the type of the timeseries
      • unit (String): the unit of the timeseries
      • values (Array): the values of the timeseries
    3. (Object): the optional options Object to adjust the way of parsing with the following attributes:
      • columnSeparator (String): the character sequence that is used to separate columns (standard value is '\t')
      • rowSeparator (String): the character sequence that is used to separate rowss (standard value is '\r\n')
  • returns (undefined)