Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

06-beiyou-tools2

提供了格式化时间,数组排序,去重

beiyoulijuntools
Published25 Apr 2022
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

安装

npm install 03-beiyou-tools

导入

const tools = require("./06-beiyou-tools");

时间格式化

console.log(tools.dateFormat(new Date()));
// 2022-4-25 16:14:59

排序

let arr = [3,1,4,1,5,9,2,6];
console.log(tools.sort(arr));

[
  1, 1, 2, 3,
  4, 5, 6, 9
]

数组去重

let arr = [3,1,4,1,5,9,2,6];
console.log(tools.unique(arr));
[
  1, 2, 3, 4,
  5, 6, 9
]

开源协议

ISC

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-Xac4awcDKrwmoy+iT0qfB66ftjj+PgkSA/qsWGN+n46qwRidJbXwU10jWHLTKV+xlk6lsqpH5WCbSFKPYX1xaw==",
  "shasum": "1eeba6b9df1e80be240b1ac34af23d3ac210ecc1",
  "tarball": "https://registry.npmjs.org/06-beiyou-tools2/-/06-beiyou-tools2-1.0.0.tgz",
  "fileCount": 5,
  "unpackedSize": 2197,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIBAM9h5dAk7e58y6f2Cc/wqKYnzspbsoXjT3X+pZXppaAiAlYW0gy+9CKEcuBEBgHCCxN+0FYhjnKalmbIZPkWzz5w=="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZl+sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoW3w//UYynZSEUvws/CXqz9Ukd1iWPsyFoKSF+GAy1D7tO3bFBoydM\r\nLepx0q+trAc6N+tAbVlwmtZ6AJdSgOfsDZI0E2fiGL060HXxH/cws7wCH4/L\r\nW0LUxd+DRQjkkGsPbLHRtfs0wLzt79xTXUy/kLBhLaqWOhqxpEDg9n9rL/rP\r\naYNi+ciJaVROajr3mSsfXeOn5LZ/A3cNvNBfLNQ/ciNxNggelyMBw9UrOZmM\r\nUfA8OMz/QL9q7+iEaFCFyGl4/onGkCSJ/kneHaX4wKS2GiTm+rCD5Bp32Hk4\r\nTbDF74fQIRllLvzaFlBlQ+iUfeAk1LYip40amfrhxWbUkg1jqqFHTA1W1eNB\r\nThGj0gSZB/18kuphOuU6YUhwp54FoMyAaPyMSPRwjCzqPwAoPD+XIGBAA2Az\r\nhWQxvz4FCNtWg/+TDR07ZqbgSOcjdQ2mpvhf2f8XJy0Vngza1TrKR5UATAqa\r\nsrJk2mrAnv4TAdz7xZ7Diq7paqjguS+3zEizJQofdplOBZjFw3aeRsJX09eB\r\nUF59u5Ke3qyPqviOptKn3O4GmWhEnyWI2U/DUofmHoBQaqtuocmgkSx96J8g\r\njzONThHTM/32F2kJsu5DFOrptwEOCZokBH615zz+RJsT4jpwk/xGIJtqMBI1\r\nFq5Q+gbRCZT0qjEgGGS/n6iH4cBBEQUefbo=\r\n=R3EQ\r\n-----END PGP SIGNATURE-----\r\n"
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:19 UTC

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

Record identity

package_version:33da072ab7f5db7e377d859b31df83e2a31e433399a3c2a12b34802a0663db07

Other collected versions

View all collected versions →