Giter Site home page Giter Site logo

swrlab / node-utils Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 893 KB

๐Ÿ—‚ This module contains several frequently used packages and scripts for easier access and maintenance

Home Page: https://www.npmjs.com/package/@swrlab/utils

License: MIT License

JavaScript 100.00%
filesystem aws-s3 google-cloud-storage undici helpers tools utils datetime numbers strings

node-utils's Introduction

SWR Audio Lab

Principles

Learn about our Engineering and Project Principles in PRINCIPLES.md.

OpenAPI Documentation

You can find the OpenAPI documentation in /openapi.

More from the Audio Lab

More Documents

They can all be found in /docs.

Public Key

You can find our public key for lab [at] swr.de on keys.openpgp.org.

node-utils's People

Contributors

frytg avatar rafaelmaeuer avatar

Stargazers

 avatar  avatar

Watchers

 avatar

node-utils's Issues

Publish Package on NPM

Currently this package is published as node-storage-wrapper which should get a deprecation note.
The new version - which is currently only available as link-dependency with beta-flag - should be published on NPM as @swrlab/utils or @swrlab/node-utils.

Update or replace Node-CRC

Some thoughts about updating node-crc to v2 like in swrlab/ard-eventhub#284

  • the update would require every project using this dependency to install rustup toolchain which is fine for local development but questionable regarding deployments and docker-files...

The idea came up to replace the library as its only usage is node-utils/utils/ard/createHashedId.js
A not too oudated library is https://github.com/akiver/crc64-ecma, but its not generating the same result:

Result with node-crc: INPUT:SWR --> OUTPUT (CRC64-ECMA182): baa7e9a52223a090

const crc = require('node-crc')
module.exports = (input) => { return crc.crc64(Buffer.from(input, 'utf-8')).toString('hex') }

Result with crc64-ecma: INPUT:SWR --> OUTPUT (CRC64-ECMA182): 7fdca8944f20b7a0

const { crc64 } = require('crc64-ecma')
module.exports = (input) => { return crc64(input).toString(16) }

Improvements for next release

Some ideas for improvements in next release:

  • migrate radioCategories from app-analytics-board
  • migrate regionCodes from app-analytics-board

Refactor Storage-wrapper

To conform our current package structure following suggestions:

  • move function files from packages/storage-wrapper to utils/storage
  • rename packages/storage-wrapper to storage
  • adapt export scheme from packages/index.js to other packages
    • instead of exporting class with this.function, export object with functions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.