Catalog npm
Back to packageRELEASE DETAILS

1.0.6

npm

2020nodesnippets

A group of helpful snippets for Node.js

Published11 Jan 2021
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

2020 Node Snippets

These are some small helpful function for Node.js

Features

  • Easier printing to console
  • Array sorting
  • Array random shuffling
  • Remove item from array by value
  • Remove item from array by index
  • Factorial
  • Permutaion
  • Combination

Installation

To install 2020 Node Snippets, you will need Node.js (https://nodejs.org) and you will need to initialize npm in a directory using npm init. Run the command npm install 2020nodesnippets to install the package in the directory.

Usage Example

const ns = require('2020nodesnippets');
let x = [1, 2, 3, 4, 5];
let y = ns.randshuffle(x);
ns.print(y);

Github Repository and npm package

The Github repository is accessible at https://github.com/NavSous/Node_Snippets The npm package is accessible at https://www.npmjs.com/package/2020nodesnippets

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
random
Environment
{
  "local_name": "random",
  "alias": false,
  "peer_metadata": null
}
^2.2.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-lKBp4I1XrQBmn05nY9wES/dFm2uPlBsJailO44LnQAFU1yX12pgd+1S8ZoE4C5gJUQNO9JzxNbTypHCTNBd1kQ==",
  "shasum": "d1d475b46567c6c1f5b0e74f673fe2a6b10f69ed",
  "tarball": "https://registry.npmjs.org/2020nodesnippets/-/2020nodesnippets-1.0.6.tgz",
  "fileCount": 3,
  "unpackedSize": 3321,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/JAACRA9TVsSAnZWagAApUkP/RvkB9iuBBLEIfV+gO2W\n74e8tonTbfhP+GcxcvV1tIciwMPUwhin0EI3k7pBrCfKbD8uc/36pdSo3wb2\n9AbnaH9z0/+VT1OYJOreZdv1yZ1Znfri4ZZYwQ1LLjpwadX2iHHxnErN2ODl\nWHxF4eWclD6E++KqnX6k8m5HRmfrJntuaEFBbT3sJWquPnHFDXKCLI20j5bz\nUGSWUmuNUQedUATApLuurwVscoN0AbW/pYFW0J6UuKlJ6R2cN6WSDls1kZ0Q\nF6mYoEmvTzX3TEVypw8eZBmwd8nFCUbbREV4Mv29Bog320VryR+uLnMmSMQs\nN2IFRKqWjooBbmfPEhxtj4eDmoy14SyrKknE4dDFNDMJGF+tc6IlafGhTYGu\nSp10PWhRytSgqemewJLm6FRNXYSa6ytP0dflsWNpNV5I6SxlkG6DQxhJxX8d\nzaJNPp7BMn33xtGGhxANozrG7yV0tOmEYWGlta4VBTSfvdwvnhxA5/Nf8vHL\nHR6v0WxzOd8GpBwzciMEbAGZ6hTCmB9q9xg+gIDmNMbMF1UjjhlkDnZDuq7h\nXLqBALRgSEyQMCH5z7qq3dl1RziT5ZH7a/l/7SOUwRa4YD7lUMz7IG9UioAa\nBDtCa8oWAPU6pDIjZh8/6REwM4kdoGToo/bc8DWwzlGI2v37/k3pK2NrdX+t\nBFvP\r\n=GakB\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIAQ1hJYYQpLRZdy+IU3OquuODqvBXhsSwIbdx1glrmSbAiBpXHlfoKK/X160kHRmb42nqmdNNYWKXoFuUPvFgItV5w=="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:53 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ecbb2c1449d334b2b926a6f2239bc005b9536881996a70ec7afd75bdbadbf2f8

Other collected versions

1.0.511 Jan1.0.38 Jan1.0.28 Jan1.0.18 Jan1.0.06 JanView all collected versions →