Skip to content

danrouse/babel-plugin-transform-negative-indices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-transform-negative-indices (WIP)

Turn negative array indices into offsets from the end of the array.

Installation

$ npm install babel-plugin-transform-negative-indices

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-negative-indices"]
}

Via CLI

$ babel --plugins transform-negative-indices script.js

Via Node API

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

About

Turn negative array indices into offsets from the end of the array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published