{
  "manifest": {
    "name": "tempy",
    "version": "0.6.0",
    "description": "Get a random temporary file or directory path",
    "license": "MIT",
    "repository": {
      "type": "git",
      "url": "https://github.com/sindresorhus/tempy.git"
    },
    "funding": "https://github.com/sponsors/sindresorhus",
    "author": {
      "name": "Sindre Sorhus",
      "email": "sindresorhus@gmail.com",
      "url": "https://sindresorhus.com"
    },
    "engines": {
      "node": ">=10"
    },
    "scripts": {
      "test": "xo && ava && tsd"
    },
    "files": [
      "index.js",
      "index.d.ts"
    ],
    "keywords": [
      "temp",
      "temporary",
      "path",
      "file",
      "directory",
      "folder",
      "tempfile",
      "tempdir",
      "tmpdir",
      "tmpfile",
      "random",
      "unique"
    ],
    "dependencies": {
      "is-stream": "^2.0.0",
      "temp-dir": "^2.0.0",
      "type-fest": "^0.16.0",
      "unique-string": "^2.0.0"
    },
    "devDependencies": {
      "ava": "^2.4.0",
      "tsd": "^0.13.1",
      "xo": "^0.32.1"
    },
    "xo": {
      "rules": {
        "node/no-unsupported-features/node-builtins": "off"
      }
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-tempy-0.6.0-65e2c35abc06f1124a97f387b08303442bde59f3-integrity/node_modules/tempy/package.json",
    "readmeFilename": "readme.md",
    "readme": "# tempy [![Build Status](https://travis-ci.com/sindresorhus/tempy.svg?branch=master)](https://travis-ci.com/github/sindresorhus/tempy)\n\n> Get a random temporary file or directory path\n\n## Install\n\n```\n$ npm install tempy\n```\n\n## Usage\n\n```js\nconst tempy = require('tempy');\n\ntempy.file();\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/4f504b9edb5ba0e89451617bf9f971dd'\n\ntempy.file({extension: 'png'});\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/a9fb0decd08179eb6cf4691568aa2018.png'\n\ntempy.file({name: 'unicorn.png'});\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/f7f62bfd4e2a05f1589947647ed3f9ec/unicorn.png'\n\ntempy.directory();\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/2f3d094aec2cb1b93bb0f4cffce5ebd6'\n\ntempy.directory({prefix: 'name'});\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/name_3c085674ad31223b9653c88f725d6b41'\n```\n\n## API\n\n### tempy.file(options?)\n\nGet a temporary file path you can write to.\n\n#### options\n\nType: `object`\n\n*You usually won't need either the `extension` or `name` option. Specify them only when actually needed.*\n\n##### extension\n\nType: `string`\n\nFile extension.\n\n##### name\n\nType: `string`\n\nFilename. Mutually exclusive with the `extension` option.\n\n### tempy.directory([options])\n\nGet a temporary directory path. The directory is created for you.\n\n#### options\n\nType: `Object`\n\n##### prefix\n\n\nType: `string`\n\nDirectory prefix.\n\nUseful for testing by making it easier to identify cache directories that are created.\n\n*You usually won't need this option. Specify it only when actually needed.*\n\n### tempy.write(fileContent, options?)\n\nWrite data to a random temp file.\n\n##### fileContent\n\nType: `string | Buffer | TypedArray | DataView | stream.Readable`\n\nData to write to the temp file.\n\n##### options\n\nSee [options](#options).\n\n### tempy.writeSync(fileContent, options?)\n\nSynchronously write data to a random temp file.\n\n##### fileContent\n\nType: `string | Buffer | TypedArray | DataView`\n\nData to write to the temp file.\n\n##### options\n\nSee [options](#options).\n\n### tempy.root\n\nGet the root temporary directory path. For example: `/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T`\n\n## FAQ\n\n#### Why doesn't it have a cleanup method?\n\nTemp files will be periodically cleaned up on macOS. Most Linux distros will clean up on reboot. If you're generating a lot of temp files, it's recommended to use a complementary module like [`del`](https://github.com/sindresorhus/del) for cleanup.\n",
    "licenseText": "MIT License\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/tempy/-/tempy-0.6.0.tgz#65e2c35abc06f1124a97f387b08303442bde59f3",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/tempy/-/tempy-0.6.0.tgz",
    "hash": "65e2c35abc06f1124a97f387b08303442bde59f3",
    "integrity": "sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==",
    "registry": "npm",
    "packageName": "tempy",
    "cacheIntegrity": "sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw== sha1-ZeLDWrwG8RJKl/OHsIMDRCveWfM="
  },
  "registry": "npm",
  "hash": "65e2c35abc06f1124a97f387b08303442bde59f3"
}