Socket
Socket
Sign inDemoInstall

cleaner-node

Package Overview
Dependencies
81
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cleaner-node

Helpful utilities and scripts to make Node projects more legible and easier for the next developer to take over.


Version published
Maintainers
1
Created

Readme

Source

cleaner-node

Helpful utilities and scripts to make Node projects more legible and easier for the next developer to take over.

Background

There are several libraries out there designed to make life easier for developers (moment, lodash, underscore, etc.).  However, for the most part, the goals of those utilities are to add on to what Node and JavaScript bring to the table.  And, as Node and JavaScript mature, developers find them to be less of a neccessity and end up removing them.  While cleaner-node is also a helper package, and completely unnecessary, it's goal is to abstract some of the more redundant and verbose syntaxes.  The end result is a codebase that still functions as it would without cleaner-node but is easier to read and maintain. Unlike those other libraries, which shrink over time, I intend on growing cleaner-node for as long as Node exists so that I don't have to write the same code again, and again, and again, and again, and ag....

Installation

npm i cleaner-node

Changes

VersionDateDescription
0.3.52019/02/17Add objects.getValue, getValues, and setValue to get & set properties of an object using fully qualified path names.
0.3.62019/02/18Add strings.getByteCount to determine true size of string rather than simply using .length.
0.3.72019/02/26Add files utility.
0.4.02019/02/27Add .fileContents, .lock, .unlock, .isLocked, .cleanLock functions to files.
0.4.32019/03/16Add folderStructure to files for producing a object graph from a single folder path.
0.4.42019/03/16Add isSemver to strings for determining if a string is a valid semver format.
0.4.72019/03/17Add getName to email for extracting cosmetic name from verbose email address.
0.4.82019/03/17Add .isBracketted, .getBracket, and .trimBrackets to strings.
0.5.02019/03/28Add sequelize helper functions.
0.6.02019/04/06Add express area with .asyncMiddleware wrapper / function.
0.6.42019/04/12Add .isJSON to strings.
0.6.52019/04/16Add .getSize to strings.
0.6.72019/04/26Add .reduce to objects to remove useless properties.
0.6.122019/10/01Add .isEmpty to objects to differentiate between empty and invalid.
0.6.132019/10/08Add .createPath to files to create folder path with clean boolean feedback.
0.6.142019/10/08Extended .writeFile in files to create folder path (optional).
0.7.02019/10/08Enhanced file locking operations within files.
0.7.32020/01/14Add objects.likeKeys and likeKey to find keys of an object where case or format is unknown.
0.8.02020/01/16Add env methods.
0.8.12020/01/17Add .print and .toPrintable to object.
0.8.22020/01/17Add MODULE_PATH, PACKAGE, and PACKAGES to env.
0.8.32020/01/18Add MODULE_NAME, MODULE_DESC, and MODULE_VER to env.
0.8.52020/01/18Add fromHtml to strings.
0.8.62020/01/18Improve booleans logic.
0.8.82020/01/21Improve errors logic.
0.8.92020/01/27Fix .env logic for test cases.
0.8.102020/01/28Improve env logic.
0.8.132020/02/06Add apply to env.
0.8.142020/03/11Add remove to objects.
0.8.172020/04/02Extend errors.init to separate error details from the message.
0.8.182020/04/18Rename objects.reduce to objects.prune.
0.9.02020/05/14Add files.readLines.
0.9.22020/05/19Add arrays.toResult.
0.9.32020/05/19Add strings.toSnakeCase.
0.9.42020/05/20Add files.copyFile && files.moveFile.
0.9.62020/05/20Add files.isEmptyFolder && files.pruneFolders.
0.10.02020/06/26Add dates.isIso && dates.fromIso.
0.11.02020/09/08Add strings.isEnum && strings.isEnumName.
0.11.12020/09/14Add files.findPackage. Improved env logic.
0.12.02021/05/06Add objects.circular & objects.copy.
0.13.02021/08/01Add objects.getArrays & objects.getObjects.
0.14.02021/08/08Add strings.trimToNull.
0.15.02021/08/23Add numbers.random.
0.15.12021/08/29Add constants.regex.
0.16.02021/08/29Add improved objects.toDto.
0.17.02021/09/15Add express.getValue.
0.18.02022/04/27Add vars & vars.getAll.

Keywords

FAQs

Last updated on 27 Apr 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc