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

remove-dupl

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-dupl

Removing duplicates from arrays and files

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Removing duplicates from arrays and files

npm version license

Instalation

NPM:

npm i remove-dupl --save

Yarn:

yarn add remove-dupl

Usage

const { removeFromArray, removeFromFile } = require("remove-dupl");

const newArr = removeFromArray([1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0]);
const count = removeFromFile("PATH_TO_FILE", "PATH_TO_NEW_FILE");

If the path to the new file is empty, it will overwrite the original file.

License

MIT © Joyent, Inc. and other Node contributors

Keywords

remove

FAQs

Package last updated on 09 Oct 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