package
transpile JS based on user agents
npm install ecstacyGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
The perfect middleware between your static file server and the browser. Minifies, compresses, and caches files served to the client. If it's JS or CSS, it also transpiles unsupported features of the target browser. You may also use this in your build process to create browser-specific builds. It's traceur and myth on steroids.
The goal of this project is to create a frontend flow where:
Combined with polyfills, you can use most of the latest features of browsers with relative ease.
There's no:
Features:
var Ecstacy = require('ecstacy')There are two builders.
Ecstacy.jsEcstacy.cssBoth inherit from Ecstacy, defined below.
Delete the entire cache folder.
All Ecstacy constructors have the following API:
Create a new instance. Some options are:
name - the name of the file, specifically for source mapscode - source codemap - the source map, if any"Builds" a version of the file according to agents.
agents is simply passed tp polyfills-db.
data is an object with the following properties:
hash - the build hashcode - the filename for the codemap - the filename for the mapGet the absolute filename of a file.
Read a file by its name.
Returns a Buffer, so you need to .toString() it yourself.
var ecstacy = Ecstacy.js({
code: 'var a = b;'
})
ecstacy.build(useragent).then(function (data) {
return ecstacy.read(data.code, 'utf8')
}).then(function (js) {
})Create a read stream for a file and extension instead of buffering it. Useful when serving files to the client.
jongleberry
jonathanrichardong@gmail.com
Estimated unpacked size across 65 packages.
9.4 MB+
Includes dependencies.
11.5.3
1.0.1
0.2.2
^8001.1001.0-dev-harmony-fb
15001.1001.0-dev-harmony-fb
1.3.0
0.14.12
1.0.1
^3.0.0
3.0.0
11.3.0
0.2.3
1.0.1
0.3.1
1.0.0
0.1.2
6.0.1
0.4.0
3.0.0
2.0.0
0.6.6
0.3.1
0.4.3
0.1.2
1.2.0
12.0.3
4.1.0
0.0.2
11.0.1
15.0.4
11.0.1