bpv

babel-plugin-version-inline

Babel plugin for turning __VERSION__ into a package version string

Showing:

Popularity

Downloads/wk

2.4K

GitHub Stars

9

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

babel-plugin-version-inline

Turn __VERSION__ into the package's version string.

Example

Given the following package.json.

{
  "name": "package-using-babel-plugin-version-inline",
  "version": "1.0.0"
}

in

__VERSION__

out

"1.0.0"

Installation

$ npm install babel-plugin-version-inline

Usage

.babelrc

{
  "plugins": ["version-inline"]
}

Via CLI

$ babel --plugins version-inline script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["version-inline"]
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100