Skip to content

kaisarsnippets/js-strnest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STRNest

[js] Nest strings into callbacks.

What

Pass a string into a callback. Each time the function is nested, the new string is concatenated. When function returns the previous string is restored.

Install

npm install kc-strnest

Use

var strnest = require('kc-strnest');
strnest('#str1', function(x){
    strnest('.str2', function(x, o){
        console.log(x);
    }); console.log(x);
});

About

[js] Nest strings into callbacks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published