Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

billy

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

billy - npm Package Compare versions

Comparing version 2.0.0-beta-1 to 2.0.0-beta-2

es5/Application.js

32

package.json
{
"name": "billy",
"version": "2.0.0-beta-1",
"version": "2.0.0-beta-2",
"description": "A minimal application harness that stays out of your way and out of your code.",

@@ -9,4 +9,30 @@ "author": "Brandon Valosek <bvalosek@gmail.com>",

"scripts": {
"test": "tape test/*.js"
"test": "tape test/*.js",
"build-es5": "BABEL_ENV=es5 babel -d ./es5 ./lib",
"build-node6": "BABEL_ENV=node6 babel -d ./node6 ./lib",
"prepublish": "npm run build-es5 && npm run build-node6"
},
"babel": {
"env": {
"es5": {
"presets": [
"env"
]
},
"node6": {
"presets": [
[
"env",
{
"targets": {
"node": [
6
]
}
}
]
]
}
}
},
"dependencies": {

@@ -17,4 +43,6 @@ "babylon": "6.17.0",

"devDependencies": {
"babel-cli": "6.24.1",
"babel-preset-env": "1.4.0",
"tape": "4.6.3"
}
}

@@ -60,8 +60,31 @@ # billy

Billy is written to run in modern Javascript environments (ES2017) that support
the CommonJS module system (e.g, Node 7).
the CommonJS module system and the latest ES2017 Spec (e.g, Node 7.10+). It
uses `async` / `await` from the ES2017 spec, as well as features introduced in
ES2015 (ES6) such as `Promise`, iterables, and `WeakMap`.
#### Older JS Runtimes
> Examples of requiring the transpiled versions of the lib
If you are not on the absolute cutting edge, you'll want to use a transpiled
version of the library.
```javascript
// Transpiled down to ES5 (pre-ES2015 / pre-ES6)
const Application = require('billy/es5');
// Targeting Node v6+
const Application = require('billy/node6');
```
Some notes:
* Even when compiling down to ES5, keep in the mind the code still retains the
CommonJS module syntax (i.e `require` calls)
* There are no polyfills for the new global classes like `Promise`, `Map`,
`WeakMap`. If these are not available in your environment, you will need to
include them first before Billy
* The `es5` target is dependent on a globally-available regenerator polyfill.
* For more information on polyfills and regenerator, see [the official Babel
docs](http://babeljs.io/docs/usage/polyfill/)
## API

@@ -68,0 +91,0 @@

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