Socket
Socket
Sign inDemoInstall

scru160

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "scru160",
"version": "0.2.0",
"version": "0.2.1",
"description": "SCRU-160: Sortable, Clock and Random number-based Unique identifier",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -9,6 +9,5 @@ # SCRU-160: Sortable, Clock and Random number-based Unique identifier

- Sortable by generation time (in binary and in text)
- At least 32,767 unique, time-ordered IDs per millisecond
- Two case-insensitive encodings: 32-character base32hex and 40-character hex
- More than 32,768 unique, time-ordered but unpredictable IDs per millisecond
- Nearly 111-bit randomness for collision resistance
- 32-character base32hex encoding and 40-character hex encoding
- Case insensitive

@@ -56,4 +55,2 @@ ```javascript

[rfc 4648]: https://datatracker.ietf.org/doc/html/rfc4648
```javascript

@@ -73,5 +70,23 @@ scru160(); // e.g. "05TUIM8J8SU9O6P30I56PP49PI0RGNPM"

[rfc 4648]: https://datatracker.ietf.org/doc/html/rfc4648
## License
Copyright 2021 LiosK
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
## See Also
- [npm package](https://www.npmjs.com/package/scru160)
- [API Documentation](https://scru160.github.io/javascript/docs/)
- [Run tests on your browser](https://scru160.github.io/javascript/test/)
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc