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

@portable-ehr/nodecore

v1.2.2

Published

This module include multiple libraries that are likely to be required in any Portable EHR node implementation.

Downloads

6

Readme

nodecore librairies

This module include multiple libraries that are likely to be required in any Portable EHR node implementation.

  • lib/utils : a gazillion of utilitary functions and classes including :

    • function.prototype .chainProto() and .alsoExtends() methods and getGetterFunction() function
    • python-itertools-inspired generators : zip(), chain(), repeat() and groupBy(), plus
    • prototypesAlongTheProtoChain() and collectNonOverriddenProtoFunctionsAlongTheProtoChain() generators
    • time related now(), dateAdd(), minIntervalInMs(), isInvalidDate(), toDate(), strToDate() and onlyDate() functions
    • string, JSON, html, B64, and sha utility functions :
      • repr(), emptyField(), capitalizeName(), decapitalizeName(), normalizeString(), normalizeName(), normalizePhoneNumber() and hex() functions
      • niceJSON(), commentsLitOb(), sansCommentLitOb() and sansCommentJSON() functions
      • html .pre(), .h1(), .h2(), .h3(), .h4(), .bold(), .small() functions
      • getSha() function
      • toUrlB64(), fromUrlB64() and fromUrlB64ToString() functions
    • showJwt(), jwtBody() and jwtExpiry() functions, plus Jwt() constructor
    • cleanUrlPath(), makeDirIfNeeded() and buildFromFile() file helper functions
    • dbMsg(), bailOut(), expectedErrorProtoDefaultProps(), DeclareExpectedError() and isInstanceOfError() functions, plus
    • ErrorExtender() and ErrorWrapper() Error constructors
    • Enum and EItem constructors
    • LaunchParams class
    • tons of isInvalid*(), isProvided(), isNotProvided(), isFunction(), RamqNamUpTo10th(), validateRamqNam() validation functions
    • ECyclingStatus enum, Cycling.TimerInterrupted() Error constructor and Cycling class
  • lib/api.auth : provides :

    • AuthError contructor
    • jwtHoursOfValidity constant
    • createJwt() and verifyJwt() functions
    • authenticateAndAllowUser() function
    • getFeed() function
    • authorizeApiRequest() function
    • bearerLogin() function
  • lib/api : provides :

    • EFeedRequestStatus enum
    • FeedApiResponse() and
    • FeedApiLoginRequest() constructors,
    • EFeedHubRequestStatus enum
    • FeedHubApiResponse(),
    • FeedHubApiLoginRequest() and
    • FeedHubApiDispensaryRequest() constructors
  • lib/config.auth : provides :

    • EAuthMethod and EUserRole enums
    • ApiUser and ApiUsers classes
    • Credentials and AllCredentials classes
  • lib/config : provides :

    • NodeConfig class
    • nodeConfig() and nodeReloadConfig() functions
  • lib/config.nao : provides :

    • EWebScheme enum
    • Endpoint class
    • WsSelfServer class
  • lib/dao : provides :

    • noRow() Error constructor
    • EDbJsType enum
  • lib/my-dao : provides :

    • CURRENT_TIMESTAMP() and CURRENT_TIMESTAMP_3() functions
    • dbInsert()
    • dbUpdate()
    • dbDelete() and
    • fetchFromDb() functions
    • doInTransaction() context function
    • isoDateStrToDbDate() and dbDateToIsoDateStr() functions
    • parseTableSchema() function
  • lib/nao : provides :

    • IpSocketError(), StatusError(), Unpacking(), BackendError(), FeedHubError() and FeedError() Error constructors
    • EWebMethod and EWebStatusCode enums
    • WebRequest class
    • SelfStatusErrorBody() and SelfWebRequestMethods() constructors
    • FeedHubStatusErrorBody() and FeedHubWebRequestMethods() constructors
  • lib/nao.self : provides :

    • sendOnePostToSelf() function
    • filterFromSrcBundle() function
    • runFeedHubSelfServerUnitTest() function
  • lib/node : provides NodeState and Node classes.

  • lib/wtf.pump : provides WTFpump class.