GT2/GT2-Android/node_modules/slugid/package.json

86 lines
5.1 KiB
JSON

{
"_args": [
[
{
"raw": "slugid@^1.1.0",
"scope": null,
"escapedName": "slugid",
"name": "slugid",
"rawSpec": "^1.1.0",
"spec": ">=1.1.0 <2.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl"
]
],
"_from": "slugid@>=1.1.0 <2.0.0",
"_id": "slugid@1.1.0",
"_inCache": true,
"_location": "/slugid",
"_nodeVersion": "0.12.4",
"_npmUser": {
"name": "jonasfj",
"email": "jopsen@gmail.com"
},
"_npmVersion": "2.10.1",
"_phantomChildren": {},
"_requested": {
"raw": "slugid@^1.1.0",
"scope": null,
"escapedName": "slugid",
"name": "slugid",
"rawSpec": "^1.1.0",
"spec": ">=1.1.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/xdl"
],
"_resolved": "https://registry.npmjs.org/slugid/-/slugid-1.1.0.tgz",
"_shasum": "e09f00899c09f5a7058edc36dd49f046fd50a82a",
"_shrinkwrap": null,
"_spec": "slugid@^1.1.0",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl",
"author": {
"name": "Jonas Finnemann Jensen",
"email": "jopsen@gmail.com"
},
"bugs": {
"url": "https://github.com/taskcluster/slugid/issues"
},
"dependencies": {
"uuid": "^2.0.1"
},
"description": "URL-safe base64 UUID encoder for generating 22 character slugs",
"devDependencies": {
"browserify": "5.9.1",
"nodeunit": "0.8.6"
},
"directories": {},
"dist": {
"shasum": "e09f00899c09f5a7058edc36dd49f046fd50a82a",
"tarball": "https://registry.npmjs.org/slugid/-/slugid-1.1.0.tgz"
},
"gitHead": "7f6b8a96c52f36afae8b2d5b98cf1704a893a048",
"homepage": "https://github.com/taskcluster/slugid#readme",
"license": "MIT",
"maintainers": [
{
"name": "jonasfj",
"email": "jopsen@gmail.com"
}
],
"name": "slugid",
"optionalDependencies": {},
"readme": "slugid - Compressed UUIDs for Node.js \n=====================================\n<img src=\"https://tools.taskcluster.net/lib/assets/taskcluster-120.png\" />\n[![Build Status](https://travis-ci.org/taskcluster/slugid.svg?branch=master)](http://travis-ci.org/taskcluster/slugid)\n[![License](https://img.shields.io/badge/license-MIT-orange.svg)](https://github.com/taskcluster/slugid/blob/master/LICENSE)\n\nA node.js module for generating v4 UUIDs and encoding them into 22 character\nURL-safe base64 slug representation (see [RFC 4648 sec.\n5](http://tools.ietf.org/html/rfc4648#section-5)).\n\nSlugs are url-safe base64 encoded v4 uuids, stripped of base64 `=` padding.\n\nThere are two methods for generating slugs - `slugid.v4()` and `slugid.nice()`.\n\nThe `slugid.v4()` method returns a slug from a randomly generated v4 uuid. The\n`slugid.nice()` method returns a v4 slug which conforms to a set of \"nice\"\nproperties. At the moment the only \"nice\" property is that the slug starts with\n[A-Za-f], which in turn implies that the first (most significant) but of its\nassociated uuid is set to 0.\n\nThe purpose of the `slugid.nice()` method is to support having slugids which\ncan be used in more contexts safely. Regular slugids can safely be used in\nurls, and for example in AMQP routing keys. However, slugs beginning with `-`\nmay cause problems when used as command line parameters.\n\nIn contrast, slugids generated by the `slugid.nice()` method can safely be used\nas command line parameters. This comes at a cost to entropy (121 bits vs 122\nbits for regular v4 slugs).\n\nSlug consumers should consider carefully which of these two slug generation\nmethods to call. Is it more important to have maximum entropy, or to have\nslugids that do not need special treatment when used as command line\nparameters? This is especially important if you are providing a service which\nsupplies slugs to unexpecting tool developers downstream, who may not realise\nthe risks of using your regular v4 slugs as command line parameters, especially\nsince this would arise only as an intermittent issue (one time in 64).\n\nGenerated slugs take the form `[A-Za-z0-9_-]{22}`, or more precisely:\n\n* `slugid.v4()` slugs conform to\n `[A-Za-z0-9_-]{8}[Q-T][A-Za-z0-9_-][CGKOSWaeimquy26-][A-Za-z0-9_-]{10}[AQgw]`\n\n* `slugid.nice()` slugs conform to\n `[A-Za-f][A-Za-z0-9_-]{7}[Q-T][A-Za-z0-9_-][CGKOSWaeimquy26-][A-Za-z0-9_-]{10}[AQgw]`\n\nRFC 4122 defines the setting of 6 bits of the v4 UUID which determines these\nregular expressions.\n\n```js\nvar slugid = require('slugid');\n\n// Generate \"nice\" URL-safe base64 encoded UUID version 4 (random)\nvar slug = slugid.nice(); // a8_YezW8T7e1jLxG7evy-A\n```\n\nEncode / Decode\n---------------\n```js\nvar slugid = require('slugid');\n\n// Generate URL-safe base64 encoded UUID version 4 (random)\nvar slug = slugid.v4();\n\n// Get UUID on the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\nvar uuid = slugid.decode(slug);\n\n// Compress to slug again\nassert(slug == slugid.encode(uuid));\n```\n\nLicense\n-------\nThe `slugid` library is released on the MIT license, see the `LICENSE` for\ncomplete license.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/taskcluster/slugid.git"
},
"scripts": {
"test": "nodeunit slugid_test.js"
},
"version": "1.1.0"
}