Open blond opened 9 years ago
Methods:
translate(decl, opts)
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' }]
transpile ;-)
Perhaps it is convert method.
convert
Methods:
translate(decl, opts)
The method is to translate a declaration from one format to another.