javascript-syntax-extender

0.1.0 • Public • Published

javascript-syntax-extender

A simple way to extend your js or node js syntax

Usage

const extender=require('javascript-syntax-extender');
 
const myLog(...args){
    console.log(...args) 
}
extender("log", myLog);
 
log("Hola");
 

Options

  • force (false): Overrides given key if set to true
  • strict (true): If set to true, will throw if key already exists

Readme

Keywords

none

Package Sidebar

Install

npm i javascript-syntax-extender

Weekly Downloads

0

Version

0.1.0

License

GPL-3.0

Unpacked Size

36.8 kB

Total Files

4

Last publish

Collaborators

  • angrykoala