Catalog npm
Back to packageRELEASE DETAILS

1.0.3

npm

2020nodesnippets

A group of helpful snippets for Node.js

Published8 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-AhOJ361nhDu0S7bzo/voS101jHulaLiUYbGoudIsRRph0VEPmpeUmdsVXXMmKus0b6En7T607OWScmrWL1694Q==",
  "shasum": "f13be3935d48471e60e1ab6a8cecc9bed8d2d1bc",
  "tarball": "https://registry.npmjs.org/2020nodesnippets/-/2020nodesnippets-1.0.3.tgz",
  "fileCount": 3,
  "unpackedSize": 3174,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+KjLCRA9TVsSAnZWagAAjBcP/3UFqdqKADCHTm/S98gh\n1iosY4XuuS3OcbklKsk944WHBd6GSWxRWNhxAwg8hrdk8hKgL31V8Yu5qGDn\nk/V8eKj0H43RFSWKYAVj61Fv0NXNbhlUzG9AsHhj3NEumyAGGHhmEQ/wt3KH\nZ2tXscl7ns6CAQMoa8eWdMaA8ICiUoPTfevRGUfdYs+sHg5UZ9CH3z6ESbz+\npvYu2g4tvJVyQbZyU1UxQ2IKD0aVGK0T3kzUQRw3q/bzrBHK+zECanjC9Leu\n57aAikSC5OTwN5iz/8/n8ZmgHMOpBNVdK4h81AHIcqDJLIYzmAH8pqyTTAqQ\n0wWeqIlOMoV7x2pKvKXYyGkhjOkLWSPLjlt3j+QRgFZChCajOykEQZMOXtHk\nhOeRAY5Doq9z3idEC8jyesirrmhI2U7vs248Qye3CdNyrfO/f+x2qCz+dihB\njWRDscEoeAYd929peOARXktSLB4CNeyD6p+f4OPvEEhDP0XqKLHJWSpWezDN\n8kgMQSNgXdVP67+gVzySyK8Vaj4vfLhlKbrgwr28uQOiEQHrEGRysI6rO7Vb\nftB4OS+ZQah0AQaaUERqAIRFj6pLrjcP60WM07plIyAgqLcMlaTgb5WUKJH0\nbienVkimMBN9b4rHZQk3vg/TwtuT6rH6SsDoaTHJCh4IJMar1+2NF9AwT0NQ\n7KAl\r\n=R5s1\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIHnoG+GawN2/a+BTCCAb3gvK+G71yoiMPfSx2RDGEOY6AiAXl0elST2JMqrUdmlR0cTWSLQBQ1IebPQmfDyWlBImxg=="
    }
  ]
}

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:c27341cbbeee1c0ffee2a626e286e717f44adf7445b61e69642cc71da96d212e

Other collected versions

1.0.611 Jan1.0.511 Jan1.0.28 Jan1.0.18 Jan1.0.06 JanView all collected versions →