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

one

Package Overview
Dependencies
Maintainers
1
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

one

Bundles NodeJS modules/libraries for web browsers

  • 3.1.3
  • npm
  • Socket score

Version published
Weekly downloads
2K
decreased by-24.42%
Maintainers
1
Weekly downloads
 
Created
Source

OneJS v3 Build Status

Bundles NodeJS and Component modules for the web.

$ one index.js > browser.js

Or, from NodeJS:

one('index.js').save('bundle.js')

See tests for more examples and documentation.

What's New?
V2 Compatibility
  • Multiple bundles, async require and in-manifest configurations haven't implemented yet.
  • No more main modules. The specified entry module will be called by the bundle itself.
Built with OneJS v3

Usage

From Command-line

See docs/man

From JavaScript

one('index.js').save('bundle.js')

All Available methods:

one('index.js').debug().global().require('foobar').ignore('jquery').native().save('/tmp/foo.js')

See docs/man the command-line manual above for details.

Building Components

OneJS will also work with Component modules. You can pick any module from Component, install in your project and bundle it the same way.

$ npm install
$ component install
$ onejs index.js -o dist.js

TODO

  • -t --tie
  • Async Require & Multiple Bundles

FAQs

Package last updated on 21 Jul 2013

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

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