resolve-file
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -90,6 +90,2 @@ /*! | ||
break; | ||
case '@': | ||
file.path = path.resolve(file.cwd, name.slice(2)); | ||
file.cwd = path.dirname(file.cwd); | ||
break; | ||
case '.': | ||
@@ -96,0 +92,0 @@ default: { |
{ | ||
"name": "resolve-file", | ||
"description": "Resolve an absolute file path from local directories, local node_modules or global node_modules.", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/doowb/resolve-file", | ||
@@ -6,0 +6,0 @@ "author": "Brian Woodward (https://github.com/doowb)", |
@@ -10,3 +10,3 @@ # resolve-file [![NPM version](https://img.shields.io/npm/v/resolve-file.svg?style=flat)](https://www.npmjs.com/package/resolve-file) [![NPM downloads](https://img.shields.io/npm/dm/resolve-file.svg?style=flat)](https://npmjs.org/package/resolve-file) [![Build Status](https://img.shields.io/travis/doowb/resolve-file.svg?style=flat)](https://travis-ci.org/doowb/resolve-file) | ||
```sh | ||
$ npm install resolve-file --save | ||
$ npm install --save resolve-file | ||
``` | ||
@@ -71,7 +71,7 @@ | ||
## Related projects | ||
## About | ||
You might also be interested in these projects: | ||
### Related projects | ||
* [cwd](https://www.npmjs.com/package/cwd): Easily get the CWD (current working directory) of a project based on package.json, optionally starting… [more](https://github.com/jonschlinkert/cwd) | [homepage](https://github.com/jonschlinkert/cwd "Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (Node.js/javascript util)") | ||
* [cwd](https://www.npmjs.com/package/cwd): Easily get the CWD (current working directory) of a project based on package.json, optionally starting… [more](https://github.com/jonschlinkert/cwd) | [homepage](https://github.com/jonschlinkert/cwd "Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)") | ||
* [expand-tilde](https://www.npmjs.com/package/expand-tilde): Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the… [more](https://github.com/jonschlinkert/expand-tilde) | [homepage](https://github.com/jonschlinkert/expand-tilde "Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.") | ||
@@ -81,24 +81,18 @@ * [look-up](https://www.npmjs.com/package/look-up): Faster drop-in replacement for find-up and findup-sync. | [homepage](https://github.com/jonschlinkert/look-up "Faster drop-in replacement for find-up and findup-sync.") | ||
## Contributing | ||
### Contributing | ||
This document was generated by [verb](https://github.com/verbose/verb), please don't edit directly. Any changes to the readme must be made in [.verb.md](.verb.md). See [Building Docs](#building-docs). | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/resolve-file/issues/new). | ||
### Building docs | ||
## Building docs | ||
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ | ||
Generate readme and API documentation with [verb](https://github.com/verbose/verb): | ||
To generate the readme and API documentation with [verb](https://github.com/verbose/verb): | ||
```sh | ||
$ npm install -g verb verb-readme-generator && verb | ||
$ npm install -g verb verb-generate-readme && verb | ||
``` | ||
Or, if [verb](https://github.com/verbose/verb) is installed globally: | ||
### Running tests | ||
```sh | ||
$ verb | ||
``` | ||
## Running tests | ||
Install dev dependencies: | ||
@@ -110,3 +104,3 @@ | ||
## Author | ||
### Author | ||
@@ -118,3 +112,3 @@ **Brian Woodward** | ||
## License | ||
### License | ||
@@ -126,2 +120,2 @@ Copyright © 2016, [Brian Woodward](https://github.com/doowb). | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on June 06, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on August 17, 2016._ |
'use strict'; | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var utils = require('lazy-cache')(require); | ||
@@ -6,0 +5,0 @@ var fn = require; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
11351
172
115