Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
resolve-file
Advanced tools
Readme
Resolve an absolute file path from local directories, local node_modules or global node_modules.
Install with npm:
$ npm install --save resolve-file
var resolveFile = require('resolve-file');
Resolve the path to a file located in one of the following places:
'./index.js'
)'/usr/something.rc'
)'cwd'
)'cwd/LICENSE'
)'~/.npmrc'
)Example
var fp = resolve('./index.js')
//=> /path/to/resolve-file/index.js
Params
name
{String}: Filename to resolveoptions
{Object}: Additional options to specify cwd
returns
{String}: Resolved filepath
if foundResolve the path to a file located in one of the following places:
'./index.js'
)'/usr/something.rc'
)'cwd'
)'cwd/LICENSE'
)'~/.npmrc'
)Example
var file = resolve.file('./index.js')
//=> {
//=> cwd: '/path/to/resolve-file',
//=> path: '/path/to/resolve-file/index.js'
//=> }
Params
name
{String}: Filename to resolveoptions
{Object}: Additional options to specify cwd
returns
{Object}: File object with resolved path
if found.Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Commits | Contributor |
---|---|
13 | doowb |
7 | jonschlinkert |
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
$ npm install -d && npm test
Brian Woodward
Copyright © 2016, Brian Woodward. Released under the MIT license.
This file was generated by verb-generate-readme, v0.2.0, on October 19, 2016.
FAQs
Resolve an absolute file path from local directories, local node_modules or global node_modules.
The npm package resolve-file receives a total of 99,444 weekly downloads. As such, resolve-file popularity was classified as popular.
We found that resolve-file demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.