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 🙏

© 2024 – Pkg Stats / Ryan Hefner

sedrajs

v1.2.9

Published

Scripts to convert SEDRA 3 text database to JavaScript

Downloads

13

Readme

Sedrajs - A JavaScript representation of SEDRA 3 database

npm version npm module downloads Build Status License: MIT Dependency Status Coverage Status Gitter

Sedrajs project uses Node.js scripts to convert Sedra 3 text file database to a JavaScript representation. CAL ASCII transliteration is used for Aramaic words and roots.

Installation

In order to use this library, Node.js should be installed. Then run:

npm install sedrajs --save

Sedrajs JS database files are not available for distribution, by design. Only the un-modified Sedra 3 database files and the conversion scripts are packaged. You have to run the conversion scripts, by running the command above. That will convert Sedra 3 text database and place it in your node_modules folder as:

  • sedrajs.esm.js - An ES6 module, suitable for use with module bundlers like rollup or webpack.
  • sedrajs.js - A general UMD bundle, suitable for use in any environment (Web browser, Node.js, etc.)
  • sedra folder - roots.js, lexemes.js, words.js, english.js etymology.js and ubs.js separated ES6 modules.

The conversion scripts are stored in build/convert directory as:

  • convert.js - Un-minified cjs node script.
  • convert.min.js - Minified cjs node script
  • convert.mjs - ES6 mjs node script - can be run with Node.js 8 and higher

The conversion script package could also be downloaded directly from: https://registry.npmjs.org/sedrajs/-/sedrajs-1.2.9.tgz

More information

Peshitta App

Beth Mardutho

CAL

License

MIT with restrictions

Conversion scripts are covered by MIT license. But the SEDRA 3 database use is restricted according to the terms mentioned below:

        For additional information on the structure of the Database, see
           G. Kiraz, `Automatic Concordance Generation of Syriac Texts',
           in VI Symposium Syriacum 1992, ed. R. Lavenant, Orientalia
           Christiana Analecta 247, Rome, 1994.

        You are allowed to use SEDRA III for personal and academic
        purposes provided that:
        1. You do NOT redistribute any altered versions of the files.
        2. You do NOT redistribute any files for any kind of profit.
        3. You acknowledge in any publication whose results make use of
           SEDRA III, by any means, using a formula similar to the
           following:
          "This work makes use of the Syriac Electronic Data
           Retrieval Archive (SEDRA) by George A. Kiraz, distributed
           by the Syriac Computing Institute."
           You should also cite the paper mentioned above.

Contributing

The final goal for this work is to learn the Word of God as recorded by Peshitta. You are welcomed to improve this implementation or provide feedback. Please feel free to Fork, create a Pull Request or submit Issues.

To read quick updates about Peshitta app or post questions or feedback, follow @peshittap at @peshittapor Gitter

Development

npm install
npm run build

Sedra.js API Reference

For the structure of Root, Lexeme, Word, English and Etymology types see Sedra Model

sedrajs.roots : Array.<Root>

Array of Root objects created from Sedra 3 root records

Kind: static constant of sedrajs

sedrajs.lexemes : Array.<Lexeme>

Array of Lexeme objects created from Sedra 3 lexeme records

Kind: static constant of sedrajs

sedrajs.words : Array.<Word>

Array of Word objects created from Sedra 3 word records

Kind: static constant of sedrajs

sedrajs.english : Array.<English>

Array of English objects created from Sedra 3 english records

Kind: static constant of sedrajs

sedrajs.etymology : Array.<Etymology>

Array of Etymology objects created from Sedra 3 etymology records

Kind: static constant of sedrajs

sedrajs.ubs : Object

A hierarchical object with books as first level keys, with chapters objects under each book, then verse objects under each chapter and word id arrays as leaves, referencing the actual content for each book.

Kind: static constant of sedrajs

Conversion script API

convert.convertDb ⇒ Promise

Read all of Sedra 3 text database and convert it to JavaScript

Kind: static constant of convert
Returns: Promise - Promise for JavaScript database

convert.readDb(db, converter) ⇒ Promise.<(string|object)>

Read Sedra db file asynchronously and returns converted content promise

Kind: static method of convert
Returns: Promise.<(string|object)> - Converted content promise

| Param | Type | Description | | --- | --- | --- | | db | string | Sedra text database file name | | converter | converter | Content converter |

convert.writeDb(filePath, content) ⇒ Promise

Write content asynchronously and return promise

Kind: static method of convert
Returns: Promise - File write promise

| Param | Type | Description | | --- | --- | --- | | filePath | string | File path to write to | | content | converter | File content to save |

convert.converter ⇒ string | object

Sedra db content converter: callback to transform content read from disk.

Kind: static typedef of convert
Returns: string | object - Converted content

| Param | Type | Description | | --- | --- | --- | | content | string | Sedra db text file content |