New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tsv-groupdata-parser

Package Overview
Dependencies
Maintainers
12
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsv-groupdata-parser

Parses the translationNotes TSVs files to generate the GroupIndex and GroupData for the translationCore Desktop app.

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
120
-12.41%
Maintainers
12
Weekly downloads
 
Created
Source

tsv-groupdata-parser

Build Status npm npm

Parses the translationNotes TSV files to generate the GroupsIndex and GroupsData for the translationCore Desktop app.

Usage

  import {
    tsvToGroupData,
    categorizeGroupData,
    formatAndSaveGroupData
  } from 'tsv-groupdata-parser';

  // tsvToGroupData() example
  const filepath = '__tests__/fixtures/tsv/en_tn_57-TIT.tsv';
  const originalBiblePath = '__tests__/fixtures/resources/el-x-koine/bibles/ugnt/v0.11';

  tsvToGroupData(filepath, "translationNotes", null, originalBiblePath).then((data) => {
    const groupData = data;
  });

  // Or with async/await
  const groupData = await tsvToGroupData(filepath, "translationNotes", null, originalBiblePath);

  // tsvToGroupData() example with categorized group data.
  const categorizedGroupData = await tsvToGroupData(filepath, "translationNotes", { categorized: true }, originalBiblePath);

  // categorizeGroupData() example
  const categorizedGroupData = categorizeGroupData(groupData)
  const rootOutputPath = 'translationCore/resources/en/thelps/tNotes'

  // formatAndSaveGroupData() example
  formatAndSaveGroupData(categorizedGroupData, rootOutputPath, 'tit')

Testing your changes without publishing new version

  • Create your feature/bugfix/enhancement (my-feature-branch)branch off of master.
  • Make your changes in the new branch (my-feature-branch).
  • Push your changes.
  • Run npm i unfoldingWord/tsv-groupdata-parser#my-feature-branch in your translationCore root directory.
  • For subsequent changes run rm -rf node_modules/tsv-groupdata-parser; npm i tsv-groupdata-parser;

Builds

Builds are made using babel 7 (babel-cli) for more infor see: Babel CLI docs

Keywords

tsv

FAQs

Package last updated on 16 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts