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

@adncorp/account-book-parser-adapter

v8.2.2

Published

parsing sheet adapter for account book

Downloads

40

Readme

module file structure

./__.vscode/: paramètres communs chargés par Visual Studio Code
 |__specs/: les spécifications des tests unitaires Jasmine du module
 |__lib/: librerie
 |  |__model/: dossier contenant le model d'objet renvoyer après le parsing et les codes d'erreur en cas d'echec de parsing
 |  |  |__account_book_model.json: fichier contenant model d'objet
 |  |  |__codeError.json: fichier contenant les codes d'erreur
 |__src/: le code source du module
 |  |__autre/: les librairies et utilitaires nécessaire au module
 |  |  |__formater.js: fichier contenant la fonction de formatage des données issues du accoun-book
 |  |  |__index.js: fichier contenant la fonction principale
 |  |  |__parser.js: fichier contenant la fonction de parsing
 |  |__inspire/: les librairies et utilitaires nécessaire au module
 |  |  |__formater.js:
 |  |  |__index.js:
 |  |  |__parser.js:
 |  |__odoo/: les librairies et utilitaires nécessaire au module
 |  |  |__formater.js:
 |  |  |__index.js:
 |  |  |__parser.js:
 |  |__sage/: les librairies et utilitaires nécessaire au module
 |  |  |__formater.js:
 |  |  |__index.js:
 |  |  |__parser.js:
 |  |  |__sagebuildobject.js: fichie contenant la logique de construction des objets à partir des données issues du account-book
 |  |__index.js : fichier principal qui fait appel à la classe du module de parsing
 |  |__accountbookparseradapter.js : fichier principal contenant la classe du module de parsing
 |  |__helpers.js : fichier principal qui fait appel aux différents fonctions de parsing
 |  |__cli.js : module cli

Required dev dependances

  • Prettier Code formatter to enforce a consistent code style
  • Husky Make easy to add gitHooks to a node project
  • Lint-staged Run lint before commit goes on the repository
  • Jasmine Implement BDD
  • Eslint Identify and reporte base on patterns found in EMACScript/Javascript

Module de parsing du grand livre

Version 8.2.2

Usage

Installation command is npm install @adncorp/account-book-parser-adapter.

Quick example

const AccountBookParser = require('@adncorp/account-book-parser-adapter')
/** 
*@param filepath chemin vers le fichier du grand livre: format accepté: .xlsx, .xlx, .csv
*@param softwareName Nom du logiciel qui à généner le fichier (Example: Odoo online, odoo community Sage-Saari, SAS-Inspire)
*/

// instance d'un objet de la classe AccountBookParser
var parser = new AccountBookParser(filepath, softwareName)

/**
*@return {promiss} retourne une promesse d'objet contenant le resultat du parsing
*/
// obtenir le parsing
parser.getParser().then(result => {
   // affichage du resultat après parsing
   console.log(result)
}).catch(error => {
   // parsing echoué, affichage de l'erreur
   console.log(error)
})

Development

Les tests sont exécutés avec jasmine. Pour l'installer, lancez npm install, il installera jasmine et ses dépendances dans le répertoire "node_modules" de votre projet.

To run the unit tests:

$npm run jasmine

Le test coverage est exécuté avec l'outil instanbul. Pour l'installer, lancer npm install --save-dev jasmine jasmine-node istanbul jasmine-console-reporter supertest jasmine-supertest, il installera instabul et ses dépendances dans le répertoire "node_modules" de votre projet.

To run the test coverage:

$npm run test-cover

To generate the JavaScript files:

$npm run build

run lint

$npm run lint  # lint all src
$npm run lint-files -- ${files_or_dir_glob}  # lint specific files

run prettier

$npm run prettier  -- ${modified_files_or_dir_glob}

Author

  • ADN: <https://www.adncorp.com/>