Skip to content

Commit

Permalink
build: refactored how typescript renders
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinaldy Rafli committed Aug 23, 2021
1 parent 6176d69 commit 0be4180
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 321 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ or via a CDN (unpkg or jsdelivr)
## Usage

```js
import detectLang from 'flourite';
import flourite from 'flourite';

const code = detectLang('console.log("Hello World");'); // => Javascript
const code = flourite('console.log("Hello World");'); // => Javascript
```

You could supply options to make see numbers of points for a certain language:

```js
import detectLang from 'flourite';
import flourite from 'flourite';

const code = detectLang('printf("Hello World")', { statistics: true });
const code = flourite('printf("Hello World")', { statistics: true });
// {
// detected: 'C',
// statistics: [
Expand Down
Loading

0 comments on commit 0be4180

Please sign in to comment.