{
  "name": "unused-filename",
  "version": "0.1.0",
  "description": "Get a unused filename by appending a number if it exists: `file.txt` → `file (1).txt`",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git://github.com/sindresorhus/unused-filename"
  },
  "author": {
    "name": "Sindre Sorhus",
    "email": "sindresorhus@gmail.com",
    "url": "sindresorhus.com"
  },
  "engines": {
    "node": ">=4"
  },
  "scripts": {
    "test": "xo && ava"
  },
  "files": [
    "index.js"
  ],
  "keywords": [
    "unused",
    "filename",
    "filepath",
    "file",
    "name",
    "available",
    "safe",
    "unique",
    "usable",
    "filesystem",
    "fs",
    "exists",
    "path"
  ],
  "dependencies": {
    "modify-filename": "^1.1.0",
    "path-exists": "^3.0.0"
  },
  "devDependencies": {
    "ava": "*",
    "xo": "*"
  },
  "readme": "# unused-filename [![Build Status](https://travis-ci.org/sindresorhus/unused-filename.svg?branch=master)](https://travis-ci.org/sindresorhus/unused-filename)\n\n> Get a unused filename by appending a number if it exists: `file.txt` → `file (1).txt`\n\nUseful for safely writing, copying, moving files without overwriting existing files.\n\n\n## Install\n\n```\n$ npm install --save unused-filename\n```\n\n\n## Usage\n\n```\n.\n├── rainbow (1).txt\n├── rainbow.txt\n└── unicorn.txt\n```\n\n```js\nconst unusedFilename = require('unused-filename');\n\nunusedFilename('rainbow.txt').then(filename => {\n\tconsole.log(filename);\n\t//=> 'rainbow (2).txt'\n});\n```\n\n\n## API\n\n### unusedFilename(filepath)\n\nReturns a `Promise` for a `string`.\n\n### unusedFilename.sync(filepath)\n\nReturns a `string`.\n\n#### filepath\n\nType: `string`\n\n\n## Related\n\n- [filenamify](https://github.com/sindresorhus/filenamify) - Convert a string to a valid safe filename\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
  "readmeFilename": "readme.md",
  "bugs": {
    "url": "https://github.com/sindresorhus/unused-filename/issues"
  },
  "homepage": "https://github.com/sindresorhus/unused-filename",
  "_id": "unused-filename@0.1.0",
  "_shasum": "e5f33bc9e4a63f87f64d3c11d31979def5d2e7fb",
  "_from": "unused-filename@^0.1.0",
  "_resolved": "https://registry.npmjs.org/unused-filename/-/unused-filename-0.1.0.tgz"
}
