Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate #18

Open
1 task
blond opened this issue Apr 3, 2015 · 2 comments
Open
1 task

Translate #18

blond opened this issue Apr 3, 2015 · 2 comments

Comments

@blond
Copy link
Member

blond commented Apr 3, 2015

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' }]
@qfox
Copy link
Contributor

qfox commented Apr 3, 2015

transpile ;-)

@blond
Copy link
Member Author

blond commented Dec 9, 2016

Perhaps it is convert method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants