adaltas / adaltas/node-csv

`escape_formulas` does not work with negative numbers

Open Beginner friendly
#503 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
4.3k
Forks
299
Avg merge
16h 19m
Merged PRs (30d)
1

Description

Describe the bug

When using escape_formulas no consideration is made for negative numbers and this breaks the value when opened in excel e.g.

Image

To Reproduce

Simply set escape_formulas: true then write the value -1.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the implementation of the escape_formulas option, reproduce the -1.0 case, and inspect the existing test structure. Done means negative numeric values remain valid when the generated CSV is opened in Excel with escape_formulas: true.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.