New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@putout/plugin-remove-only

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/plugin-remove-only

putout plugin adds ability to find and remove test.only calls

Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
5.7K
-19.91%
Maintainers
1
Weekly downloads
 
Created
Source

putout-plugin-remove-only NPM version Dependency Status

putout plugin adds ability to find and remove test.only calls.

Install

npm i @putout/plugin-remove-only

Rule

Rule remove-only is enabled by default, to disable add to .putout.json:

{
    "rules": {
        "remove-only": false
    }
}

Code Example

const {readFileSync} = require('fs');
const source = readFileSync('./1.js', 'utf8');

const putout = require('putout');

console.log(source);
// outputs
`
test.only('some test', (t) => {
    t.end();
});
`

const result = putout(source, {
    plugins: [
        'remove-only'
    ]
});
// returns
`
test('some test', (t) => {
    t.end();
});
`

License

MIT

Keywords

putout

FAQs

Package last updated on 12 Feb 2019

Did you know?

Socket

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.

Install

Related posts