New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-npm

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-npm - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

dist/rollup-plugin-npm.cjs.js

4

CHANGELOG.md
# rollup-plugin-npm changelog
## 1.0.0
* Add ES6 build, use Rollup 0.20.0
## 0.1.0
* First release

10

package.json
{
"name": "rollup-plugin-npm",
"description": "Bundle third-party dependencies in node_modules",
"version": "0.1.0",
"version": "1.0.0",
"devDependencies": {

@@ -9,5 +9,6 @@ "eslint": "^1.7.3",

"gobble-cli": "^0.6.0",
"gobble-rollup-babel": "^0.6.1",
"gobble-rollup": "^0.11.0",
"mocha": "^2.3.3",
"rollup": "^0.19.2",
"rollup": "^0.20.0",
"rollup-plugin-babel": "^1.0.0",
"rollup-plugin-commonjs": "^0.1.0",

@@ -17,3 +18,4 @@ "string-capitalize": "^1.0.1",

},
"main": "dist/rollup-plugin-npm.js",
"main": "dist/rollup-plugin-npm.cjs.js",
"jsnext:main": "dist/rollup-plugin-npm.es6.js",
"scripts": {

@@ -20,0 +22,0 @@ "test": "mocha",

# rollup-plugin-npm
## experimental, depends on unreleased version of Rollup
**experimental, depends on unreleased version of Rollup**
Find third party modules in `node_modules`, so that they can be included in a Rollup bundle.
## Installation

@@ -54,1 +56,6 @@

```
## License
MIT

@@ -26,2 +26,6 @@ import { dirname, resolve } from 'path';

// lop off trailing slash to handle bizarro cases like
// https://github.com/nodejs/readable-stream/blob/077681f08e04094f087f11431dc64ca147dda20f/lib/_stream_readable.js#L125
if ( importee.slice( -1 ) === '/' ) importee = importee.slice( 0, -1 );
var parts = importee.split( /[\/\\]/ );

@@ -28,0 +32,0 @@ var id = parts.shift();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc