Skip to content

Commit

Permalink
Move TypeScript to lib directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Jul 17, 2017
1 parent 98d9a7a commit be574ea
Show file tree
Hide file tree
Showing 71 changed files with 2,300 additions and 199 deletions.
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
node_modules/
.idea/
*.iml
lib/
typings/globals/
src/**/*.js
src/**/*.d.ts
src/**/*.map
lib/**/*.js
lib/**/*.d.ts
lib/**/*.map
test/**/*.js
test/**/*.map
test/**/*.d.ts
covergae
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test/
node_modules/
src/
example/
doc-gen/
coverage/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ install:
script:
- npm run lint
- npm run compile
- npm test
- npm run coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![NPM version](https://badge.fury.io/js/music-metadata.svg)](https://npmjs.org/package/music-metadata)
[![npm downloads](http://img.shields.io/npm/dm/music-metadata.svg)](https://npmjs.org/package/music-metadata)
[![Dependencies](https://david-dm.org/Borewit/music-metadata.svg)](https://david-dm.org/Borewit/music-metadata)
[![Coverage Status](https://coveralls.io/repos/github/Borewit/music-metadata/badge.svg?branch=master)](https://coveralls.io/github/Borewit/music-metadata?branch=master)

Streaming music metadata parser for node.

Expand Down
3 changes: 2 additions & 1 deletion example/typescript.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as mm from 'music-metadata';
//import * as mm from 'music-metadata';
import * as mm from '../lib';
import * as util from 'util';

mm.parseFile('../test/samples/MusicBrainz-multiartist [id3v2.4].V2.mp3', {native: true})
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/asf/AsfObject.ts → lib/asf/AsfObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const HeaderObjectToken: Token.IGetToken<IAsfObjectHeader> = {
}
};

abstract class State<T> implements Token.IGetToken<T> {
export abstract class State<T> implements Token.IGetToken<T> {

public len: number;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/asf/Util.ts → lib/asf/Util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import common from '../common';

type AttributeParser = (buf: Buffer) => boolean | string | number | Buffer;
export type AttributeParser = (buf: Buffer) => boolean | string | number | Buffer;

export class Util {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions src/mp4/MP4Parser.ts → lib/mp4/MP4Parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@ import {StringType, BufferType, IGetToken, IgnoreType} from "token-types";
import * as Token from "token-types";
import {Genres} from "../id3v1/ID3v1Parser";

/**
* M4A signature, ref: https://www.filesignatures.net/index.php?page=search&search=M4A&mode=EXT
* ascii: ••• ftypM4A
*/
// const signature_m4a = [0x00, 0x00, 0x00, 0x18, 0x66, 0x74, 0x79, 0x70, 0x4D, 0x34, 0x41];

/**
* ascii: ••• ftypmp42
*/
// const signature_m4a_42 = [0x00, 0x00, 0x00, 0x18, 0x66, 0x74, 0x79, 0x70, 0x6D, 0x34, 0x32];

interface IAtomHeader {
length: number,
name: string
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit be574ea

Please sign in to comment.