bem-sdk-archive / bem-decl

:capital_abcd: Manage declaration of BEM entities. DEPRECATED →
https://github.com/bem/bem-sdk/tree/master/packages/decl
Other
11 stars 3 forks source link

Translate #18

Open blond opened 9 years ago

blond commented 9 years ago

Methods:

The method is to translate a declaration from one format to another.

var translate = require('bem-decl').translate,
    decl = [
        { block: 'block' }
    ];

translate(decl, {
    from: '2.0',
    to: '1.0'
});
// [{ name: 'block' }]
qfox commented 9 years ago

transpile ;-)

blond commented 7 years ago

Perhaps it is convert method.